Solved

Logon Script

Posted on 2006-10-20
6
222 Views
Last Modified: 2010-04-18
All I have GPO pushing a .bat logon script . I have a program .exe that is trying to install on user boxes, but can't because there not admins on the box it self. Is there a way I can give my logon script admin right to puch to the computer? Or maybe a way to allow the exe to be installed? Thanks
0
Comment
Question by:RelientK
  • 2
6 Comments
 
LVL 9

Expert Comment

by:SamuraiCrow
ID: 17774843
Is the exe you are pushing user or profile specific?  If not you can use the computer startup script to install it instead (a nice way to circuimvent admin priveleges).
0
 
LVL 9

Accepted Solution

by:
SamuraiCrow earned 500 total points
ID: 17774870
You can also try using AutoIT (FREE!)(Download here:)
http://www.autoitscript.com/autoit3/

You can easily create a m3u script file that can be compiled into an executable.  Just specify the account, password, name of the exe or bat file, and path.  Works like a charm.  Best of all it's free!  Definately one of the most useful tools I have in my admin arsenal.  Here is the syntax:

Dim $UserName, $DomainName, $Password, $RunProgram, $RunPath

$UserName = "Username"
$DomainName = "domainname"
$Password = "Password"

$RunProgram = "setup.exe"
$RunPath = "\\servername\sharename"


RunAsSet ( $UserName, $DomainName, $Password )

$val = RunWait($RunPath & "\" & $RunProgram, $RunPath, @SW_Maximize)
0
 
LVL 51

Expert Comment

by:Netman66
ID: 17777224
You could also run this as a Startup script from UNC path.

Make sure you check for the existance of it already at the start of the script so it doesn't run more than once.

0
 
LVL 8

Expert Comment

by:nitadmin
ID: 17781179
The Autoit V3 that SamuraiCrow mentioned above is great tool. I first learned about when I was reading a book called Windows Admin Scripting Little Black Book by Jesse M. Torres.

You can definately use that tool to perform remote install. It is much easier that creating MSI files.

Cheers,
NITADMIN
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Organizations create, modify, and maintain huge amounts of data to help their businesses earn money and generally function.  Typically every network user within an organization has a bit of disk space to store in process items and personal files.   …
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
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 demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 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

21 Experts available now in Live!

Get 1:1 Help Now