Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Run as an Admin to install a program


  • Please log in to reply
2 replies to this topic

#1 Phototechman

Phototechman

  • Members
  • 2 posts
  • OFFLINE
  •  
  • Local time:11:31 AM

Posted 11 May 2010 - 01:40 PM

Hello,

I am trying to find any way I can to install a service to all my PC's by using a .bat file or .vbs file in their login scripts. We make changes to this service every day so having it install on a daily basis is fine.

I don't want to use any third party programs that need to be installed on the client machines.

I have a .bat file that works but requires the person to enter in the password manually. A long time ago I figured out how to make the .bat file call on a .ini file that has the password in it and this would override the users having to enter in the password.

my script looks pretty much like this.

runas /user:domainname\installuser "\\server\shares\setup.exe"

I don't really care how if it has to use .vbs, .bat or just call the info out of a .ini file.. I'm just stumped on how I got this to work last time.


Thanks!

EDIT: Moved from Vista to more appropriate Programming forum ~ Hamluis.

Edited by hamluis, 11 May 2010 - 02:32 PM.


BC AdBot (Login to Remove)

 


#2 Romeo29

Romeo29

    Learning To Bleep


  • Members
  • 3,194 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:127.0.0.1
  • Local time:11:31 AM

Posted 11 May 2010 - 08:51 PM

Use this : http://www.softtreetech.com/24x7/archive/53.htm
It does not need to be installed.

#3 Phototechman

Phototechman
  • Topic Starter

  • Members
  • 2 posts
  • OFFLINE
  •  
  • Local time:11:31 AM

Posted 13 May 2010 - 02:04 PM

Thanks for the info, I tired runas.exe and it worked ok but seemed to have issues with my domain login. Sometimes it worked, sometimes it didn't. I found a program called cpau.exe and it workes really good with my active directory..




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users