I am using Windows 10 on a laptop and also Windows 10 on VMWare workstation.
I tried to use the command Convert-ADTDeployment, and the command appears invalid in Visual Studio Code or ISE
“The term ‘Convert-ADTDeployment’ is not recognized as the name of a cmdlet, function, …”
I also tried the command with -path and -destination, with same error.
Installed the v4.4 module also and it still gave me an error. Other functions seemed to work OK.
Thanks
You need to import first tools module.
Follow below sequence.
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
Install-Module PSAppDeployToolkit
Install-Module PSAppDeployToolkit.Tools
Install-Module PSScriptAnalyzer
Save-Module -Name PSAppDeployToolkit -Path “C:\Temp\MyAppDeployment”
Save-Module -Name PSAppDeployToolkit.Tools -Path “C:\Temp\MyAppDeployment” -AllowPrerelease
Save-Module -Name PSScriptAnalyzer -Path “C:\Temp\MyAppDeployment”
Import-Module “C:\Temp\MyAppDeployment\PSAppDeployToolkit”
Import-Module “C:\Temp\MyAppDeployment\PSAppDeployToolkit.Tools”
Get-Command -Module PSAppDeployToolkit
1 Like
Thanks Dhiraj,
Your reply got me going in the right direction. I hit this page and got the tools installed OK. Thanks again.
1 Like