Definitive Service Manager PowerShell
I'm super excited to share that my blog series on how to automate SCSM (and by proxy the entire System Center stack) has begun! Regardless of your skill level in Service Manager or PowerShell I'm looking to help you become your organization's Service Hero with just eight PowerShell commands.
8 PowerShell Commands!
- Shaping Work Items
- Building Config Items
- Prepopulating Hardware Assets
- Performing bulk Support Group changes
The list goes on, so check it out over here and stay tuned for more.
Comments
Part 2 is out today!
Thank you for these articles Adam, they have been very helpful.
These are great, but I'm anxiously awaiting Part 3: Relationships!
These are great, but I'm anxiously awaiting Part 3: Relationships!
I'm getting there. I'M GETTING THERE! 😁
Part 3 has arrived!
Part 4 is here with a focus on fundamental PowerShell concepts that you can apply across Service Manager, Operations Manager and the rest of the System Center stack.
I summon Part 5 into existence! Come to think of it, that's exactly what you can do for anything in Service Manager with this blog post.
Ready to create, reveal, and work with Relationships in Service Manager? It's time to become a master sorcerer of System Center!
The last post in the series is here! With your understanding of Service Manager, Powershell, pipelines, logic, and functions it's time to provide some examples you can use right now to begin making your very own spell book.
This series is just brilliant! Attractive writing style meets awesome teaching skills, real-life examples and even homeworks.
Reading this is a must for every PowerShell/SCSM beginner and great contribution even for skilled administrators.
Thank you, @Adam_Dzyacky
What about looking for an adequate place for these great articles in the Cireson Learning platform? If they are not there already :) Maybe the format would need some adjustments to fit that standard but it would be a pity not to reuse such content there.
Heads up!
If you want even more ways to improve your PowerShell processes, I recently shared a PowerShell Profile example over here.
Great work with this series!!
do you @Adam_Dzyacky have any idea if it is possible to insert variables into UserInputs XML object when creating a new Service Request using powershell??
Or if you have any other idea how this can be achieved. The purpose is to take input from another system and using automation's that already are in place using powershell.
Have a great day
any idea if it is possible to insert variables into UserInputs XML object when creating a new Service Request using powershell??
Yuppppppp. The UserInput field is an XML string that is parsed out as Question/Answer in the console/portal. Here's a quick example how to write UserInput into a Service Request.
And here's the PowerShell you can copy and paste to get started -
That said - I recommend starting with the inverse of the above. Retrieve an SR in the system that was submitted how you need/want, copy the XML, and then iterate from there. For example:
Solid question @Robert_Osterberg
I'm looking forward to doing this via PowerAutomate once the SMP Connector for that has been released!
Geoff
@Adam_Dzyacky sweet! thank you so much, why i am asking is to be able to input stuff from another system and creating Service Requests in our SCSM and leveraging automation that are already in place,
Thanks alot!
This is probably a great place to call out more things you can do with PowerShell and SMP...and now Windows Terminal 😁