DEAR ALL:
After I install "SA-ModularInput-PowerShell",it will show this error message
Unable to initialize modular input "powershell2" defined inside the app "SA-ModularInput-PowerShell": Unable to locate suitable script for introspection.
Can anyone help me to solve this probmel!!
All that this means is that PowerShell2 won't work (probably because you don't have the OLD .Net 3.5 installed). The newer version will work if "PowerShell" isn't giving you the same error.
ERROR ModularInputs - Unable to initialize modular input "powershell2" defined inside the app "SA-ModularInput-PowerShell": Unable to locate suitable script for introspection.
how to fix this?
yep its ok now. ive fixed it.
Did you read what I wrote above? What OS is your server? Does it have .Net 3.5 installed? Can you run:
PowerShell.exe -version 2.0
You don't need to worry about this. Basically, there are two modular inputs, "PowerShell" for all the latest versions of PowerShell, and "PowerShell2" for the older PowerShell 2. If you only see this message for PowerShell2, then it just means you don't have the old version available.
On a Server 2012R2, by default only the current version of .Net is installed, and only CLR 4 is available, not CLR 2.
Thus, by default you can have [PowerShell:...]
stanzas which will run the latest PowerShell installed, nut you cannot have [PowerShell2:...]
stanzas which run the older PowerShell version 2, because that requires CLR 2 (i.e.: .Net 3.5 SP1).
If, for some reason, you wanted to use the old version of PowerShell, you could install .Net 3.5 SP1, which is available as a "feature" for Windows. That will include the CLR version 2, and will allow you to use the older [PowerShell2:...]
stanzas if you need to.
I received this error after upgrading universal forwarders on 2012R2 domain controllers. Apparently SA Powershell is not needed on indexers/search head for my configuration. Disabling SA-PS on the indexers and search head stopped the errors.