Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

I am unable to run any powershell/exe/bat/cmd scripts under SCOM R

10 views
Skip to first unread message

Larry Clements@discussions.microsoft.com Dr. Larry Clements

unread,
Mar 5, 2010, 10:44:04 AM3/5/10
to
Administration; Notifications; Channels;
Channel Name: Script
Full path of the command file:
1) c:\larryclements\PS-Scripts\test2.ps1
2) powershell c:\larryclements\PS-Scripts\test2.ps1
3) C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
c:\larryclements\PS-Scripts\test2.ps1
4) c:\larryclements\PS-Scripts\test2.bat (calling the ps1)
5) c:\larryclements\PS-Scripts\test2.cmd (calling the ps1)
6) c:\larryclements\PS-Scripts\test2.exe
7) cmd /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
c:\larryclements\PS-Scripts\test2.ps1
No effect to any of the above.

Command Line parameters: hi mom
Startup Folder: c:\larryclements\PS-Scripts

1-6 work if run from Powershell.

I need to be able on an alert to run and external command that pushes the
command line parameters into an external database for global notification.

Any assistance is greatly appreciated.


Marco Shaw [MVP]

unread,
Mar 6, 2010, 6:30:27 AM3/6/10
to
This newsgroup is no longer viewed by most OpsMgr pros, you should be
posting here:
http://social.technet.microsoft.com/Forums/en-US/operationsmanagerextensibility/threads

Can you give us some kind of idea what's in the script? You mention an
external database... I believe scripts are under a particular OpsMgr
account. Does that user have any permissions on the database server? What
kind of authentication is enabled on the DB server? If it's SQL, is it
Windows or SQL authentication?

Marco

"Dr. Larry Clements" <Dr. Larry Clem...@discussions.microsoft.com> wrote in
message news:8A42DDDB-63BD-460F...@microsoft.com...

0 new messages