User privileges stored in Package
Published: June 11, 2018 - 6:55 PM
Hello,
A PowerShell file "scripttest.ps1" creates two different text files:
- one with a path on the machine's local hard drive (C:\test\coucou.txt),
- the other with a path to a server share (\\server-ip\share\salut.txt).
1) When I open and run "scripttest.ps1" from the Ps1_To_Exe_(x64).exe interface, both text files are created.
2) When I create the scripttest.exe file from Ps1_To_Exe_(x64).exe and then run it, both text files are created
(Ps1_To_Exe_(x64) settings: 64-bit Exe-Format | Windows (invisible), UAC Requires User Privileges).
3) When I run scripttest.exe from the PyScripter interface ("make and edit" then "Run Configuration / install / Run"), both text files are created.
4) When I create the wapt package (Run Configuration / -i build-upload / Run) and assign it to a machine, the script runs, the local text file on C:\test is created, but the remote text file on \\server-ip\share is not created.
It would seem, therefore, that this is a problem of lost user privileges. How could I fix this, please?
Thank you in advance.
WAPT server 1.5.1.23 on Debian Stretch, option 1 in Post-configuration "registration without authentication (As in version 1.3)".
A PowerShell file "scripttest.ps1" creates two different text files:
- one with a path on the machine's local hard drive (C:\test\coucou.txt),
- the other with a path to a server share (\\server-ip\share\salut.txt).
1) When I open and run "scripttest.ps1" from the Ps1_To_Exe_(x64).exe interface, both text files are created.
2) When I create the scripttest.exe file from Ps1_To_Exe_(x64).exe and then run it, both text files are created
(Ps1_To_Exe_(x64) settings: 64-bit Exe-Format | Windows (invisible), UAC Requires User Privileges).
3) When I run scripttest.exe from the PyScripter interface ("make and edit" then "Run Configuration / install / Run"), both text files are created.
4) When I create the wapt package (Run Configuration / -i build-upload / Run) and assign it to a machine, the script runs, the local text file on C:\test is created, but the remote text file on \\server-ip\share is not created.
It would seem, therefore, that this is a problem of lost user privileges. How could I fix this, please?
Thank you in advance.
WAPT server 1.5.1.23 on Debian Stretch, option 1 in Post-configuration "registration without authentication (As in version 1.3)".