All Apps and Add-ons

PSConsole error running powershell script from TA-Exchange-Mailbox bin directory

Esky73
Builder

Seeing the following error when running powershell script both manually and as splunk shown below - anyone got any pointers please?

All the scripts in the TA fail in this manner

c:\Program Files\SplunkUniversalForwarder\bin>splunk cmd "c:\Program Files\SplunkUniversalForwarder\etc\apps\TA-Exchange-Mailbox\bin\exchangepowershell.cmd" v15 get-databasestats_2013.ps1
-PSConsoleFile : The term '-PSConsoleFile' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ -PSConsoleFile \bin\exshell.psc1 -command . 'c:\Program Files\SplunkU ...
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (-PSConsoleFile:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException



 

Labels (1)
Tags (1)
0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In the last month, the Splunk Threat Research Team (STRT) has had 2 releases of new security content via the ...

Announcing the 1st Round Champion’s Tribute Winners of the Great Resilience Quest

We are happy to announce the 20 lucky questers who are selected to be the first round of Champion's Tribute ...

We’ve Got Education Validation!

Are you feeling it? All the career-boosting benefits of up-skilling with Splunk? It’s not just a feeling, it's ...