Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Delete Active Directory Users and Data

$
0
0

Hi

I'm creating a script that will look in a specifik OU and delete all the disabled user accounts, the attached home folder and the also look if there is a folder starting with the "samaccountname" on a share and delete that to.
The first two parts of the script seems to be working just fine, removing the user account and the home folder attached to it.
The help i need is with the the part removing the folder on the share 
\\SETHNWS034\Profiles$\RDSHFarm01\"samaccountname.domain.v2"
Thank You!
/Jonas



 

Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images