Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 17778

PowerTip: Create Computer Account in Active Directory with PowerShell

$
0
0

Summary: Use the Active Directory module to create a new computer account.

Hey, Scripting Guy! Question How can I use Windows PowerShell to create a computer account in Active Directory?

Hey, Scripting Guy! AnswerTo create a new computer called ScriptoPC, execute the following line in an Active Directory environment
          with a domain controller running Windows Server 2012 R2, Windows Server 2012, or Windows Server 2008 R2:

New-ADcomputer –name “ScriptoPC” –SamAccountName “ScriptoPC”


Viewing all articles
Browse latest Browse all 17778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>