attachments/bwilson/media/windows-live-writer/c54c2e3c04e4_cd8e/clip_image002_thumb.jpg

Operations Manager Shell Fails to Load Properly

  Recently I discovered that the OM Shell on my RMSe (MS1) was failing to load properly.  I quickly opened up remote desktop session to another MS (MS2) in my management group to test it’s OM Shell. The OM Shell on MS2 loaded fine, pointing me back to the MS1 as the problem.  Luckily for me, the solution was rather simple. After receiving a suggestion from a colleague of mine, I compared the OM Shell Shortcut on MS1 (the broken one) to the OM Shell Shortcut on MS2 (the happy camper).  What I discovered was that for some reason the “Start In” section was blank on MS1’s shortcut, so I entered the appropriate information in the field, saved my changes and was then able to successfully launch my OM Shell on my RMSe.

Here’s what I was seeing

clip_image002

Here’s the error in detail:

The term ‘.\OperationsManager\Functions.ps1’ 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:67
+ Import-Module OperationsManager; .\OperationsManager\Functions.ps1 <<<< ; .\O
perationsManager\Startup.ps1
    + CategoryInfo          : ObjectNotFound: (.\OperationsManager\Functions.p
   s1:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

The term ‘.\OperationsManager\Startup.ps1’ is not recognized as the name of a c
mdlet, function, script file, or operable program. Check the spelling of the na
me, or if a path was included, verify that the path is correct and try again.
At line:1 char:100
+ Import-Module OperationsManager; .\OperationsManager\Functions.ps1; .\Operati
onsManager\Startup.ps1 <<<<
    + CategoryInfo          : ObjectNotFound: (.\OperationsManager\Startup.ps1
   :String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32>

Here’s the “fixed” shortcut

image

The Target field should read: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoExit Import-Module OperationsManager; .\OperationsManager\Functions.ps1; .\OperationsManager\Startup.ps1

The Start In field should read: "C:\Program Files\System Center 2012\Operations Manager\Powershell\"

4 Comments

  1. Christine November 1, 2012
  2. Blake November 1, 2012
  3. Christine November 2, 2012
  4. Blake November 15, 2012

Leave a Reply