Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Moveuser.exe on 300 PCs

Posted on 2004-08-30
7
Medium Priority
?
309 Views
Last Modified: 2010-10-20
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
Comment
Question by:SCP028
  • 4
  • 2
7 Comments
 
LVL 23

Expert Comment

by:rhandels
ID: 11934166
Hi,

If you need to move them from one domain into the other, you could use the ADMT (active Directory Migration Tool).
0
 

Author Comment

by:SCP028
ID: 11934366
Can you use ADMT on the local machine?
0
 
LVL 23

Expert Comment

by:rhandels
ID: 11934404
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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 

Author Comment

by:SCP028
ID: 11934532
Yeah, I am looking for something that will allow me to move the user's local machine profile.
0
 
LVL 9

Accepted Solution

by:
jdeclue earned 1000 total points
ID: 11944558
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
 

Author Comment

by:SCP028
ID: 11948077
Now clue, if this doesnt work, you may get two knocks....  LOL :)

Hopefully this script does work.
0
 

Author Comment

by:SCP028
ID: 11954532
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
Resolve DNS query failed errors for Exchange
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question