Archive for the ‘PowerShell’ Category

How to get the Syntax of PowerShell Cmdlet

To view the syntax of a PowerShell Cmdlet, use get-command or help command. Get Syntax using Get-Command Cmdlet: Get-Command Get-Process -Syntax Output:

Difference between PowerShell and command prompt

Both allow the creation of scripts. Both provides command-line environment. cmd.exe works in PowerShell. But, PowerShell cmdlets wont work in Cmd.exe Cmd provides very limited set of functionality. cmd is text based scripting environment. cmd does not provide access to many aspects of the OS and applications.

How to get the Version of PowerShell

We have installed PowerShell and started creating scripts. Before executing script on current PowerShell version, we should get the Powershell version. Following are ways to get version. If we want to get the Version of PowerShell, use $PSVersionTable PS C:\> $PSVersionTable Name Value —- —– PSVersion 4.0 WSManStackVersion 3.0 SerializationVersion CLRVersion 4.0.30319.42000 BuildVersion 6.3.9600.16406 […]

Powered by k2schools