Run powershell script as admin through a shortcut
hi have script on file server many of coworkers use. have shortcuts script. i've discovered need run admin. if needed go shortcut's properties , under compatibility force run admin. grayed out reason.
my question best way run script admin through shortcut? i've started messing runas opens 2 windows , hoping there better way. there need make run admin option on shortcut not grayed out? know can make script start admin through script think open 2 windows well.
thanks in advance!!
right click on shourtcut, select properties, click advanced, check "run administrator"
for script, try insert code self-elevate one..
sam boutros, senior consultant, software logic, kop, pa http://superwidgets.wordpress.com (please take moment vote helpful and/or mark answer, applicable) _________________________________________________________________________________ powershell: learn before it's emergency http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
Windows Server > Windows PowerShell
Comments
Post a Comment