I have a quick question here. Attached is the beginnings of a custom set of WSUS related functions to help us patch.
To use this function, you will need a WSUS Server with at least 1 computer checking into it as well as a WSUS group that has a space in the name. You will also need WMI and ICMP access to all computers you are targeting with this function.
A simple example of the function is:
Update-WSAPatchStatus -Server "MyWSUSServer.Domain.Com" -WsusGroup "My Group" | Select-Object *
The intent of -WSUSGroup being a dynamic parameter is that it automatically pulls the group names from wsus as a ValidateSet and thus, you can tab through them or if you are in ISE, you can select what you are looking for from a drop menu. The problem I have is when you tab or select from a drop menu, Powershell isnt wrapping names with spaces in them in quotes. So my team has to go back after they selected a group, and quote it.
Does anyone have any idea how I can fix this?