Thanks for responding, however I found the problem. Line 5 in the script was like this
#New-CMSoftwareUpdateGroup -Name
and not this
New-CMSoftwareUpdateGroup -Name
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am fairly new to SCCM Configuration Manager and I have a PowerShell script that normally works when I need to create Software Update Group in SCCM. However, I have been having some difficulty lately with creating the Software Update Group. The Group appears to be created in SCCM, however it is not populated with the necessary updates as I receive the following message when trying to run the Powershell script.
Add-CMSoftwareUpdateToGroup : No object corresponds to the specified parameters.
At D:\Scripts\SCCMTestRMP.ps1:9 char:1
+ Add-CMSoftwareUpdateToGroup -SoftwareUpdateName $Line -SoftwareUpdate ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Confi...eToGroupCommand:AddSoftwareUpdateToGroupCommand) [Add-CMSoftwareUpdateToGroup], ItemNotFoundException
+ FullyQualifiedErrorId : ItemNotFound,Microsoft.ConfigurationManagement.Cmdlets.Sum.Commands.AddSoftwareUpdateToGroupCommand
Other Configuration Manager-related features and issues
Thanks for responding, however I found the problem. Line 5 in the script was like this
#New-CMSoftwareUpdateGroup -Name
and not this
New-CMSoftwareUpdateGroup -Name