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!

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud  In today’s fast-paced digital ...

Observability protocols to know about

Observability protocols define the specifications or formats for collecting, encoding, transporting, and ...

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...