Pentana Audit: Installing the prerequisite Windows components for the back end services (Windows 11)
The Pentana Audit document Ideagen Pentana Audit v6 Overview, Prerequisites and Readiness has an appendix containing a PowerShell script that will enable all the required Windows roles and features for supporting Pentana Audit.
This works for Windows Server editions, but sometimes it is necessary to install the Pentana Audit services onto a Windows 11 machine (e.g. for demo or test purposes).
The PowerShell for doing this in Windows 11 is shown below. Note that it is necessary to reboot the PC in between running the two chunks of script.
First script
# This PowerShell adds most of the prerequisite Windows components required by Pentana Audit v6.0.1.8
Enable-WindowsOptionalFeature -online -FeatureName "IIS-WebServerRole" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-WebServer" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-CommonHttpFeatures" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-DefaultDocument" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-HttpErrors" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-StaticContent" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-HealthAndDiagnostics" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-HttpLogging" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-ODBCLogging" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-Performance" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-HttpCompressionDynamic" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-Security" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-RequestFiltering" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-ApplicationDevelopment" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-NetFxExtensibility" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-NetFxExtensibility45" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-ASPNET" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-ASPNET45" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-ISAPIExtensions" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-ISAPIFilter" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-WebServerManagementTools" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-ManagementConsole" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-IIS6ManagementCompatibility" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-Metabase" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "IIS-LegacySnapIn" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "WCF-HTTP-Activation" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "WCF-NonHTTP-Activation" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "NetFx4-AdvSrvs" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "NetFx4Extended-ASPNET45" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "WCF-Services45" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "WCF-HTTP-Activation45" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "MSMQ-Server" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "WAS-WindowsActivationService" -All -NoRestart
# Restart
Restart-computer
The PC will restart at this point. After logging back in, run this second script:
Second script
# This PowerShell adds the remaining prerequisite Windows components required by Pentana Audit v6.0.1.8
Enable-WindowsOptionalFeature -online -FeatureName "WCF-MSMQ-Activation45" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "WCF-Pipe-Activation45" -All -NoRestart
Enable-WindowsOptionalFeature -online -FeatureName "WCF-TCP-Activation45" -All -NoRestart
# Restart
Restart-computer