SharePoint MP Config task issue

Hi All.

I have created all the necessary accounts and also given admin access to all the farm servers and also to the DB. Whenever i try to execute the config task, i get the below error, pls suggest.

this is for SCOM 2012 R2.

The Event Policy for the process started at 3:25:03 PM has detected errors in the output. The 'StdErr' policy expression:
.+ matched the following output:get-executionpolicy : The term 'get-executionpolicy' 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:7
+ $ep = get-executionpolicy; if ($ep -gt 'RemoteSigned') {set-executionpolicy
remo ...
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (get-executionpolicy:String) [],
CommandNotFoundException
+ Fully
Command executed: "C:\Windows\system32\cmd.exe" /c powershell.exe -NoLogo -NoProfile -Noninteractive "$ep = get-executionpolicy; if ($ep -gt 'RemoteSigned') {set-executionpolicy remotesigned} & '"E:\Program Files\Microsoft System Center 2012 R2\Operations Manager\Server\Health Service State\Monitoring Host Temporary Files 12\5617\AdminTask.ps1"' 'Microsoft.SharePoint.Foundation.Library.mp.config'"
Working Directory: C:\Program Files\System Center Management Packs\
One or more workflows were affected by this.
Workflow name: Microsoft.SharePoint.ConfigSharePoint
Instance name: Microsoft SharePoint Farm Group
Instance ID: {6CB0A80D-D833-26EA-13C1-0CA48A57F5E2}
Management group: IMSBLR
Error Code: -2130771918 (Unknown error (0x80ff0032)).


March 17th, 2015 6:24am

Hi,

According to the error message, it seems like powershell is not running. I would like to suggest you manullay run below command on the target server: 

"C:\Windows\system32\cmd.exe" /c powershell.exe -NoLogo -NoProfile -Noninteractive " get-executionpolicy "

In addition, please re-check your configuration according to the article below:

Configuring the SharePoint 2010 Management Pack for System Center Operations Manager

https://support.microsoft.com/en-us/kb/2690744?wa=wsignin1.0

Regards,

Yan Li

Free Windows Admin Tool Kit Click here and download it now
March 18th, 2015 2:00am

Hi Yan,

Thanks for the reply.

i'm getting the reply when i execute the command:

"C:\Windows\system32\cmd.exe" /c powershell.exe -NoLogo -NoProfile -Noninteractive " get-executionpolicy "

and also i have followed the link, that you have mentioned. not sure how to go about it.

March 18th, 2015 3:29am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics