tag:blogger.com,1999:blog-5251922690454802525.post1653163655970478227..comments2009-12-04T21:11:36.626+00:00Comments on Derek Ops Manager: Quick Access to OpsMgr Agent InformationDerek Harkinhttp://www.blogger.com/profile/09175666492773626592noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-5251922690454802525.post-41764638792278097012008-08-28T15:09:00.000+01:002008-08-28T15:09:00.000+01:00Hmm, I never have a problem using just "Now" when ...Hmm, I never have a problem using just "Now" when I run it in my environment.<BR/>I have made the change suggested though in case others have this issue.Derek Harkinhttps://www.blogger.com/profile/09175666492773626592noreply@blogger.comtag:blogger.com,1999:blog-5251922690454802525.post-53916380682433772022008-08-28T03:16:00.000+01:002008-08-28T03:16:00.000+01:00PS C:\Documents and Settings\Administrator.CONTOSO...PS C:\Documents and Settings\Administrator.CONTOSO\Desktop> .\MonitoredServers.ps1<BR/><BR/>PathName :<BR/>ManagementGroup : CONTOSO<BR/>ManagementServerName : OM2K7-SVR01<BR/>Drives :<BR/><BR/>The term 'Now' is not recognized as a cmdlet, function, operable program, or script file.<BR/>.<BR/>At C:\Documents and Settings\Administrator.CONTOSO\Desktop\MonitoredServers.ps1:21 char:1<BR/>+ $Now = Now <<<<<BR/>PS Microsoft.EnterpriseManagement.OperationsManager.Client\OperationsManagerMonitoring::><BR/><BR/>When I execute the script it gives me this error.<BR/><BR/>I just changed it $Now =[DateTime]::Now<BR/><BR/>and it all works fine.. thanks for this useful script and keep up the good work!Anonymousnoreply@blogger.com