Note: This article was originally published in 2012. Some steps, commands, or software versions may have changed. Check the current Windows Server 2012 documentation for the latest information.
Windows Server 2012 list of Powershell commandlets & a few common ones
With the release of Windows Server 2012 server powershell got a few changes as well. There are some quick start guides available here: http://www.microsoft.com/en-us/download/details.aspx?id=30002 that will make most tasks in the command prompt much easier. Below are a few common commandlets that can be useful to know: Installation and removal of Windows features (always useful if you are running a core installation):
- Install-WindowsFeature – ServerManagerCmd.exe. Can install Windows Roles and Features.
- Remove-WindowsFeature – ServerManagerCmd.exe. Can uninstall Windows Roles and Features.
Some general IP / Network commands:
-
Get-NetIPConfiguration – IPConfig. Obtain IP addresses for network adapters.
-
New-NetFirewallRule – Netsh Advfirewall Add. Can add a new Windows Firewall rule.
-
Get-NetTCPConnection – Netstat. Can retrieve statistics of TCP connections.
-
Get-NetRoute – Route Print. Can display network routing.
-
New-SmbMapping – Net Use. Can map a network path.
Service / Computer management:
- Restart-Computer – shutdown.exe. Can restart local or remote computers.
- Start-Service – Net Start. Can start a Windows service.
- Stop-Service – Net Stop. Can stop a Windows service
- Restart-Service – Net Stop | Net Start. Can restart a Windows service.
(http://img.zemanta.com/zemified_h.png?x-id=cc9ad11e-6ff5-4301-b6f2-9a0970fc0ecc)](http://www.zemanta.com/?px “Enhanced by Zemanta”)
Related Articles
- How to: Enable Shadow Copy or Previous Version in Windows 2012 R2?
- How to: Make my DNS server resolve my WPAD entry for my proxy server and what is the DNS Block List?
- How to: Resolve errors 13 and 12292 on Volume Shadow Copy Service (VSS) and stop Virtual Machines from going into Save state
- How to: Resolve Windows error 0x8004FE33 indicating client activation failure