Thank you for your help. I really appreciate how you put the colors in the code examples to show me what I'm doing. That really helps.
I copied your code into my script and nothing happened. I have some WScript.echo's in the second script that is being called and they don't pop up. When I...
I'm still doing testing to get it to work
This works:
oShell.Run "cscript.exe ""C:\Documents and Settings\bmcintyr\My Documents\Scripts\CopyMarcotteFiles.vbs"""
but this won't
oShell.Run "RunAs /noprofile /user:bmcintyr ""cscript.exe ""C:\Documents and Settings\bmcintyr\My...
oooohhhh I get it. I stared at it for a while. It was kind of like those pictures that you have to stare at until the hidden picture comes out.
Thanks.
Brad
That doesn't quite make sense to me...
The first open quote is on "RunAs
The close to that quote is after abcdef "
The next open quote is on "cscript.exe
The close to that quote is after .vbs"
Why do I need the extra 2 at the end?
Thanks again for your help and direction I really appreciate...
The only issue is that the site where I need the code run is 13 hrs drive away, and I don't want to provide my network creds for the folks to type in. I just want to put the script on the PC, get the local users to run it then delete it.
Plus when you do option one, the creds are saved until...
This link may provide help to other users:
http://blogs.technet.com/b/heyscriptingguy/archive/2006/04/28/how-can-i-use-the-runas-command-to-run-a-script-under-alternate-user-credentials.aspx
Thanks for taking the time to read my question.
I have been searching for a solution, but have not found one online.
I have a script that copies a folder from a PC to the server. It works well on my laptop if I'm logged on as me and on the local domain. The problem I'm up against is the PC...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.