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

use power shell to delete user's home folder

$
0
0

So we have a big list of users that are Disabled ( not locked out )

and we exported the into a txt file stored as:

Account type in the exported file is like: Firstname.Surname@domain.ltd.grp

Home folder current configuration is:

Connect P: \\userdatasrv\department-****\USERNAME\

I believe we need a loop script that should take the all the values from the txt file check if user's home folder still exists and then remove it

 

Can you advise if there is a script that can delete user's home folder ?

I found a similar request here...

http://powershell.com/cs/forums/t/17647.aspx


Viewing all articles
Browse latest Browse all 6937

Trending Articles