Moving an applicationgroup

Laurent Dardenne 21 Reputation points
2022-04-06T15:26:19.003+00:00

Hi,
the cmdlet Move-CMObject does not allow moving an application group. The -FolderPath parameter does not offer 'ApplicationGroup' as keywords in Objectype.

Is it possible by code? If yes, how ?

Note :
The documentation of the cmdlet New-CMApplicationGroup says :
“This cmdlet returns the SMS_ApplicationGroup WMI class object.”

But I can't find any documentation of this WMI class. And instances of this class do not have a Move(Folderpath) method.

Microsoft Configuration Manager
0 comments No comments
{count} votes

Accepted answer
  1. AllenLiu-MSFT 42,031 Reputation points Microsoft Vendor
    2022-04-07T08:36:02.18+00:00

    Hi, @Laurent Dardenne

    Thank you for posting in Microsoft Q&A forum.

    We can use Get-CMApplicationGroup -Name "xxx" to fet the application group, but there isn't a group called "ApplicationGroups", so it's impossible to move application groups by coding, we may only be able to move them in the console.

    190787-1.png

    190864-2.png

    Like Jason said, you may try to send a frown by SCCM console so the product team may add this function in the next release.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    2 people found this answer helpful.
    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Jason Sandys 31,186 Reputation points Microsoft Employee
    2022-04-06T17:39:43.653+00:00

    Please file a frown in the console for this.

    1 person found this answer helpful.
    0 comments No comments

  2. Laurent Dardenne 21 Reputation points
    2022-04-06T20:09:26.023+00:00

    Thanks for your answer, I'm not sure I understand this expression 'file a frown'.
    I know that the console allows to do this operation but my client asks me to automate this.

    if it is not possible by coding, it will be satisfied with the console.


  3. Laurent Dardenne 21 Reputation points
    2022-04-07T15:52:50.61+00:00

    Thank you.

    >Like Jason said, you may try to send a frown by SCCM console so the product team may add this function in the next release.

    The server does not have internet access.

    Another annoying point, the WMI Application object does not reference the folder in which it exists...


  4. Jason Sandys 31,186 Reputation points Microsoft Employee
    2022-04-08T05:33:13.82+00:00

    The server does not have internet access.

    The server doesn't need Internet access; only the system you are running the console on does. If you've only been running the admin console on the primary site server, then it's time to change that practice as this not a good practice for various reasons including security.

    0 comments No comments