Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

delete user accounts and their home folders

$
0
0

Hi,

For a global firm, I need powershel command to run againt a txt file or csv file to find left users in AD and delete their accounts from AD and their home drives from globally dispensed file servers.

a) need to take the ownership of the home drives to avoid permissions errors

b) like to see the ones cannot be deleted in a folder so I know which ones left

c ) AD server are 2008 r2 and file serversare 2003


Viewing all articles
Browse latest Browse all 6937

Latest Images

Trending Articles



Latest Images