You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If PSAppDeployToolkit.Tools is freshly installed or updated, it installs PSScriptAnalyzer 1.24.0
This is the issue I mentioned in #10 I didn't want to hijack that issue.
This results in the following error when attempting to convert a script:
VERBOSE: Running ScriptAnalyzer fixes on [C:\Users\%username%\AppData\Local\Temp\2\Convert-ADTDeployment_5t51w4bjoep\Deploy-Application.ps1]
VERBOSE: Removing temp folder [C:\Users\%username%\AppData\Local\Temp\2\Convert-ADTDeployment_5t51w4bjoep]
VERBOSE: [2025-04-24T12:28:45.6194727-04:00] [Convert-ADTDeployment] :: The property 'Invoke-ScriptAnalyzer' cannot be found on this object. Verify that the property exists.
Error Record:
-------------
Message : The property 'Invoke-ScriptAnalyzer' cannot be found on this object. Verify that the property exists.
FullyQualifiedErrorId : PropertyNotFoundStrict,Convert-ADTDeployment
ScriptStackTrace : at Convert-ADTDeployment<Process>, C:\Users\%username%\Documents\PowerShell\Modules\PSAppDeployToolkit.Tools\0.2.3\PSAppDeployToolkit.Tools.psm1: line 298
at <ScriptBlock>, \\cm01\sources$\PowerShell App Deployment Toolkit\v4 Management Scripts\Convert-ADTDeployment(v4).ps1: line 136
at <ScriptBlock>, <No file>: line 1
PositionMessage : At \\cm01\sources$\PowerShell App Deployment Toolkit\v4 Management Scripts\Convert-ADTDeployment(v4).ps1:136 char:13
+ Convert-ADTDeployment -Path $Path -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I am able to force uninstall 1.24.0, force install 1.23.0, then avoid updating the module to get things in a working state.
Prerequisites
PSAppDeployToolkit.Tools version
0.2.3
PSAppDeployToolkit version
4.0.6
Describe the bug
If PSAppDeployToolkit.Tools is freshly installed or updated, it installs PSScriptAnalyzer 1.24.0
This is the issue I mentioned in #10 I didn't want to hijack that issue.
This results in the following error when attempting to convert a script:
I am able to force uninstall 1.24.0, force install 1.23.0, then avoid updating the module to get things in a working state.
If module is imported
Remove-Module -Name PSAppDeployToolkit.Tools
Uninstall PSScriptAnalyzer 1.24.0
Get-Module -ListAvailable -Name PSScriptAnalyzer | Where-Object -Property Version -eq 1.24.0 | Uninstall-Module -Force
Install PSScriptAnalyzer 1.23.0
Install-Module -Name PSScriptAnalyzer -Scope CurrentUser -RequiredVersion 1.23.0 -Force
Import modules
Import-Module -Name PSAppDeployToolkit.Tools
Import-Module -Name PSAppDeployToolkit
Steps to reproduce
Environment data
The text was updated successfully, but these errors were encountered: