Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Powershell script Add-computer "" -OUPath "" failing when executed.

$
0
0

Good afternoon,

I have the following script that is ran manually with elevated rights to join a windows 7 workstation to a domain and to the right OU.

Add-Computer -domainname "org domain" -OUPath "OU=folder1,DC=part1,DC=part2,DC=part3" -cred domain\ -passthru -verbose

This was working up to a month ago.  If I remove, the -OUPath part of the script, it works as its meant to.  Please if anyone has any ideas that can help, it would be great.

Warm Regards,


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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