Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

PowerShell Moving Object Issue

$
0
0

I have a script that I wrote to pull PC names from a csv file, disable them, modify the description then move them to a specified OU.  I'm running into a small issue.  For instance, I have a PC named desktop1 that I want to disable and move.  It's also moving desktop10, desktop11, etc.

I'm using the following command:

Get-QADComputer $ComputerID | Move-QADObject -NewParentContainer $DisabledOU

Is there an easy way to tell it to only copy desktop1 instead of searching for all pcs with that string in the name?


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>