Home Powershell

Using Powershell to put Items in a group

Ralton_StewartRalton_Stewart Customer IT Monkey ✭

Hi Everyone this is my very first post please be gentle :)

I contacted Cireson support asking for advice on how to how to move/update and reassign IRs and SRs to new groups we created, we have 1500 tickets with old group names that we need to move across.

Cireson came back with the following and suggested I ask the community if anyone has a code for this?

You can do 10 (max) at a time from the all work item grid in the portal. My recommendation would be to use powershell to put the work items in the group you want them to be in. 

any assistance will be greatly appreciated.




  • Mikkel_MadsenMikkel_Madsen Customer Advanced IT Monkey ✭✭✭

    What is the old group name and what is the new one?

    Is it a 1 to 1 migration or to multiple new groups?

  • Mikkel_MadsenMikkel_Madsen Customer Advanced IT Monkey ✭✭✭

    What about the console? Maybe the max is different in that one.

  • Shane_WhiteShane_White Cireson Support Super IT Monkey ✭✭✭✭✭

    Hi @Ralton_Stewart

    Here is some PowerShell I wrote up for you! All you need to do is change the first 2 variables to the names of your Support Groups, if you are not sure what these are, send me a screenshot of the support groups you have and which ones you want to change and I'll edit the code for you!


    $QueueToChange = "IT"

    $QueueToChangeTo = "Infrastructure"

    $IRClass = Get-SCSMClass -Name System.WorkItem.Incident$

    $IRWIs = Get-SCSMObject -Class $IRClass | ?{$_.TierQueue.DisplayName -eq $QueueToChange}

    foreach($WI in $IRWIs) {

        $WI | Set-SCSMObject -Property TierQueue -Value $QueueToChangeTo



    $QueueToChange = "IT"

    $QueueToChangeTo = "Infrastructure"

    $SRClass = Get-SCSMClass -Name System.WorkItem.ServiceRequest$

    $SRWIs = Get-SCSMObject -Class $SRClass | ?{$_.SupportGroup.DisplayName -eq $QueueToChange}

    foreach($WI in $SRWIs) {

        $WI | Set-SCSMObject -Property SupportGroup -Value $QueueToChangeTo


    Let me know what you think!



  • Ralton_StewartRalton_Stewart Customer IT Monkey ✭
    edited June 2020

    @Mikkel_Madsen thank you for replying I have been waiting on another colleague on answers and I've yet to hear back.

  • Ralton_StewartRalton_Stewart Customer IT Monkey ✭

  • Shane_WhiteShane_White Cireson Support Super IT Monkey ✭✭✭✭✭


    We cannot see your last comment it is blank, how did you get on with this? 😊

  • Ralton_StewartRalton_Stewart Customer IT Monkey ✭

    @Shane_White sorry for the delay in replying I had some time off, we are hoping to implement these changes in the coming week or 2, I'll report back then.

Sign In or Register to comment.