Solved

Moveuser.exe on 300 PCs

Posted on 2004-08-30
7
301 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
Comment Utility
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
Comment Utility
Can you use ADMT on the local machine?
0
 
LVL 23

Expert Comment

by:rhandels
Comment Utility
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

by:SCP028
Comment Utility
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 250 total points
Comment Utility
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
Comment Utility
Now clue, if this doesnt work, you may get two knocks....  LOL :)

Hopefully this script does work.
0
 

Author Comment

by:SCP028
Comment Utility
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 Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

FIPS stands for the Federal Information Processing Standardisation and FIPS 140-2 is a collection of standards that are generically associated with hardware and software cryptography. In most cases, people can refer to this as the method of encrypti…
Greetings, Experts! First let me state that this website is top notch. I thoroughly enjoy the community that is shared here; those seeking help and those willing to sacrifice their time to help. It is fantastic. I am writing this article at th…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now