Migrating from CMD to PowerShell: A Reference to Commands and Cmdlets for AD Administration

Windows administrators have long relied on time-tested command line tools like PING, IPCONFIG, and REPADMIN. And some still use them, instead of turning their attention to PowerShell. Ashley McGlone , Premier Field Engineer Active Directory and PowerShell (you can see his smiling face in the photo), created a wonderful 4-page manual that correlates well-known Active Directory CMD utilities with their corresponding PowerShell cmdlets. For example, instead of PING, you can use the PowerShell cmdlet Test-Connection, instead of NSLOOKUP - Resolve-DNSName, instead of GPUPDATE - Invoke-GPUpdate.
Many will ask a question, but why is it, in fact, worth switching to PowerShell cmdlets at all? The author of the manual gives several reasons for this :
- The command line tools output simply text that requires parsing for further work with it. PowerShell allows you to transfer this data through the pipeline and work with it directly in the console or display it in a file.
- Team availability. For example, if you remotely connect to the server via RDP, then adminpak.msi or the Windows Rerource Kit may not be installed on it. And PowerShell is on every machine Windows Sever 2008 R2 and higher.
- The same syntax. The syntax for the various PowerShell cmdlets is similar.
- A large number of cmdlets for all occasions.
Considered CMD utilities and their corresponding PowerShell cmdlets
The following CMD utilities are in the focus of the free manual:
- REPADMIN
- Dcpromo
- CSVDE
- NETDOM
- NLTEST
- GPUPDATE
- Gpresult
- DSGET
- DSQUERY
- DSADD
- DSMOD
- DSRM
- DSMOVE
- DSACLS
- DNSCMD
- NSLOOKUP
- Ping
- IPCONFIG
- NETSTAT
The manual itself is based on the following logic:
CMD - Switch - PowerShell cmdlet - PowerShell module - Windows Server version.
Much attention is paid to the cmdlets that were introduced in Windows Server 2012 and PowerShell v3.
You can download it at technet .