script to delete remote desktop user profile in C:\Users in window server 2008 R2


hello everyone,

we want script delete remote desktop user profile in c:\users in window server 2008 r2 run in bsa.  please help!

regards,

pazu lee

run in bsa? not sure mean this.

can set gpo remove cahced copies of profiles @ logoff

"computer configuration -> system -> user profiles "delete cached copies of roaming profiles""
have found great tool use on our production 2008r2 , 2012r2 rds hosts call delprof2.exe. 

https://helgeklein.com/free-tools/delprof2-user-profile-deletion-tool/

this tool not affiliated me in way, can confirm run , dont have issues in our environment. have called via scheduled task run nightly.

you can apply following gpos dont *always* remove profiles...

computer configuration-->policies-->administrative templates-->system-->user profiles-->delete user profiles older specified number of days on system restart

computer configuration-->policies-->administrative templates-->system-->user profiles-->delete user profiles older (days)



Windows Server  >  Remote Desktop Services (Terminal Services)



Comments

Popular posts from this blog

CRL Revocation always failed

Failed to query the results of bpa xpath

0x300000d errors in Microsoft Remote Desktop client