Guest User

Untitled

a guest
Jun 21st, 2011
786
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. You cannot call a method on a null-valued expression.
  2. At C:\Users\dhadmin\Desktop\generateReport.ps1:299 char:29
  3. + $ExchangeServer.Name.ToUpper <<<< ()
  4.     + CategoryInfo          : InvalidOperation: (ToUpper:String) [], RuntimeException
  5.     + FullyQualifiedErrorId : InvokeMethodOnNull
  6.  
  7. Attempted to divide by zero.
  8. At C:\Users\dhadmin\Desktop\generateReport.ps1:299 char:171
  9. +         Write-Progress -id 2 -activity "Exchange Server Information" -status "Determing Exchange information for: $($
  10. ExchangeServer.Name.ToUpper())" -percentComplete ($p/ <<<< $ExchangeServers.Count*100);
  11.     + CategoryInfo          : NotSpecified: (:) [], RuntimeException
  12.     + FullyQualifiedErrorId : RuntimeException
  13.  
  14. You cannot call a method on a null-valued expression.
  15. At C:\Users\dhadmin\Desktop\generateReport.ps1:303 char:57
  16. +         $tServer.Add("Name",$ExchangeServer.Name.ToUpper <<<< ());
  17.     + CategoryInfo          : InvalidOperation: (ToUpper:String) [], RuntimeException
  18.     + FullyQualifiedErrorId : InvokeMethodOnNull
  19.  
  20. You cannot call a method on a null-valued expression.
  21. At C:\Users\dhadmin\Desktop\generateReport.ps1:304 char:61
  22. +         $tServer.Add("RealName",$ExchangeServer.Name.ToUpper <<<< ());
  23.     + CategoryInfo          : InvalidOperation: (ToUpper:String) [], RuntimeException
  24.     + FullyQualifiedErrorId : InvokeMethodOnNull
  25.  
  26. Get-WmiObject : Cannot validate argument on parameter 'ComputerName'. The argument is null or empty. Supply an argument
  27.  that is not null or empty and then try the command again.
  28. At C:\Users\dhadmin\Desktop\generateReport.ps1:310 char:66
  29. +         $tWMI = Get-WmiObject Win32_OperatingSystem -ComputerName <<<<  $ExchangeServer.Name
  30.     + CategoryInfo          : InvalidData: (:) [Get-WmiObject], ParameterBindingValidationException
  31.     + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.GetWmiObjectCommand
  32.  
  33. You cannot call a method on a null-valued expression.
  34. At C:\Users\dhadmin\Desktop\generateReport.ps1:324 char:68
  35. +         $RUKeys= $RemoteRegistry.OpenSubKey($RegKey).GetSubKeyNames <<<< () | ForEach {"$RegKey\\$_"}
  36.     + CategoryInfo          : InvalidOperation: (GetSubKeyNames:String) [], RuntimeException
  37.     + FullyQualifiedErrorId : InvokeMethodOnNull
  38.  
  39. You cannot call a method on a null-valued expression.
  40. At C:\Users\dhadmin\Desktop\generateReport.ps1:348 char:60
  41. +         [array]$Roles = $ExchangeServer.ServerRole.ToString <<<< ().Replace(" ","").Split(",");
  42.     + CategoryInfo          : InvalidOperation: (ToString:String) [], RuntimeException
  43.     + FullyQualifiedErrorId : InvokeMethodOnNull
  44.  
  45. Cannot validate argument on parameter 'Server'. The argument is null or empty. Supply an argument that is not null or e
  46. mpty and then try the command again.
  47.     + CategoryInfo          : InvalidData: (:) [Get-Mailbox], ParameterBindingValidationException
  48.     + FullyQualifiedErrorId : ParameterArgumentValidationError,Get-Mailbox
  49.  
  50. Cannot index into a null array.
  51. At C:\Users\dhadmin\Desktop\generateReport.ps1:376 char:78
  52. +         $ExchangeEnvironment["TotalMailboxesByVersion"][$tServer["Version"]][ <<<< "MailboxCount"]+=$tCount;
  53.     + CategoryInfo          : InvalidOperation: (MailboxCount:String) [], RuntimeException
  54.     + FullyQualifiedErrorId : NullArray
  55.  
  56. Cannot index into a null array.
  57. At C:\Users\dhadmin\Desktop\generateReport.ps1:377 char:78
  58. +         $ExchangeEnvironment["TotalMailboxesByVersion"][$tServer["Version"]][ <<<< "ServerCount"]++;
  59.     + CategoryInfo          : InvalidOperation: (ServerCount:String) [], RuntimeException
  60.     + FullyQualifiedErrorId : NullArray
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×