none
get manually installed agents

    Question

  • Hi there!

    In the cmdlet "get-agent" you will find the property "ManuallyInstalled" but it seems that this is always set to "False".

    Any idea, how to get a list with manually installed agents in a quick and simple way?
    Other ways to deploy patches to this kind of agents?

    Thanks in advance,
    Patrick
    Monday, June 15, 2009 8:36 AM

Answers

  •  

    If you are using OM2007SP1 we had a bug with updating the ManuallyInstalled property.  In R2 this was corrected to update the ManuallyInstalled property correctly.

     

    Sorry if this has caused you some trouble.


    Rob Kuehfus | System Center Operations Manager | Setup and Deployment Program Manager
    Monday, June 15, 2009 5:10 PM
    Owner

All replies

  • Lets se if I get it right this time.
    Try this command line:
    get-agent | where {$_.ManuallyInstalled -like 'True'}
    Monday, June 15, 2009 10:38 AM
  • unfortunately no output...

    I tried this one before:
    get-agent | ? { $_.ManuallyInstalled -notmatch "False" }

    Same problem.
    Monday, June 15, 2009 10:44 AM
  • Thats strange.

    When I try:
    get-agent | ? { $_.ManuallyInstalled -notmatch "False" }
    I get the agents that is manually installed regardless if I set it to true or false.

    But when I use the one that I posted:
    get-agent | where {$_.ManuallyInstalled -like 'True'}
    it lists the agents manually installed when set to True, and the other agents when I set it to False.

    Monday, June 15, 2009 11:20 AM
  • Now I'm really confused...
    With both methods I will not get any agent when selecting "True".
    Monday, June 15, 2009 11:49 AM
  • And you are sure that som agents are manually installed? ;)

    Monday, June 15, 2009 12:40 PM
  • Definitely not... I installed an Agent manually right this moment to be certain! ;-)
    Monday, June 15, 2009 1:24 PM
  •  

    If you are using OM2007SP1 we had a bug with updating the ManuallyInstalled property.  In R2 this was corrected to update the ManuallyInstalled property correctly.

     

    Sorry if this has caused you some trouble.


    Rob Kuehfus | System Center Operations Manager | Setup and Deployment Program Manager
    Monday, June 15, 2009 5:10 PM
    Owner
  • $true and $false are the Powershell boolean values, so as a best practice you should be checking against these, not the string 'True' or 'False.'

    Any of the below are equivalent to get manually installed agents:
    get-agent | {$_.ManuallyInstalled}
    get-agent | {$_.ManuallyInstalled -eq $true}
    get-agent | {$_.ManuallyInstalled -ne $false}


    What version of SCOM are you running?  I believe we had an issue where this property was set incorrectly in SP1 but it is now fixed in R2.

    Thanks,
    -Lincoln
    Monday, June 15, 2009 5:12 PM
  • Rob, thanks for your update.
    I heard the words "we will fix in R2" a lots of time from the product group concerning other issues. Hopefully the next ones will not be "we will fix in v7" (or whatever the next version will be)!  :-/
    Tuesday, June 16, 2009 6:11 AM
  • Hi!

    What kind of version are you running?

    Patrick
    Tuesday, June 16, 2009 6:12 AM
  • No, they will also not work:

    PS>get-agent | {$_.ManuallyInstalled}
    Expressions are only permitted as the first element of a pipeline.
    At line:1 char:34
    + get-agent | {$_.ManuallyInstalled} <<<<

    >get-agent | {$_.ManuallyInstalled -eq $true}
    Expressions are only permitted as the first element of a pipeline.
    At line:1 char:44
    + get-agent | {$_.ManuallyInstalled -eq $true} <<<<

    >get-agent | {$_.ManuallyInstalled -ne $false}
    Expressions are only permitted as the first element of a pipeline.
    At line:1 char:45
    + get-agent | {$_.ManuallyInstalled -ne $false} <<<<

    I'm running SP1 at the moment so that will be the matter.

    Thanks,
    Patrick
    Tuesday, June 16, 2009 6:16 AM
  • Oops, please excuse me. In my haste I left out the '?'...

    get-agent |? {$_.ManuallyInstalled}
    get-agent |? {$_.ManuallyInstalled -eq $true}
    get-agent |? {$_.ManuallyInstalled -ne $false}
    Tuesday, June 16, 2009 6:58 AM
  • No prob, didn't noticed too (gooood morning!)  ;-)
    These will also not return any agent.

    Tuesday, June 16, 2009 7:07 AM
  • I recently had to manually install a bunch of agents. the only way I was able to tell which ones I installed to manually was to look in the Administrations tab and then look at "Agent Managed" under Device Management From there I Right clicked and selected personalized the view and in the Columns to display I selected the "Remotely Manageable" attribute.

     After I did that I sorted by that column. If the agent  has a "NO" in the "Remotley Manageable" column, that device proabaly was installed Manually.

    I know it is not a powershell command but this is how I found the manually istalled agents.
    Wednesday, June 17, 2009 8:09 PM
  • Paul,
    I'm not sure but it seems that this is the same information as with the ps- syntax.

    The reason why I needed this information was because of the Microsoft Hotfix Release Notes that you have to update any manually installed agent by yourself. But it seems that install the fix on RMS is enough and the hotfix will be rolled out on both, discovered and manually installed agents too. *confusedbuthappy*
    Thursday, June 18, 2009 8:43 AM