Tsuji - thanks for your post - great idea. Even though when I run it manually, it came up with error 80070035, but when I put echo on script, it came woth different number! So I then just changed the error number on the code. Thanks!
Thanks for your reply, you may not have read the last bit. I said in the bottom of my first message, the script doesn't pick up error number "80070035" for some weird reason. So I cannot use that code.
"But for some reason, the script doesn't pick up error code "80070035" (as a test, I just...
Hi,
I have the following code, where user gets added to local domain admin if required.
If there are errors i.e. User already local admin, or user not on domain, I need it to display the relevant error message (this bit works).
If there are no errors, I just want it to run the bottom line...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.