Specify Credentials to run Powershell Script to Query AD
- by Ben
I want to run a powershell script to query AD from a machine that is NOT on the domain.
Basically I want to query to see if there is computer account already on the domain for this machine and create it if there is not. Because this has to happen before the machine joins the domain I assume I will need to specify some credentials to enable it to…