Forum Discussion
Error Set-webConfigurationProperty cmdlet not recognized
I am trying to deploy Azure Migrate Installer. When I run it for the first time, I get the following:
Installing C:\Install\AzureMigrateInstaller\MicrosoftAzureApplianceConfigurationManager.msi...
[OK]
[Script execution failed with error] The term 'Set-WebConfigurationProperty' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
[Exception caught] The term 'Set-WebConfigurationProperty' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again..Exception
Retry executing the script after resolving the issue(s) or contact Microsoft Support.
I first tried this on a machine that did not run IIS. I also tried it on a machine that was running IIS 10, and got the same results. What can I do to fix this issue. I am running it in the same directory as the AzureMigrateInstaller.psi.
About 3 years to late for you however when I had this issue it was because I was running the command in Powershell 7.
2 Replies
Please also be aware Set-WebConfigurationProperty cmdlet is part of the IIS WebAdministration PowerShell module, which is not installed or loaded by default. You may install the IIS Management Scripts and Tools feature and import the WebAdministration module before running the Azure Migrate installer.
- ben-roseTin Contributor
About 3 years to late for you however when I had this issue it was because I was running the command in Powershell 7.