Nota: Este artigo foi publicado originalmente em 2012. Alguns passos, comandos ou versões de software podem ter mudado. Consulte a documentação atual de Windows Server 2012 para as informações mais recentes.

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: Instalação 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-NetIPConfiguração – 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”)

Artigos Relacionados