Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

run logon script elevated privileges

Posted on 2011-09-08
2
Medium Priority
?
763 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
ryanjones earned 500 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using dates in 'DOS' batch files has always been tricky as it has no built in ways of extracting date information.  There are many tricks using string manipulation to pull out parts of the %date% variable or output of the date /t command but these r…
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 video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

722 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