70-411

70-411 WSUS and PowerShell

Posted on

####################################################### #Install WSUS Install-WindowsFeature UpdateServices -IncludeManagementTools #Initial configuration New-Item c:WSUScontent -ItemType Directory  & ‘C:Program FilesUpdate ServicesToolsWsusUtil.exe’ postinstall contentdir=c:WSUScontent  #Review synchronization settings $myWsus = Get-WsusServer  $myWsus.GetSubscription() #Initial synchronization  $mySubs = $myWsus.GetSubscription()  $mySubs.StartSynchronizationForCategoryOnly() #Sync status $mySubs.GetSynchronizationProgress()   $mySubs.GetSynchronizationStatus()   $mySubs.GetLastSynchronizationInfo()  ####################################################### #Define the product categories to include $myProducts = Get-WsusProduct | Where-Object { $_.Product.Title -in ( ‘Windows 8.1’, ‘Windows […]

Microsoft

Collecting computer inventory using WSUS

Posted on

I was recently tasked with collecting a list of software installed in my environment (desktops and servers). In the past, I would have used a WMI script to query the computers and export it into a database or spreadsheet. However, the more recent Windows versions block all remote connections by default, meaning my WMI script […]