"copy" is a shell command, so it's only available if you're in cmd.exe.
Try xcopy.exe instead.
Main Topics
Browse All TopicsHi ,
I am trying following
runas /noprofile /user:administrator@mymach
I am getting error
RUNAS ERROR: Unable to run - copy /Y \\servername\sharename\fil
87: The parameter is incorrect.
Any clues?
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
>>> I don't believe you can use UNC names with the copy command (I could be wrong). Try mapping a drive to that resource and then doing the >>>same thing.
Copy command with UNC names works without RUNAS.
Thanks oBdA. Xcopy seems to work. I want to put this in RIS answer file so that after setup is finished above command will run and copy necessary file . Whats the best way of doing this ?
Tig
Copy isn't a program but a command and runas cannot set privileges for commands, only complete programs.
Instead of:
runas /noprofile /user:administrator@mymach
Do:
runas /noprofile /user:administrator@mymach
Business Accounts
Answer for Membership
by: cyber_bulldogPosted on 2006-03-01 at 06:26:39ID: 16075081
i use a batch file that runs another batch file with the run as...