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.  
pridemarketingAsked:
Who is Participating?
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.