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

Quick 1-liner: Raise Domain Functional Level from 2003 to 2012 R2

This command is required to enable 2012R2 functional level (group policy replication) adprep /domainprep /gpprep…

A Short List of Windows Remote Desktop Server Error Messages

Log Messages: 'Failed GetConnectionProperty' in CUMRDPConnection::QueryProperty at 2884 err=[0x80004001]'Connection doesn't support logon error redirector' in…

Windows 2012 Maintenance

- Check if .NET Framework 4.5 is installed: (Get-ItemProperty -Path 'HKLM:\Software\Microsoft\NET Framework Setup\NDP\v4\Full' -ErrorAction SilentlyContinue).Version…
Other project: DragonCoin.com