question

jansiranikrishnan-1796 avatar image
0 Votes"
jansiranikrishnan-1796 asked AndreasBaumgarten commented

Creating Manual Activity via Powershell

Hi Experts,

Is there a way where we can create an Manual Activity in SCSM through a PowerShell code?

Please share any inputs.

Regards,
Jansi

windows-server-powershellmsc-service-manager
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered AndreasBaumgarten commented

Hi @jansiranikrishnan-1796 ,

here we go:

https://github.com/abaumgarten42/SCSM_Useful_PSscripts/blob/main/Create-ManualActivity.ps1


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten

· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Andreas,

Thank you for sharing the information. It is working. I am also trying to add the Affected User to the MA. It is not getting displayed in the MA form in the portal. Any inputs is highly appreciated.

Regards,
Jansi

0 Votes 0 ·

Hi @jansiranikrishnan-1796 ,

a Manual Activity in SCSM doesn't have a "Affected User" relationship. You can't see the "Affected User" of a Manual Activity because this relationship does not exist at all.


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten

0 Votes 0 ·

Hi Andreas,

okay. Thank you. How to check the associated relationship class to the Manual Activity? I hope there must be some SMLets to execute. It would be great if you share them too.

Regards,
Jansi

0 Votes 0 ·
Show more comments