Which profile?

J

Jamie

Hi,

I'm writing a simple batch file for copy some user
profile information such as desktop, favorites, my
documents, etc. I am using %username% to copy the
current user logged on profile. It seems to work fine
most of the time, but we have some computers/users that
it doesn't. What I've noticed is that sometimes the user
has more than one profile in documents and settings. For
example normally it would have a folder "userid", but
others have a folder named "userid.(domain name)". Is
there a way I can check which profile is the one the user
is actually currently using?? Any help would be much,
much appreciated!!

Thanks!

Jamie
 
M

Mark V

In said:
Hi,

I'm writing a simple batch file for copy some user
profile information such as desktop, favorites, my
documents, etc. I am using %username% to copy the
current user logged on profile. It seems to work fine
most of the time, but we have some computers/users that
it doesn't. What I've noticed is that sometimes the user
has more than one profile in documents and settings. For
example normally it would have a folder "userid", but
others have a folder named "userid.(domain name)". Is
there a way I can check which profile is the one the user
is actually currently using?? Any help would be much,
much appreciated!!

For the Current User you want the environment variable
USERPROFILE
I think.
 
P

PS

Jamie said:
Hi,

I'm writing a simple batch file for copy some user
profile information such as desktop, favorites, my
documents, etc. I am using %username% to copy the
current user logged on profile. It seems to work fine
most of the time, but we have some computers/users that
it doesn't. What I've noticed is that sometimes the user
has more than one profile in documents and settings. For
example normally it would have a folder "userid", but
others have a folder named "userid.(domain name)". Is
there a way I can check which profile is the one the user
is actually currently using?? Any help would be much,
much appreciated!!

Thanks!

Jamie

Jamie-

You can use the new CopyProfile command-line tool to copy user profiles on a
Windows XP-based or a Windows Server 2003-based computer. Its scriptable.
Here is a link

http://www.microsoft.com/downloads/...96-f3a6-4fdd-862b-1ae03dc130c1&DisplayLang=en

Good Luck!
PS
 
G

Guest

I'm going from a W2K workstation to another W2K workstation. I have about a hundred of these to do and am trying to find a quicker way to copythe current profile information such as desktop, my documents, favorites, office settings, etc. I'd like to copy up to a server from the old machine and down from the server to the new machine if possible. It would be even better if I didn't have to have the user logged in for any of this

Any suggestions are greatly appreciated!
 
D

David Wang [Msft]

All of the visible directories for each user are safe for you to copy. The
hidden ones can contain machine specific info (even configuration) and
should not be blindly copied.

You need the user to log in because otherwise you do not know where to copy
from/to.

Use "%USERPROFILE%" to determine the user's directory.

Office settings are best transferred using the Office "Save My Settings"
Wizard.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
I'm going from a W2K workstation to another W2K workstation. I have about a
hundred of these to do and am trying to find a quicker way to copythe
current profile information such as desktop, my documents, favorites, office
settings, etc. I'd like to copy up to a server from the old machine and
down from the server to the new machine if possible. It would be even
better if I didn't have to have the user logged in for any of this.

Any suggestions are greatly appreciated!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top