Some things you did in Windows Server 2003 from cmd that you can do in PowerShell in 2012 R2

The best way to learn PowerShell is to use PowerShell. One of the easiest ways to do that is to take common tasks you perform from the command prompt and to do them using PowerShell cmdlets. Here's a dozen things you do every day from cmd.exe that you can do using PowerShell.

Orin Thomas

June 11, 2015

1 Min Read
Some things you did in Windows Server 2003 from cmd that you can do in PowerShell in 2012 R2

The best way to learn PowerShell is to use PowerShell. One of the easiest ways to do that is to take common tasks you perform from the command prompt, such as using the ping utility to check network connectivity, and use the PowerShell equivelant.

For example: Test-NetConnection 8.8.8.8

And before you say “well that’s more typing than I need for ping” try the following

Test-NetConnection –traceroute 8.8.8.8

Here is a small number of other useful cmdlets that might help Server 2003 admins that aren’t familiar with PowerShell get more comfortable with it:

  • Get-NetIPConfiguration View IP address information (ipconfig functionality)

  • New-NetIPAddress Set IP address configuration (netsh interface functionality)

  • Stop-Service and Start-Service Stop and start a service use (net stop / net start)

  • Rename-Computer Rename a computer

  • Restart-Computer Restart a computer

  • Shutdown-Computer Shutdown a computer

  • Add-Computer Add a computer to a domain

  • Install-WindowsFeature Add a role or feature to a computer

  • New-VM Create a new VM

  • Get-Hotfix See which updates are installed

  • test-computersecurechannel –Repair Repair the trust relationship between a computer and the domain

 

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like