Client Management Suite

 View Only

How to Copy Files to User Profiles Using WiseScript 

May 01, 2008 02:44 PM

Definition: A user profile is a group of settings and files that defines the environment that the system loads when a user logs on.

It includes all the user-specific configuration settings, such as program items, screen colors, network connections, printer connections, mouse settings, and window size and position.

How to copy the files to user profiles using wise script

A Profile can be roaming profile or a local profile.

We have to search for the following registry value to get hold of users My documents or app data folders.

Profile whose user profile is redirected to H :\

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
"AppData"="C:\\Documents and Settings\\{USER}\\Application Data"
"Cookies"="C:\\Documents and Settings\\{USER}\\Cookies"
"Desktop"="H:\\apps\\xp\\Desktop"
"Favorites"="H:\\apps\\ie\\Favorites"
"NetHood"="C:\\Documents and Settings\\{USER}\\NetHood"
"Personal"="H:\\"
"PrintHood"="C:\\Documents and Settings\\{USER}\\PrintHood"
"Recent"="C:\\Documents and Settings\\{USER}\\Recent"
"SendTo"="C:\\Documents and Settings\\{USER}\\SendTo"
"Start Menu"="C:\\Documents and Settings\\{USER}\\Start Menu"
"Templates"="C:\\Documents and Settings\\{USER}\\Templates"
"Programs"="C:\\Documents and Settings\\{USER}\\Start Menu\\Programs"
"Startup"="C:\\Documents and Settings\\{USER}\\Start Menu\\Programs\\Startup"
"Local Settings"="C:\\Documents and Settings\\{USER}\\Local Settings"
"Local AppData"="C:\\Documents and Settings\\{USER}\\Local Settings\\Application Data"
"Cache"="C:\\Documents and Settings\\{USER}\\Local Settings\\Temporary Internet Files"
"History"="C:\\Documents and Settings\\{USER}\\Local Settings\\History"
"My Pictures"="C:\\Documents and Settings\\{USER}\\My Documents\\My Pictures"
"Fonts"="C:\\windows\\Fonts"
"My Music"="H:\\My Music"
"CD Burning"="C:\\Documents and Settings\\{USER}\\Local Settings\\Application Data\\Microsoft\\CD Burning"
"My Video"=""
"Administrative Tools"="C:\\Documents and Settings\\{USER}\\Start Menu\\Programs\\Administrative Tools"
*{USER} - Current user who is currently logged in.

Profile whose user profile is not redirected , pointing to c:\documents and settings.

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
"AppData"="C:\\Documents and Settings\\{USER}\\Application Data"
"Cookies"="C:\\Documents and Settings\\{USER}\\Cookies"
"Desktop"="C:\\Documents and Settings\\{USER}\\Desktop"
"Favorites"="C:\\Documents and Settings\\{USER}\\Favorites"
"NetHood"="C:\\Documents and Settings\\{USER}\\NetHood"
"Personal"="C:\\Documents and Settings\\{USER}\\My Documents"
"PrintHood"="C:\\Documents and Settings\\{USER}\\PrintHood"
"Recent"="C:\\Documents and Settings\\{USER}\\Recent"
"SendTo"="C:\\Documents and Settings\\{USER}\\SendTo"
"Start Menu"="C:\\Documents and Settings\\{USER}\\Start Menu"
"Templates"="C:\\Documents and Settings\\{USER}\\Templates"
"Programs"="C:\\Documents and Settings\\{USER}\\Start Menu\\Programs"
"Startup"="C:\\Documents and Settings\\{USER}\\Start Menu\\Programs\\Startup"
"Local Settings"="C:\\Documents and Settings\\{USER}\\Local Settings"
"Local AppData"="C:\\Documents and Settings\\{USER}\\Local Settings\\Application Data"
"Cache"="C:\\Documents and Settings\\{USER}\\Local Settings\\Temporary Internet Files"
"History"="C:\\Documents and Settings\\{USER}\\Local Settings\\History"
"My Pictures"="C:\\Documents and Settings\\{USER}\\My Documents\\My Pictures"
"Fonts"="C:\\WINDOWS\\Fonts"
"My Music"="C:\\Documents and Settings\\{USER}\\My Documents\\My Music"
"CD Burning"="C:\\Documents and Settings\\{USER}\\Local Settings\\Application Data\\Microsoft\\CD Burning"
"My Video"=""
"Administrative Tools"="C:\\Documents and Settings\\{USER}\\Start Menu\\Programs\\Administrative Tools"

Once we get the reg value we can use that location when copying files.

Cheers,
Wiseuser

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.