<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to resole this: FormatMessage was unable to decode error (193), (0xc1)? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resole-this-FormatMessage-was-unable-to-decode-error-193/m-p/493728#M84343</link>
    <description>&lt;P&gt;10-07-2019 13:33:23.696 -0700 ERROR ExecProcessor - Couldn't start command ""C:\Program Files\SplunkUniversalForwarder\etc\apps\test\bin\abc.ps1"": FormatMessage was unable to decode error (193), (0xc1)&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2023 01:57:47 GMT</pubDate>
    <dc:creator>venkateshparank</dc:creator>
    <dc:date>2023-02-10T01:57:47Z</dc:date>
    <item>
      <title>How to resole this: FormatMessage was unable to decode error (193), (0xc1)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resole-this-FormatMessage-was-unable-to-decode-error-193/m-p/493728#M84343</link>
      <description>&lt;P&gt;10-07-2019 13:33:23.696 -0700 ERROR ExecProcessor - Couldn't start command ""C:\Program Files\SplunkUniversalForwarder\etc\apps\test\bin\abc.ps1"": FormatMessage was unable to decode error (193), (0xc1)&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 01:57:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-resole-this-FormatMessage-was-unable-to-decode-error-193/m-p/493728#M84343</guid>
      <dc:creator>venkateshparank</dc:creator>
      <dc:date>2023-02-10T01:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: FormatMessage was unable to decode error (193), (0xc1)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resole-this-FormatMessage-was-unable-to-decode-error-193/m-p/493729#M84344</link>
      <description>&lt;P&gt;Hi Venkat,&lt;/P&gt;

&lt;P&gt;With the description provided there is not much i can help with, but below are few accepted answers which could be of use.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/334729/how-to-troubleshoot-why-my-powershell-scripted-inp.html"&gt;https://answers.splunk.com/answers/334729/how-to-troubleshoot-why-my-powershell-scripted-inp.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/1775/powershell-script-is-throwing-off-error-message-what-does-it-mean.html"&gt;https://answers.splunk.com/answers/1775/powershell-script-is-throwing-off-error-message-what-does-it-mean.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Add some more context so we can discuss further on the issue &lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 22:01:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-resole-this-FormatMessage-was-unable-to-decode-error-193/m-p/493729#M84344</guid>
      <dc:creator>pruthvikrishnap</dc:creator>
      <dc:date>2019-10-07T22:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: FormatMessage was unable to decode error (193), (0xc1)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resole-this-FormatMessage-was-unable-to-decode-error-193/m-p/548554#M91200</link>
      <description>&lt;P&gt;I just had the same error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;04-20-2021 10:31:06.770 +0200 ERROR ExecProcessor - Couldn't start command ""C:\Program Files\SplunkUniversalForwarder\etc\apps\myapp\bin\myscript.ps1"": FormatMessage was unable to decode error (193), (0xc1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had a deployment app which consisted of a ps1 file and this inputs.conf:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[script://.\bin\myscript.ps1]
index = myindex
schedule = */15 * * * *
crcSalt = &amp;lt;SOURCE&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could not find out why this error message appeared.&lt;/P&gt;&lt;P&gt;However, I found this article: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/MonitorWindowsdatawithPowerShellscripts" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/MonitorWindowsdatawithPowerShellscripts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I removed the ps1 file and created this inputs.conf instead:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[powershell://MyPSInput01]
index = myindex
script = Get-ADDomainController -Filter * | Select-Object -Property Domain,Name,HostName,IPv4Address,OperatingSystem,Enabled
schedule = */15 * * * *
crcSalt = &amp;lt;SOURCE&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This solved my issue.&lt;/P&gt;&lt;P&gt;I don't know if this works for more complex scripts than my one-liner.&lt;/P&gt;&lt;P&gt;Using the powershell input works surprisingly well: Before that I used "ConvertTo-Csv" as part of the PowerShell command to convert the PowerShell output to CSV before indexing. Using the powershell input, I do not need to specify the sourcetype and Splunk handles the log format automatically.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 08:45:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-resole-this-FormatMessage-was-unable-to-decode-error-193/m-p/548554#M91200</guid>
      <dc:creator>whrg</dc:creator>
      <dc:date>2021-04-20T08:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: FormatMessage was unable to decode error (193), (0xc1)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resole-this-FormatMessage-was-unable-to-decode-error-193/m-p/630371#M108049</link>
      <description>&lt;P&gt;For convenience, building on top of the previous response regarding the one-liner:&lt;/P&gt;&lt;P&gt;The following is an example from the&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/MonitorWindowsdatawithPowerShellscripts?_gl=1*cw3zfh*_ga*MTkyMzg0MDg0OC4xNjc1OTg2NjI1*_ga_5EPM2P39FV*MTY3NTk4NjYyNC4xLjEuMTY3NTk4NzIxMS41NS4wLjA." target="_blank"&gt;Monitor Windows data with PowerShell scripts - Splunk Documentation&lt;/A&gt;&amp;nbsp;which allows for a multiline script using the [powershell] rather than [script] stanza&lt;/P&gt;&lt;PRE&gt;   [powershell://MSExchange_Health]
    script=. $SplunkHome/etc/apps/TA-Exchange-2010/powershell/health.ps1&lt;/PRE&gt;&lt;P&gt;Testing this at the moment with a custom PS script but doesn't fill me with supreme confidence when the official example references TA-Exchange-2010.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 00:16:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-resole-this-FormatMessage-was-unable-to-decode-error-193/m-p/630371#M108049</guid>
      <dc:creator>rivium_ro_mc</dc:creator>
      <dc:date>2023-02-10T00:16:38Z</dc:date>
    </item>
  </channel>
</rss>

