user/hoem/profile delete script ????

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need a little help...

When a user is deleted out of the Active directory:

you must:

1. Delete the user out of the Active directory

2. Take over permission of the home and profile.

3. Delete the home folder and content, and delete the profile folder and
content.

I need to do this with a script and have a problem with the taking over of
the permissions...
?

please help me...

Thank you very much,
cth
 
I need a little help...

When a user is deleted out of the Active directory:

you must:

1. Delete the user out of the Active directory

2. Take over permission of the home and profile.

3. Delete the home folder and content, and delete the profile folder and
content.

I need to do this with a script and have a problem with the taking over of
the permissions...
?

please help me...

Thank you very much,
cth

subinacl /subdirectories <FolderPath>\*.* /setowner=<DomainName\UserName>

Download subinacl from tip 6705 in the 'Tips & Tricks' at http://www.jsiinc.com

Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
Sorry,
but this is not completely what I need, This I have tried...

I have not the knowledge to write a script to do this:

1. change the users (to be deleted) password (to gain access to the account).
2. use the users account to delete the folders :home:profile.
3. delete the user from the active directory, ---with NOT knowing which 'OU'
the user is in.

this way I do not need to take the ownership of the folders, (when they are
VERY large I will not know how long the take-ownership will take.

Please I need a example that I can modify to make work... Please help...
Thank you very much,

CTH
 
You can
net user username newpassword /domain
and then use RunAS, tip 2548 AND 7111
or 7258 in the 'Tips & Tricks' at http://www.jsiinc.com



Sorry,
but this is not completely what I need, This I have tried...

I have not the knowledge to write a script to do this:

1. change the users (to be deleted) password (to gain access to the account).
2. use the users account to delete the folders :home:profile.
3. delete the user from the active directory, ---with NOT knowing which 'OU'
the user is in.

this way I do not need to take the ownership of the folders, (when they are
VERY large I will not know how long the take-ownership will take.

Please I need a example that I can modify to make work... Please help...
Thank you very much,

CTH


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
??????
net user testuser testpwnew /testdom
runas testuser testpwnew del x:\home\testuser
runas testuser testpwnew del x:\profile\testuser
net user testuser /DELETE
??????
how to get this in a script is the very question that I have, I am not the
script wizard that I have heard you all are... ?
Please help me put this together...
Thank you for your kindness...
Tracy
 
Back
Top