Share via

Create Software Update Group in SCCM using Powershell?

RP 0 Reputation points
2023-08-14T13:35:19.5266667+00:00

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
 
Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Intune | Configuration Manager | Other

1 answer

Sort by: Most helpful
  1. RP 0 Reputation points
    2023-08-14T18:54:55.1933333+00:00

    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

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.