Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


remote script authentication?

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,63709
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> remote script authentication?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 remote script authentication? - 8/21/2008 8:38:10 PM   
  roflcakes22

 

Posts: 3
Score: 0
Joined: 8/20/2008
Status: offline
Hi,

I have two scripts ... one that copies the second script down to the c:\ of all PC's listed in my computers.txt file ... this works fine ... my second script once copied down to the PC, should then pull some files down from a server share, and then run an MSI

Now this script works fine if you run it locally on your machine, however when you try run it remotely on a client pc, it doesnt copy the files down from the server share ...

I've been told that this always happens and you need to enable control delegation so that script can authenticate to the server to pull the files down, from your credentials from your machine ... both PC's are logged in as me, which has admin rights on both boxes

Does anyone know a way around this? I can visit each machine, login as me, and run the script fine, but it's about 50 PC's and i cant be bothered to walk around doing them all individually lol

Thanks
 
 
Post #: 1
 
 RE: remote script authentication? - 8/21/2008 10:27:01 PM   
  mbouchard


Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
Take a look at PSexec from PStools.  It is a sysinternals tool available on technet.  

_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to roflcakes22)
 
 
Post #: 2
 
 RE: remote script authentication? - 8/22/2008 2:01:12 AM   
  Rischip


Posts: 502
Score: 2
Joined: 3/26/2007
Status: offline
Try something like this. Send in the params to Xcopy down the file. They will be something like this 

"xcopy \\servername\sharename\filename.ext c:\"

Call like this 

createprocess.vbs computername "xcopy \\servername\sharename\filename.ext c:\" c:\

Save below as createprocess.vbs


      

Let me know if it works for you.

I use something similar, but I grabbed this one from here...http://www.serverwatch.com/tutorials/article.php/1476821

If it doesn't work then I'll see if I can't remove the necessary code from what I use.



Or there's always this method.


      


And if all that isn't to your liking, there's always this behemoth... (Scheduled Task) http://www.microsoft.com/technet/scriptcenter/resources/scriptshop/shop0305c.mspx

If you've read this far, you are probably liking the idea of PSEXEC right about now... Unless you are a Glutton for Punishment.

< Message edited by Rischip -- 8/22/2008 3:25:22 AM >


_____________________________

Rischip
Author of - The Grim Linker

(in reply to roflcakes22)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> remote script authentication? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts