• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 312
  • Last Modified:

Moveuser.exe on 300 PCs

I am trying to incorporate Moveuser.exe into a script that will work for over 300 PCs on our network.  I tried using the variable %username% but that did not work, because it goes will use the username that is logged in.  Since you have to be logged into the PC with an account other than the one you are trying to copy, that will not work.  

Is there a way to use this command to move this many PCs, without having to type in each username into the command?

Or is there another command that will move user profiles?

Thanks,
Shane
0
SCP028
Asked:
SCP028
  • 4
  • 2
1 Solution
 
rhandelsCommented:
Hi,

If you need to move them from one domain into the other, you could use the ADMT (active Directory Migration Tool).
0
 
SCP028Author Commented:
Can you use ADMT on the local machine?
0
 
rhandelsCommented:
Not quite sure. I do beleive it is a "support" program of Server 2003. So i would say you could only use it on Server 2003
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
SCP028Author Commented:
Yeah, I am looking for something that will allow me to move the user's local machine profile.
0
 
jdeclueCommented:
I will answer in this question as well. ;)

If you put this line in the current login script it will create a file with there username in it on the c:\ drive.

"echo %username% > name.txt"

And then before movuser.exe runs, put this in. It will read the name and set an environment variable called strname. So instead of calling %username%, you would use %strname%. This will give you the users account no matter who is logged in.


for /F " eol= tokens=*" %%S in (c:\name.txt) do (set strname=%%S&goto:forend)
:forend
echo strname=%strname%


J
0
 
SCP028Author Commented:
Now clue, if this doesnt work, you may get two knocks....  LOL :)

Hopefully this script does work.
0
 
SCP028Author Commented:
Clue,

The script worked like a charm.  I will be posting the script with the moveuser command incorporated into it, in a few hours.

Thanks again

Where did u learn how to script like that??
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now