reading selected SCOM agent name using VB Script or Powershell
Hi,
I have a requirement for that I need to run a task. Task is supposed to create a txt file named as the netBios name of selected SCOM agent.
Please help me how to read name of selected SCOm agent through script.
With regards
ravi Bhushan
ravi
October 12th, 2010 10:16am
Ravi,
Can you provide more information around what you are trying to achieve. If you are simply trying to get information about the agent from OpsMgr then you could use:
get-agent | where {$_.DisplayName -Like '<SERVERFQDN>'}
However, as I said without more information I can't help you any more than that.
Dan
Free Windows Admin Tool Kit Click here and download it now
October 29th, 2010 9:42am