I’ve got most things working with this script but having an issue trying to escape space in the name of the AD container I’m trying to add computers to.
Unfortunately, the AD server was setup long before I had any say in the way things were going to be structured and we have far too many computers to add them manually.
The error I’m getting back from the AD server is “The container you specified for the computer does not exist. Please verify the container information and try again.”
The container I’m trying to add to looks like this: ou=”CN=mac,CN=All The Computers,DC=example,DC=com” (names changed to protect the innocent).
I can successfully add computers to the normal “CN=Computers” container, but that’s not where we need them…
I’ve tried many combinations of single vs double quotes, escaping the spaces with backslashes, using “%20”, using “\20” and am reaching the limits of my escapability.
Does anyone have any other ideas which may be worth trying?
Any help greatly appreciated.
Chris.
Recent Comments