I would do a test with the above script, but change the source and destination to my documents.
I had a similar issue, tried amending the script and nothing. Tested it in My documents and it worked.
So my issue was due to permissions / UAC and not the actual script.
Also when deleting, I...
Can anyone provide a script or some links for searching AD for all accounts that expired yesterday?
Once I have these accounts I have a script that will disable / move the account to a specified OU.
Thanks
Edit -
I can get the expiry date and then use the following code to change it to a...
Hi,
Thanks for the responses. It was vbscript and I managed to figure out the issue. It was because some Users did not have a manager set, hence the value was null and I hadn't determined what the script should do with this.
Though I now have a new problem -
The script now removes all groups...
I have written a function that will take a DN and only output the CN.
This works fine, however when I add this to my main script (It pulls back usernames of users who have an expiry date) I get error -
Invalid Use of Null
Please be aware I am new to scripting so the script my not follow the...
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.