Jump to content

Recommended Posts

Posted

Hi guys,

 

I'm looking at resetting everyone's roaming profile over the summer, but I'm guessing that if I delete the network copy, when they turn their machine on it will just use the local copy and copy it back to the network share. I've got over 800 desktops so manually deleting them off every PC isn't an option! Does anyone have a script?

 

Cheers!

Posted

Although we don't use roaming profiles, just have delprof2.exe on every machine, then create a GPO to run the following batch file (has to be located in the same folder as defprof2) only when the machine is idle:

 

"%~dp0Delprof2.exe" /u

 

Alternatively, you could use psexec.exe to remote run defprof2 on all your PCs if you give psexec a list of your PC names.

 

HTH,

 

Meldrew

Posted

Alt to the above (the ease of this depends on whether you have startup/shutdown scripts already): create an OU, put computers in it. Enable:

 

Computer Configuration > Policies > Administrative Templates > System > User Profiles > Delete User Profiles older than a specified number of days on system restart AND Delete cached copies of roaming profiles

 

 

power cycle the machines, move them out of the OU, power cycle again.

 

(I wouldn't really recommend adding the above rules to the domain!).

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...