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

Moving WSUS Content Staging Folder

Symptom: Bloated Wsus Staging Folder: Resolution: $wsusNewContentFolder='D:\Wsus\WsusContent'stop-service 'wsus service'&'C:\Program Files\Update Services\Tools\wsusutil.exe' movecontent $wsusNewContentFolder "$wsusNewContentFolder.log"start-service 'wsus…

Install FOG, an Open Source Machine Backup and Cloning Solution

- Install Ubuntu or Centos - Install FOG - On Windows Client, run sysprep, then…

How to remove a “No mapping between account names and security IDs was done” error

Case 1: This pertains to a domain-joined account on a domain-joined computer. These legacy cmdlets…