Home
Operating System
Windows
Linux
Tutorial
Windows Server
About
☰
Create computer on windows server
# Add new computer
New-ADComputer ` -Name "win7-client" ` -SamAccountName "win7-client" ` -Path "OU=Team,DC=server,DC=kh" ` -Enabled $true
✏️ Edit
📋 Copy
Copied!
## View single computer
Get-ADComputer -Identity "win7-client" -Properties *
✏️ Edit
📋 Copy
Copied!
## View multiple computer
Get-ADComputer -Filter * -Properties Enabled, OperatingSystem | Format-Table Name, Enabled, OperatingSystem
✏️ Edit
📋 Copy
Copied!
## View Everything inside the "Team" OU
Get-ADObject -Filter * -SearchBase "OU=Team,DC=server,DC=kh"
✏️ Edit
📋 Copy
Copied!
## Remove computer
Remove-ADComputer -Identity "win7-client" -Confirm:$false
✏️ Edit
📋 Copy
Copied!
Labels
all
(28 )
autocad
(3 )
css
(2 )
linux
(5 )
op_system
(18 )
website
(4 )
windows
(14 )
windowsServer
(24 )