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

Transfer Domain Controller Roles (Legacy Commands)

# Simple commands: netdom query fsmo ntdsutil roles connections connect to server SRVI-DC01 q transfer…

PowerShell: Add Local Group Members Onto a Server List

Sometimes, the GUI method of accomplishing tasks is too arduous and error prone. Thus, these…

FreeNAS

Features: OpenVNP plugin https://joepaetzel.com/2013/09/22/openvpn-on-freenas-9-1/ FTP server Web server SAMBA etc.   How to install: -…