PowerShell CMD Line Conversion Guide AD
PowerShell CMD Line Conversion Guide AD
ACTIVE DIRECTORY CMD DCPROMO Switch PowerShell Cmdlet Install-ADDSForest Install-ADDSDomain Install-ADDSDomainController Uninstall-ADDSDomainController PowerShell Cmdlet Get-ADObject | Export-CSV Import-CSV | New-ADObject PowerShell Cmdlet Get-ADComputer Get-ADObject -LDAPFilter '(objectClass=contact)' Get-ADReplicationSubnet Get-ADGroup Get-ADOrganizationalUnit Get-ADReplicationSite Get-ADDomainController Get-ADUser Get-ADObject -SearchBase (Get-ADDomain).QuotasContainer -Filter * Get-ADObject -SearchBase (Get-ADForest).PartitionsContainer -LDAPFilter '(objectClass=crossRef)' PowerShell Cmdlet Get-ADComputer Search-ADAccount Get-ADObject -LDAPFilter '(objectClass=contact)' Get-ADReplicationSubnet Get-ADGroup Get-ADOrganizationalUnit Get-ADReplicationSite Get-ADDomainController Get-ADUser Search-ADAccount Get-ADObject -SearchBase (Get-ADDomain).QuotasContainer -Filter * Get-ADObject -SearchBase (Get-ADForest).PartitionsContainer -LDAPFilter '(objectClass=crossRef)' Get-ADObject PowerShell Cmdlet New-ADComputer New-ADObject -Type contact New-ADGroup New-ADOrganizationalUnit New-ADUser PowerShell Cmdlet Move-ADObject Rename-ADObject PowerShell Cmdlet Module ADDSDeployment Version 2012
CMD CSVDE CSVDE CMD DSGET DSGET DSGET DSGET DSGET DSGET DSGET DSGET DSGET DSGET CMD DSQUERY DSQUERY DSQUERY DSQUERY DSQUERY DSQUERY DSQUERY DSQUERY DSQUERY DSQUERY DSQUERY CMD DSADD DSADD DSADD DSADD DSADD DSADD CMD DSMOVE CMD
Switch i Switch computer contact subnet group ou site server user quota partition Switch computer contact subnet group ou site server user quota partition * Switch computer contact group ou user quota Switch
Module ActiveDirectory ActiveDirectory Module ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory Module ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory Module ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory Module ActiveDirectory Module
Version 2008 R2 2008 R2 Version 2008 R2 2008 R2 2012 2008 R2 2008 R2 2012 2008 R2 2008 R2 2008 R2 2008 R2 Version 2008 R2 2008 R2 2012 2008 R2 2008 R2 2012 2008 R2 2008 R2 2008 R2 2008 R2 2008 R2 Version 2008 R2 2008 R2 2008 R2 2008 R2 2008 R2 Version 2008 R2 Version
Switch
http://aka.ms/PsCmdGuideAD
v0.1
1 of 4
CMD DSACLS CMD REPADMIN REPADMIN REPADMIN REPADMIN REPADMIN REPADMIN REPADMIN REPADMIN REPADMIN REPADMIN REPADMIN
Switch
Module Microsoft.PowerShell.Security Module ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory
Version 2008 R2 Version 2012 2012 2012 2012 2012 2012 2012 2012 2008 R2 2008 R2 2008 R2
Switch /FailCache /Queue /ReplSingleObj /ShowConn /ShowObjMeta /ReplSummary /ShowUTDVec /SiteOptions /ShowAttr /SetAttr /PRP
CMD NLTEST NLTEST NLTEST NLTEST NLTEST NLTEST NLTEST NLTEST NLTEST CMD
Switch SC_RESET SC_VERIFY SC_CHANGE_PWD DCLIST DCNAME DSGETDC PARENTDOMAIN DOMAIN_TRUSTS SHUTDOWN Switch
Module Microsoft.PowerShell.Management Microsoft.PowerShell.Management Microsoft.PowerShell.Management ActiveDirectory ActiveDirectory ActiveDirectory ActiveDirectory Microsoft.PowerShell.Management Module
Version 2012 2012 2012 2008 R2 2008 R2 2008 R2 2012 2008 R2 Version
http://aka.ms/PsCmdGuideAD
v0.1
2 of 4
Switch
IP CMD PING CMD IPCONFIG IPCONFIG IPCONFIG IPCONFIG IPCONFIG CMD NETSTAT NETSTAT CMD Switch Switch /ALL /FLUSHDNS /DISPLAYDNS /REGISTERDNS Switch a r Switch PowerShell Cmdlet Test-Connection PowerShell Cmdlet Get-NetIPConfiguration Get-NetIPConfiguration -Detailed Clear-DnsClientCache Get-DnsClientCashe Register-DnsClient PowerShell Cmdlet Get-NetTCPConnection Get-NetRoute PowerShell Cmdlet Module Microsoft.PowerShell.Management Module NetTCPIP NetTCPIP DnsClient DnsClient DnsClient Module NetTCPIP NetTCPIP Module Version 2008 R2 Version 2012 2012 2012 2012 2012 Version 2012 2012 Version
DNS CMD NSLOOKUP CMD Switch Switch PowerShell Cmdlet Resolve-DNSName PowerShell Cmdlet Module DNSClient Module Version 2012 Version
http://aka.ms/PsCmdGuideAD
v0.1
3 of 4
DNSCMD DNSCMD
/ZoneInfo /ZoneAdd
DNSServer DNSServer
2012 2012
DISCLAIMER
This Sample Code is provided for the purpose of illustration only and is not intended to be used in a production environment. THIS SAMPLE CODE AND ANY RELATED INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. We grant You a nonexclusive, royalty-free right to use and modify the Sample Code and to reproduce and distribute the object code form of the Sample Code, provided that You agree: (i) to not use Our name, logo, or trademarks to market Your software product in which the Sample Code is embedded; (ii) to include a valid copyright notice on Your software product in which the Sample Code is embedded; and (iii) to indemnify, hold harmless, and defend Us and Our suppliers from and against any claims or lawsuits, including attorneys fees, that arise or result from the use or distribution of the Sample Code. This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm.
http://aka.ms/PsCmdGuideAD
v0.1
4 of 4