-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Prerequisites
- Ensure you write a short, descriptive title after [Bug] above.
- Make sure to search for any existing issues before filing a new one.
- Verify you are able to reproduce the issue with the latest released version
PSAppDeployToolkit version
4.1.0
Describe the bug
Launching Invoke-AppDeployToolkit.exe from a 4.1.0 deployment fails to display a UAC prompt and silently fails. Using /debug yields the following:
Open-ADTSession : This deployment requires administrative permissions and the current user is not an Administrator, or
PowerShell is not elevated. Please re-run the deployment script as an Administrator and try again.
At C:\{Redacted}\Invoke-AppDeployToolkit.ps1:332 char:19
+ $adtSession = Open-ADTSession @adtSession @iadtParams -PassThru
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (60008:Int32) [Open-ADTSession], UnauthorizedAccessException
+ FullyQualifiedErrorId : System.UnauthorizedAccessException,Open-ADTSession
Steps to reproduce
- Create a new 4.1.0 deployment.
- Execute Invoke-AppDeployToolkit.exe without elevation.
- Nothing happens.
Environment data
OsName : Microsoft Windows 11 Enterprise
OSDisplayVersion : 24H2
OsOperatingSystemSKU : EnterpriseEdition
OsArchitecture : 64-bit
WindowsVersion : 2009
WindowsProductName : Windows 10 Enterprise
WindowsBuildLabEx : 26100.1.amd64fre.ge_release.240331-1435
OsLanguage : en-US
OsMuiLanguages : {en-US}
KeyboardLayout : en-US
TimeZone : (UTC-08:00) Pacific Time (US & Canada)
HyperVisorPresent : True
CsPartOfDomain : True
CsPCSystemType : Desktop
dotnet : The term 'dotnet' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:270
+ ... 'HyperVisorPresent','CsPartOfDomain','CsPCSystemType'); dotnet --info
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (dotnet:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Metadata
Metadata
Assignees
Labels
No labels