WSUS -reporing duplicate problems

Welcome Forums General PowerShell Q&A WSUS -reporing duplicate problems

Viewing 0 reply threads
  • Author
    Posts
    • #226599
      Participant
      Topics: 1
      Replies: 0
      Points: 13
      Rank: Member

      $computerscope = New-Object Microsoft.UpdateServices.Administration.ComputerTargetScope
      $servers= ‘ab005.kamil.com’

      $Result = $wsus.GetSummariesPerComputerTarget($updatescope,$computerscope)

      $Results += $Result | Select-Object @{L=’FQDN’;E={($wsus.GetComputerTarget([guid]$_.ComputerTargetId)).FullDomainName}}

       

      But When I checked a variabale $Results , I recived two value , because I think that the $computerscope conaint Name Includes:

       

      PS C:\Windows\system32> $computerscope

      NameIncludes : as004.groupad1.com
      RequestedTargetGroupNames : {}
      FromLastSyncTime : 1.1.0001 0.00.00
      ToLastSyncTime : 31.12.9999 23.59.59
      FromLastReportedStatusTime : 1.1.0001 0.00.00
      ToLastReportedStatusTime : 31.12.9999 23.59.59
      IncludedInstallationStates : All
      ExcludedInstallationStates : 0
      ComputerTargetGroups : {}
      IncludeSubgroups : False
      IncludeDownstreamComputerTargets : False
      OSFamily :

      PS C:\Windows\system32> $Results

      FQDN
      —-
      fi233helsasab005.groupad1.com
      ab005.kamil.com

       

      Could you help me how i can choose only

Viewing 0 reply threads
  • You must be logged in to reply to this topic.