Hi All, Please assist me on the below mentioned error:-1: Command failed (Substitution failed while writing file) createfile until END_OF_FILE.(In endpoint logs)
I am executing the below mentioned action script which includes the power shell script to install SNMP service on windows servers:-1:
As already mentioned, you will need to escape the curtly braces in the powershell commands to avoid relevance substitution.
Maybe an alternate approach, which leverages the power of Bigfix’s ability to detect what systems need to run remeidial actions, would be to check if the feature is installed via relevance, that way only servers that are missing the service will be able to the fixlet action to to install it. Eg
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)
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")