Get SCCM Collection Information from ID

Posted Leave a commentPosted in PowerShell, System Center, Tips & Tricks

I have been working with PowerShell and SCCM for the last 4-5 years and I have built some nice to have Functions that I often use. If you ask me 🙂 Now 50% of all readers will say “You don’t need to use WMI” or “You should connect in another way to WMI”. In a new environment with SCCM 2012 and with PowerShell 3.0 or 4.0 you are probably right 🙂 I have been making tools and administered SCCM 2007 environments most of the time and with client computers with PowerShell 2.0. So my code will work on SCCM 2007 […]


Posted Leave a commentPosted in PowerShell, Tips & Tricks

For me the structure for my scripts are one of the most important thing. Create a structure for your scripts Regardless if it’s on your local computer or on a server Use the same all the time Why? To find your own scripts easily after some time So your coworkers can find your scripts So you can find your coworkers scripts If you don’t have a structure and you create scripts everywhere you like. Then you might have scripts in your c:\ root, c:\scripts, your documents folder, in a script editors path, on a share, on a cloud share etc […]

Scripting, Code and APIs the good, bad and the ugly

Posted Leave a commentPosted in News, PowerShell, Tips & Tricks

Hello, I did a session on – Client days at Microsoft in Akalla, Sweden last Thursday.   The session was about thinking before scripting in an business environment. I talked about: Always think before Structure Name Comments No hardcoded Administrator Control aka Validating Dependencies Error handling Log handling Editors This was my first session for a larger group (~150 people). It was fun to talk about something I like. Thanks to Stefan and Jörgen for letning me talk to the group and thanks to Nickolaj for the support on stage. In 11 posts I will write about what I […]