Skip to content

[Bug] Add better documentation regarding removed auto-elevation within the exe. #144

@eprowe

Description

@eprowe

Prerequisites

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

  1. Create a new 4.1.0 deployment.
  2. Execute Invoke-AppDeployToolkit.exe without elevation.
  3. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions