Showing posts with label Training. Show all posts
Showing posts with label Training. Show all posts

Saturday, 8 November 2014

Get-Alias and useful Examples

Get-Alias and useful Examples


  • Get-Alias is very useful Powershell Command.It gives alternate name for the Commands.Instead of long form you can use the short Alias form. Lets see some example.
  • In order to find the Alias of "Get-Service" command which list all the services running in the computer and there running state, type the following Command in Powershell Windows

                      GET-Alias -definition Get-Service.




  • You can see that the Alias for Get-Service command is gsv.
  • So nextime to check this list of service and their status type just "gsv"

How to Check if Powershell is installed on your Computer?

How to Check if Powershell is installed on your Computer?


  • To check if Powershell is installed on your Computer
  • Go to C: Drive and  Click on "Windows" Folder
  • Now click on Sytem32 folder then Click on "WindowsPowerShell" Folder
  • Now depending on the Version of Powershell installed You will se it as v1.0 or v2.0 or v3.0. This tell you what version of Powershell is installed.
  • Now in our case is v1.0. Click on v1.0 folder.
  • You will see a "Powershell.exe". This confirms that Powershell is installed on your system.