Opened on Feb 5, 2009 at 9:41:27 PM
Closed on Feb 5, 2009 at 11:01:03 PM
Last modified on Oct 23, 2021 at 8:17:10 AM
#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!
Attachments (0)
Change History (1)
comment:1 by , on Feb 5, 2009 at 11:01:03 PM
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |

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.