• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 772
  • Last Modified:

run logon script elevated privileges

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
pridemarketing
Asked:
pridemarketing
1 Solution
 
ryanjonesCommented:
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
 
Don ThomsonCommented:
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

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now