[ISO Mount] - privilege elevation required
Published: January 30, 2023 - 11:33 AM
WAPT version: 2.2.3.12481
Enterprise Edition
Server OS: Windows Server 2019
Operating system of the machine: Windows 10
Hello, I have been trying for some time to create a package to mount an ISO under Windows which is located on a network drive using PowerShell command line, the main problem being the privilege elevation request.
I tried something like this:
In the script, I use a credential to provide the identification details in order to mount the iso with administrator rights, however the process does not happen completely without interaction since a Windows dialog box appears in order to continue and authorize the rest.
Is it therefore possible to increase ISO in a completely automatic way?
Enterprise Edition
Server OS: Windows Server 2019
Operating system of the machine: Windows 10
Hello, I have been trying for some time to create a package to mount an ISO under Windows which is located on a network drive using PowerShell command line, the main problem being the privilege elevation request.
I tried something like this:
Code: Select all
def run_powershell(command):
subprocess.run(['powershell',command])
run_powershell('Start-Process PowerShell.exe -Verb RunAs -ArgumentList "-NoProfile -NonInteractive C:\temp\ScriptCred.ps1" -WindowStyle Hidden')Is it therefore possible to increase ISO in a completely automatic way?