#800 closed Bug (No Bug)
runas from a network path
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.0.0 | Severity: | None |
| Keywords: | Cc: |
Description
I have written a script that will elevate an uninstall process to admin credentials. This works nicely when run from a local drive. However when run from a network path, the scripts pauses.
RunAs Command line reads:
RunAs($Admin, @LogonDomain, $AdminPwd,1,@ComSpec & ' /c ' & $RemoveOld)
As I'm using the @ComSpec /c, when running from local drive the command line box appears. When running same script (absolutely no changes) from a network path, this command line box does not appear.
To get around this I have created a .cmd file that copies the script file from the network path to the local drive and run script locally. Bit of a bummer!

The user you are running as can not see the network drive. Read the first statement under "Remarks" for RunAs() in the documentation. This is not a bug in AutoIt.