Posted On August 26, 2021

Quick PowerShell Cmdlet to Move Computer Object

kimconnect 0 comments
blog.KimConnect.com >> Windows >> Quick PowerShell Cmdlet to Move Computer Object
$computername='SomeComputerName'
$targetOU='OU=Computers,DC=kimconnect,DC=com'
Move-ADObject -Identity (Get-ADComputer $computername).objectguid -TargetPath $targetOU

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Set Windows Remote Desktop To Allow Blank Passwords

By default, Windows restricts RDP access for account without passwords. Of course, this is a…

Windows-clean-up.cmd

------------------------------Clear out TEMP files on a regular basis - this is best done at startup…

Deploying LDAP / Active Directory Self Service Password Portal

Overview: There are several choices of platforms to deploy Password Manager: Kubernetes, Docker, Windows, and…
Other project: DragonCoin.com