• How to Search a File on Your Computer

    To find a file with the “.csv” extension that was last modified a year ago on the D drive using PowerShell, you can modify the -Filter parameter of the Get-ChildItem cmdlet to search for files with...

  • Easily Check How Long a Process has Been Running

    To check how long a process has been running in PowerShell, you can use the Get-Process cmdlet and the Uptime property. The Uptime property returns the amount of time that the process has been runn...

  • Create a Scheduled Task Automatically

    To create a scheduled task using the Register-ScheduledTask cmdlet, you can use the following script. # Create a trigger that runs the task daily at 9:00 AM $Trigger = New-ScheduledTaskTrigger -D...

  • Piping in PowerShell

    In PowerShell, piping is a way to pass the output of one command as the input to another command. This allows you to chain multiple commands together and perform complex operations in a single line...

  • Query Users Who Have Not Reset Their Password

    To find all users in Active Directory (AD) who have not reset their own password, you can use the Get-ADUser cmdlet and filter the results based on the PasswordLastSet attribute. The PasswordLastS...

  • Navigating the Windows Certificate Store with PowerShell

    To navigate the Windows certificate store using PowerShell, you can use the Get-ChildItem cmdlet to enumerate the certificates in the store and the Get-Item cmdlet to retrieve the properties of the...

  • PowerShell – Data Structures

    In PowerShell, arrays, hashtables, and objects are data structures that can be used to store and manipulate data. Each type of data structure has its own characteristics and uses, and you can choos...

  • What’s the value of using Filter?

    Why is it better to use Get-ADUser -Filter {GivenName -eq “John”} in comparison to Get-AdUser -Filter * Where-Object Using the -Filter parameter with the Get-ADUser c...

  • Query Active Directory Users

    To query Active Directory (AD) users, you can use the Get-ADUser cmdlet in PowerShell. # Import the ActiveDirectory module Import-Module ActiveDirectory # Query AD users Get-ADUser -Filter * #...

  • Resources for Further Learning

    The PowerShell.org, website is a community-driven resource that contains a wealth of information on PowerShell, including tutorials, articles, and resources for learning PowerShell. You can find...

Page 1 of 6 Next