Questions tagged [poshwsus]
7 questions
2
votes
1 answer
PoshWSUS - how to get last patch date per server?
so I have this PoshWSUS module and a script which runws on WSUS and makes a CSV file. I am trying to update it so it also contains last patch date column but have trouble figuring it out
Import-Module -name poshwsus -force
Import-module -name…

McVitas
- 272
- 1
- 17
1
vote
0 answers
Powershell: Export-CliXml is exporting without Structure, elements and nodes
I have a Powershell-Script for Windows Server Update Service to automatically approve Updates.
Approved Updates get listed in an XML-File. To achieve that I export the selected data (Title, Arrivaldate and Update-ID) with Export-CliXml into a…

krayzie0x1
- 11
- 2
1
vote
0 answers
WSUS multi server automation - how to determine Windows version for each KB names?
As WSUS built in downstream replica is not possible in our environment - isolated sites with file transfer through dedicated secure file transfer system - I would like to automate the distribution of updates from my Master WSUS to branch servers…

kroov
- 11
- 5
1
vote
1 answer
PowerShell - last report and sync time values of WSUS servers do not match when PowerShell is used
I use PoshWSUS 2.3.1.6
When I go to "Update Services" in Windows 10 and connect to my WSUS Server, I see many workstations in the server with different LastStatusReport and LastContact dates as shown with two examples below. Please note that my…

Eray Balkanli
- 7,752
- 11
- 48
- 82
1
vote
1 answer
Conditionally selecting fields from WSUS server, based on LastUpdatedStatusReport date
I am using poshWSUS 2.3.1.6 module and have a query like below:
& Get-PSWSUSClient | select @{name="Computer";expression={$($_.FullDomainName)}},@{name="LastUpdated";expression={$($_.LastReportedStatusTime)}} | export-csv -NoTypeInformation -append…

Eray Balkanli
- 7,752
- 11
- 48
- 82
0
votes
0 answers
Is it more efficient to use multiple If/ElseIf statements or a single If statement with multiple OR conditions?
I'm in the process of writing a PowerShell script to automatically decline certain updates in WSUS. Any Driver updates or language packs can be safely declined. For some reason, I got stuck wondering about this question.
The first is a standard…
0
votes
2 answers
How to export two variables into same CSV as joined via PowerShell?
I have a PowerShell script employing poshwsus module like below:
$FileOutput = "C:\WSUSReport\WSUSReport.csv"
$ProcessLog = "C:\WSUSReport\QueryLog2.txt"
$WSUSServers = "C:\WSUSReport\Computers.txt"
$WSUSPort = "8530"
import-module poshwsus…

Eray Balkanli
- 7,752
- 11
- 48
- 82