Deleting Roaming Profile folders from the server

E

ewallig

Hi all,

I'm working on some automation for my W2K DC to manage
user accounts. One part of this script is the deletion of
accounts for users that do not logon for a period of time
(lab environment with a transient population). The script
is supposed to work like this:

1. Enumerate users with last logon dates of > 120 days

2. Delete the user's home folders

3. Delete the user's roaming profile folders

4. Delete the user's accounts from AD and write a report.

However, when I try to delete the profile folders that are
stored on the DC I run into a permissions problem. Even as
administrator, I do not have permissions to the folders -
I tried changing the ACL's for the folders using xcacls,
but I'm getting an "Access Denied" message. I also tried
the xcacls option to take ownership (as I can do that via
the GUI) without success.

Any suggestions? Thanks :(
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top