Hi,
I'd like to move an computer object in a task sequence via PowerShell.
I have a PowerShell Script to do this:
$target = Get-ADOrganizationalUnit -LDAPFilter "(name=TargetOU)"
get-adcomputer mycomputer| Move-ADObject -TargetPath $target.DistinguishedName
Please advise howto integrate this in SCCM 2012 R2 task sequence (and where).
I'm not sure if the object is already there it will throw an error ...?
Please advise.
J.
Jan Hoedt
Update: there is this thread but where would you implement the step (and any special settings for enabling powershell (set-executionpoliy)?