Hello everyone,
I am using the following createfile that is exiting with code=1
delete __createfile
delete powershell.ps1createfile until EOF
Get-NetAdapter * | Where-Object {{ $_.TransmitLinkSpeed -EQ “25000000000” }} | Set-NetAdapterAdvancedProperty -DisplayName “Jumbo Packet” -DisplayValue “9014”
EOFmove __createfile powershell.ps1
waithidden powershell.exe -ExecutionPolicy Bypass -File powershell.ps1
This is what is showing on the client log
GatherHashMV command received.
At 15:01:22 -0400 - mailboxsite (http://root.local:52311/cgi-bin/bfgather.exe/mailboxsite1080821027)
Downloaded ‘http://relay.local:52311/mailbox/files/0d/7c/0d7cd895f18a6696972ef01de2feccb9d02997a0’ as ‘Action 193306.fxf’
Gather::SyncSiteByFile adding files - count: 1
At 15:01:22 -0400 -
Successful Synchronization with site ‘mailboxsite’ (version 200) - ‘http://root.local:52311/cgi-bin/bfgather.exe/mailboxsite1080821027’
Processing action site.
At 15:01:25 -0400 - mailboxsite (http://root.local:52311/cgi-bin/bfgather.exe/mailboxsite1080821027)
Relevant - Custom Action (fixlet:193306)
At 15:01:25 -0400 -
ActionLogMessage: (action:193306) Action signature verified for Execution
ActionLogMessage: (action:193306) starting action
At 15:01:25 -0400 - actionsite (http://root.local:52311/cgi-bin/bfgather.exe/actionsite)
Command succeeded delete No ‘C:\Program Files (x86)\BigFix Enterprise\BES Client__BESData\actionsite__createfile’ exists to delete, no failure reported (action:193306)
Command succeeded delete powershell.ps1 (action:193306)
Command succeeded createfile until (action:193306)
Command succeeded move __createfile powershell.ps1 (action:193306)
Command started - waithidden powershell.exe -ExecutionPolicy Bypass -File powershell.ps1 (action:193306)
At 15:01:26 -0400 -
Report posted successfully
At 15:01:27 -0400 - actionsite (http://root.local:52311/cgi-bin/bfgather.exe/actionsite)
Command succeeded (Exit Code=1) waithidden powershell.exe -ExecutionPolicy Bypass -File powershell.ps1 (action:193306)
At 15:01:28 -0400 -
ActionLogMessage: (action:193306) ending action
At 15:01:28 -0400 - mailboxsite (http://root.local:52311/cgi-bin/bfgather.exe/mailboxsite1080821027)
Not Relevant - Custom Action (fixlet:193306)
If I run the PowerShell cmd directly on Windows it does what it needs to do.
What am I doing wrong?
Thanks!