Category: Powershell

Prompt for a computer asset name & move a computer to a new OU in Active Directory using powershell.

Prompt for a computer asset name & move a computer to a new OU in Active Directory using powershell. Change the AD domain and Local Admins group to your chosen target. $name = Read-Host -Prompt ‘Enter the users asset tag that you want to move in AD’ Get-adcomputer $name | Move-ADObject -TargetPath “OU=Local Admins,OU=Devices,DC=blog-adigraham,DC=co,DC=uk”

Read More →
Follow

Get every new post on this blog delivered to your Inbox.

Join other followers: