Can not connect to Operations Manager Management Server via PowerShell

Recently I opened up the SCOM Operations Manager Shell (from my desktop as I always do – I have the Provider loaded on my workstation) and was presented with an error telling me that I didn’t have permission to access the OpsMgr PowerShell. Obviously this was unexpected as this normally worked fine and I could log into the console without any trouble.
So I put on my troubleshooting hat:

The first thing I thought was that nothing had changed so this must be a problem with the RMS. But when I RDP’d to the RMS PowerShell worked fine locally so that was not the problem. I checked my Domain Account and I was a member of the groups I had always been. I checked SCOM and verified that I was still an Administrator and no-one was playing tricks on me. I looked in the event log and verified that there was nothing wrong there either.

Then I had one of those “doh” moments as the answer hit me.

I am running Windows 7 on my desktop and rather than mapping a drive to a folder on my RMS Server where I…”ahem…play” with Scripts and so forth, I had used the “Favorites” feature of Windows Explorer.

Windows 7 Explorer Favorites

Since access to my RMS folder requires Administrative access, I had provided my credentials, checked the box to ‘remember my credentials’ and then saved the connection.
(Note: I don’t use the Administrator Account by the way, the image below is for illustrative purposes only) 😀

Remember my credentials...doh!

After a while (due to our password policy) my password had expired and I was forced to change it. This meant that my ‘favorites’ no longer worked and I was prompted to change the password accordingly – which I did.

Shortly after, I noticed my Operations Manager Shell giving me the following error and I couldn’t connect (even if I typed in the correct credentials).

Welcome to the Operations Manager 2007 R2 Command Shell.  This command shell is
designed to provide interactive and script based access to Operations Manager
data and operations.  This functionality is provided by a set of Operations
Manager commands.

To list all commands, type: Get-Command
To list all Operations Manager commands, type: Get-OperationsManagerCommand
To get help for a command, type: Get-Help [command name]

Connecting to Operations Manager Management Server ‘scom-rms’.
New-ManagementGroupConnection : The user does not have sufficient permission to perform the operati
At C:Program FilesSystem Center Operations Manager 2007Microsoft.EnterpriseManagement.Operations
Manager.ClientShell.Functions.ps1:113 char:60
+                 $connection = New-ManagementGroupConnection <<<<  -ConnectionString: $server -Err
    + CategoryInfo          : NotSpecified: (:) [New-ManagementGroupConnection], UnauthorizedAcces
    + FullyQualifiedErrorId : Microsoft.EnterpriseManagement.Common.UnauthorizedAccessMonitoringEx

cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:

Get-Credential : Cannot process command because of one or more missing mandatory parameters: Creden
At C:Program FilesSystem Center Operations Manager 2007Microsoft.EnterpriseManagement.Operations
Manager.ClientShell.Functions.ps1:119 char:44
+                     $creds = Get-Credential <<<< ;
    + CategoryInfo          : InvalidArgument: (:) [Get-Credential], ParameterBindingException
    + FullyQualifiedErrorId : MissingMandatoryParameter,Microsoft.PowerShell.Commands.GetCredentia

New-ManagementGroupConnection : Cannot validate argument on parameter ‘Credential’. The argument is
 null or empty. Supply an argument that is not null or empty and then try the command again.
At C:Program FilesSystem Center Operations Manager 2007Microsoft.EnterpriseManagement.Operations
Manager.ClientShell.Functions.ps1:120 char:104
+                     $connection = New-ManagementGroupConnection -ConnectionString: $server -Crede
ntial: <<<<  $creds -ErrorAction:SilentlyContinue;
    + CategoryInfo          : InvalidData: (:) [New-ManagementGroupConnection], ParameterBindingVa
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.EnterpriseManagement.Oper

Can not connect to Operations Manager Management Server ‘scom-rms’.
Enter the name of the Operations Manager Management Server to connect to.
Management Server:

And here’s a screenshot of that error:


I guess for some reason my ‘new password’ was not being presented to the Operations Manager Shell because the solution to the problem was to open up the “Credential Manager” in the Control Panel and enter in my new password there next to my RMS Server. After that the problem went away immediately.

Credential Manager

And now Windows PowerShell is back and so is my Operations Manager Connection…Today is a great day!


No comments yet.

Leave a Reply