Link to home
Start Free TrialLog in
Avatar of Justin Tucker
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.txt | ForEach-Object {Get-QADObject -identity $_ | Disable-QADComputer -id $_| Move-QADObject -identity $_ -NewParentContainer Marked_for_Deletion/Disabled_Workstations }
ASKER CERTIFIED SOLUTION
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Justin Tucker
Justin Tucker

ASKER

Thanks Will,

Is there anyway to do it with quest cmdlets? Im still learning how to do this?

Thanks,
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.
Understandable, Thanks for the help!
Glad, that it worked for you!

Will.