Jump to content

Script to copy roaming profile folder on exit


Recommended Posts

Guest Davey
Posted

I have an app that writes to Local Settings on the user profile - this

location cannot be changed by the app vendor

 

Local settings is excluded by default from the roaming profile

 

So i want a script to run at logoff to copy Local Settings from the user

profile back to the roaming profile

 

I have tried this but it just hangs when the user logs off

 

xcopy "c:\documents and settings\%username%\local settings"

\\servername\Profileshare\%username%\local settings /r /s /e /c /h /y /i

 

Any ideas out there guys ?!

  • Replies 1
  • Created
  • Last Reply

Popular Days

Guest Lanwench [MVP - Exchange]
Posted

Re: Script to copy roaming profile folder on exit

 

Davey <Davey@discussions.microsoft.com> wrote:

> I have an app that writes to Local Settings on the user profile - this

> location cannot be changed by the app vendor

>

> Local settings is excluded by default from the roaming profile

>

> So i want a script to run at logoff to copy Local Settings from the

> user profile back to the roaming profile

>

> I have tried this but it just hangs when the user logs off

>

> xcopy "c:\documents and settings\%username%\local settings"

> \\servername\Profileshare\%username%\local settings /r /s /e /c /h /y

> /i

>

> Any ideas out there guys ?!

 

Hi - you're also posting as "groundhog," correct? If so, no need to start a

new thread - you have a 'live' one going already. Also, for future

reference, microsoft.public.windows.server.scripting is a better group for

questions like this. None of this really has to do with TS at all.

 

That said, what I immediately noticed is that you don't have double quotes

around \\servername\Profileshare\%username%\local settings (any time there's

a space you need double quotes). You might try changing that & see if it

works. I don't use xcopy; I prefer robocopy from the resource kit, so I

don't know whether your parameters are correct, though.


×
×
  • Create New...