now I got this error The term 'Connect-VIServer' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again. At C:\Documents and Settings\user\D...
See more...
now I got this error The term 'Connect-VIServer' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again. At C:\Documents and Settings\user\Desktop\Get_alarms2.ps1:1 char:17 + Connect-VIServer <<<< The term 'Get-View' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again. At C:\Documents and Settings\user\Desktop\Get_alarms2.ps1:3 char:21 + $alarmMgr = Get-View <<<< AlarmManager The term 'Get-Folder' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and tr y again. At C:\Documents and Settings\user\Desktop\Get_alarms2.ps1:4 char:25 + $rootfolder = Get-Folder <<<< -Name "Datacenters" | Get-View You cannot call a method on a null-valued expression. At C:\Documents and Settings\user\Desktop\Get_alarms2.ps1:5 char:29 + $alarms = $alarmMgr.GetAlarm( <<<< $rootfolder.MoRef) The term 'Get-View' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again. At C:\Documents and Settings\user\Desktop\Get_alarms2.ps1:11 char:20 + $alview = Get-View <<<< $alarm You cannot call a method on a null-valued expression. At C:\Documents and Settings\user\Desktop\Get_alarms2.ps1:12 char:37 + if ($alview.Info.Expression.gettype( <<<< ).Name -eq "EventAlarmExpression") Any idea?