Solved

run logon script elevated privileges

Posted on 2011-09-08
2
733 Views
Last Modified: 2012-05-12
i'm looking for an easy way to run our log in script with elevated privileges, our users are set to low local privileges im running an ipconfig /registerdns in the login script and this is failing.  
0
Comment
Question by:pridemarketing
2 Comments
 

Accepted Solution

by:
ryanjones earned 125 total points
ID: 36506891
Try using runas.

runas /user:domain\username cmd.exe
runas /user:domain\username "C:\path_to_Script"

Problem is it will prompt for a password everytime unless you use the /savecred switch then it will ask just the once.

There is a VBscript that automates it with a password here.

http://gallery.technet.microsoft.com/scriptcenter/9bda53d7-ec2e-4bc2-8e97-4487233bc55b

0
 
LVL 14

Expert Comment

by:Don Thomson
ID: 36509998
You could alway create domain user that has Admin privs with no password  but doesn't have access to any of the server shares. That would allow you to run the scripts above that ryanjones suggested

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

757 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

18 Experts available now in Live!

Get 1:1 Help Now