dsccommunity / UpdateServicesDsc

This module contains community maintained DSC resources for deployment and configuration of Windows Server Update Services.
MIT License
31 stars 27 forks source link

UpdateServicesServer - Products #13

Closed PRL-GIT closed 2 years ago

PRL-GIT commented 7 years ago

As an example i'm trying to update all SQL servers using Update Services I will need to create a list like this

Microsoft SQL Server 2008 R2 - PowerPivot for Microsoft Excel 2010
Microsoft SQL Server 2012
Microsoft SQL Server 2014
Microsoft SQL Server 2016
Microsoft SQL Server PowerPivot for Excel
SQL Server 2000
SQL Server 2005
SQL Server 2008 R2
SQL Server 2008
SQL Server 2012 Product Updates for Setup
SQL Server 2014-2016 Product Updates for Setup
SQL Server Feature Pack
SQL Server

if($WsusProduct = $AllWsusProducts | Where-Object {$_.Title -eq $Product})

If the above like could be changes to

if($WsusProduct = $AllWsusProducts | Where-Object {$_.Title -like $Product})

it will allow me to do just the following keyword "SQL Server"