Hey i want to run this part:
Dim objShell
Set objShell = WScript.CreateObject ("WScript.shell")
objShell.run "powershell -command '& {Start-Service AxInstSV}'"
of an vbscript as an administrator. How can i manage this? My Computer is in an domain. Is it possible to run the powershell + the command as an admin from the vbs?
Why use VBScript to call PowerShell? Confused. Why not start the service in VBScript, or just use Powershell on its own?
As for programatically running something with “run as admin”, in order to use the “unrestricted token”, I haven’t yet found a solution other than configuring auto-admin-approval via Group Policy.