i have an agent procedure that will install applications to a workstations. all of our workstations are configured to escalate to a administrator level before they can install or configure any thing. so i create a script (please see attached file) that will check if the user is logon> impersonate a user ( i put the administrators username and password)> execute the file ( execute as login user) else execute the file as system user..
after deploying the agent procedure to some of the pc's, the procedure status always on pending mode..
can you tell me what went wrong with my script?
or do you have any alternative procedure to bypass the uac escalation of windows...