Encountering error "Command failed (Substitution failed while writing file) createfile until END_OF_FILE" while executing Power shell script to install SNMP service

The command does install the feature, this from my test server, though it requires a restart so might need some restart detection so the fixlet doesn’t misreport as failed while the InstallPending state is waiting for the system restart

Relevance
(windows of operating system) and (product type of operating system != nt workstation product type) and (not exists selects "* from Win32_ServerFeature where Name='SNMP Service'" of wmis) and (not pending restart "SMNP-Service")

Action
action uses wow64 redirection false
waithidden powershell.exe -executionpolicy bypass -command "Add-WindowsFeature SNMP-Service | Out-Null"
action requires restart "SMNP-Service"

3 Likes