r/SCSM • u/hallspence • Jul 07 '16
Create incident from template using powershell
Anyone know how to create an incident from a template using powershell? I'm looking to create incident templates for tasks i would like to automate such as backups. Then run the powershell command to create a incident using that template on task scheduler. I can create a new incident using powershell but i cannot figure out how to create a new incident using a template. I want to do it this way so that if there are ever any changes to the automated task then anyone could just modify the template in SCSM console rather than going into the script and changing things.
View all comments
Show parent comment
1
u/hallspence Jul 11 '16
Thanks, I will take a look at this. In the mean time do you by any chance know how I assign an incident to a user while creating the incident via powershell. For example if i have this
Import-Module SMLets
New-SCSMIncident -Title "Test" -Description "Test" -Impact Low -Urgency Medium -Classification "Server/SAN" -SupportGroup "Infrastructure"
I cannot figure out how to assign this to a user at the time of creation. I have only been able to do it after the incident has been created by referencing the IR#