So I am trying to write a script, to do the following:
1. delete a user from Active Directory
2. delete their home folder on the server (using a UNC path)
3. delete the users mailbox
I have a script written to delete the user from Active Directory and I also
know how to delete a folder from a server using the File System object.
My problem is, I do not have permissions to delete the folder. When we, as
administrators go to manually delete folder, we must take ownership first,
and then we can delete it. So how in asp or vbscript, can I take ownership of
a folder? Once I have ownership, I can delete the folders.
Any help would be appreciated.
Thanks
Steve