Powershell
A cross-platform automation and configuration tool
Last updated
A cross-platform automation and configuration tool
Last updated
Powershell is a task automation and configuration management program from Microsoft, consisting of a command-line shell and the associated scripting language. Tasks are generally performed via cmdlets which are specialized .NET classes implementing a particular operation. Cmdlets work in tandem with the .NET API. Powershell is a non-case sensitive language.
Get-Help: Displays information about a cmdlet.
Get-Command: Gets all the cmdlets installed on the current computer. Allows for pattern matching with the [*] symbol.
Get-Alias: Lists all aliases available
Get-ChildItem: Gets the items and child items in one of more specified locations.
Get-Content: Retrieves the content of a file and displays it in the console.
New-Item: Creates a new item.
Remove-Item: Removes both directories and files.
Copy-Item: Equivalent to copy
, it can copy files and directories alike to a new destination.
Get-Location: Gets information about the current working location or a location stack
Set-Location: Sets the current working location to a specified location.
Invoke-WebRequest: Gets content from a web page on the internet.
Find-Module: Searches for modules in online repositories.
Install-Module: Downloads a module from an online repository and installs it, making it available for use.
Basic Information:
Find users with password required value set to False:
Find files with a specified pattern in the content: