Basics of Powershell
===============
A few powershell commands are listed below. Most of the times, you will have to run powershell as an administrator to process all the commands successfully.
get-service : It lists all the services
start-service name spooler : It starts the spooler service
get-help get-service: It gives help for the get-service command.
$x=get-service: It will shorten the command to $x and next time when you run, $x, it will run get-service command as that shortcut.
new-alias np notepad: Creates an alias, np to open notepad
To run a vb script from command prompt,
cscript <scriptname.vbs>
No comments:
Post a Comment