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

Testing NFS Between Linux Server & Windows Client

On Linux server:1. Turn of selinux/ipchains/iptables during the test. This could be turned on at…

Microsoft Dynamics Sluggish CRM Records Creation – Slow to Update Views

Symptom: Event Logs with repeated entries... Log Name: ApplicationSource: MSCRMAsyncServiceDate: 11/15/2021 01:55:49 AMEvent ID: 25349Task…

Securing Windows Remote Desktop Services

secpol.msc > Local Policies > User Rights Assignments > double-click "Allow Log on through Remote…