Script to migrate some user profile files

I’ve knocked together a quick script that copies

· Signatures

· Favourites

· Desktop Items

From old Citrix Profile to new Citrix Profile

You still need to select the signature in Outlook, but at least the files are all there to choose from:

 

@echo off

IF EXIST "\\bluechip.local\TSProfilesNew$\%username%\NTUSER.DAT" SET OLDPROFILE=\\bluechip.local\TSProfilesNew$\%username%
IF EXIST "\\bluechip.local\TSProfilesNew$\%username%.BLUECHIP\NTUSER.DAT" SET OLDPROFILE=\\bluechip.local\TSProfilesNew$\%username%.BLUECHIP

IF NOT DEFINED OLDPROFILE GOTO THE_END

ECHO.
ECHO. Old Profile Detected As
ECHO. %OLDPROFILE%
ECHO.

XCOPY /D /E /C /Y "%OLDPROFILE%\Application Data\Microsoft\Signatures" "%USERPROFILE%\AppData\Roaming\Microsoft\Signatures"

XCOPY /D /E /C /Y "%OLDPROFILE%\Desktop" "%USERPROFILE%\Desktop"

XCOPY /D /E /C /Y "%OLDPROFILE%\Favorites" "%USERPROFILE%\Favorites"

:The_End

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s