Background
Earlier today I had a bit of a hard time trying to run one of the scripts that our vendor wanted us to run.
Errors
Here is the error message.
Error Message – “IIS Management Tools is not installed”
Image
Textual
Checking that required modules are installed...FAILED The ISS Admin module is not installed. Please install IIS Management tools before continuing.
TroubleShooting
Read through the error message
Let us make sure that we understand the error message:-
- Unfortunately, there is a bit of a typo in the error message
- The error message reads
- The ISS Admin module is not installed. Please install IIS Management tools before continuing.
- Questions
- It states ISS Admin Module is not installed.
- Please install IIS Management tools before continuing
Remediation
Knowing that the script is written in Microsoft Powershell, I will take my chance that the missing module is Microsoft’s IIS ( Internet Information Server ).
Let us go install IIS Management Tools.
Install
Outline
- Install Windows Features
- web-mgmt-console
- Inquire Windows Features
- web-mgmt-console
Install Windows Features
web-mgmt-console
Syntax
powershell -Command "Install-WindowsFeature <feature>"
Sample
powershell -Command "Install-WindowsFeature web-mgmt-console"
Output
Output – Image
Output – Textual
Success Restart Needed Exit Code Feature Result ------- -------------- --------- -------------- True No Success {IIS Management Console, Management Tools,...
Explanation
- Success
- True
- Restart Needed
- No
- Exit Code
- Success
- Feature Result
- IIS Management Console
- Management Tools
Inquire Windows Features
web-mgmt-console
Syntax
powershell -Command "Get-WindowsFeature"
Sample
powershell -Command "Get-WindowsFeature -name '*web-mgmt*' "
Output
Output – Image
Output – Textual
Display Name Name Install State ------------ ---- ------------- [X] Management Tools Web-Mgmt-Tools Installed [X] IIS Management Console Web-Mgmt-Console Installed [ ] IIS 6 Management Compatibility Web-Mgmt-Compat Available [ ] Management Service Web-Mgmt-Service Available
Explanation
- Installation Status
- Installed
- Management Tools ( Web-Mgmt-Tools )
- IIS Management Console ( Web-Mgmt-Console )
- Management Tools ( Web-Mgmt-Tools )
- Available
- Management Tools ( Web-Mgmt-Tools )
- IIS 6 Management Compatibility ( Web-Mgmt-Compat )
- Management Service ( Web-Mgmt-Service )
- Management Tools ( Web-Mgmt-Tools )
- Installed
Summary
I went about this the wrong way.
So always check the status of a module before attempting to install it.
As always, on to the next!
[…] Win OS:- IIS Management Tools ( web-mgmt-console ) install Link […]