I don't use NT6, so UAC/etc I have no experience. There is Win32::AdminMisc
, also see Windows runas command Runas using open Creating a process as a normal user without password (Linux 'su' for Windows 7?)
. runas.exe uses the C CreateProcessAsUser and/or CreateProcessWithLogonW internally, so try find a Perl module, that contains those 2 names in its XS code or its POD docs. Worst case use Win32::API
, CreateProcessWithLogonW seems easiest to use since it doesn't have very many complicated structs/data types, see http://msdn.microsoft.com/en-us/library/windows/desktop/ms682431%28v=vs.85%29.aspx
and Win32::API and CreateProcessWithLogonW
And start a new thread, this one has gone too deep in replys.