Justin Tucker
asked on
Move and Disable PC's in Quest Powershell
Good Afternoon,
I've written a script to move a list of pc's to a new ou and have them disabled. Can anyone assist with this?
$Computers = Get-content C:\Users\adjustin\Desktop\ Test183.tx t | ForEach-Object {Get-QADObject -identity $_ | Disable-QADComputer -id $_| Move-QADObject -identity $_ -NewParentContainer Marked_for_Deletion/Disabl ed_Worksta tions }
I've written a script to move a list of pc's to a new ou and have them disabled. Can anyone assist with this?
$Computers = Get-content C:\Users\adjustin\Desktop\
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I never use Quest cmdlets as it is just added pluggin's and modules that are not required. This is why i did this using the native cmdlets above.
Will.
Will.
ASKER
Understandable, Thanks for the help!
Glad, that it worked for you!
Will.
Will.
ASKER
Is there anyway to do it with quest cmdlets? Im still learning how to do this?
Thanks,