SCCM: Get-AppUninstallInfo – Easily creating SCCM Applications

New toys!

As mentioned before, I’ve recently started a new assignment, one that required me to design and roll out a System Center Configuration Manager solution for 4 locations.

While that wasn’t too difficult and the configuration was quite straightforward [thanks to my friends at Manning and Google], the biggest challenge came when creating packages to deploy.
Luckily I was quite familiar with packaging and .MSI editing due to various MDT configurations I had made, but the latest “Current Branch” version of SCCM has “Applications”, which are smart packages [pieces of software] which you can deploy, but also uninstall if you want.

Great stuff, exactly what we needed…

The problem

If you don’t have the software in an .MSI format, you will need to manually enter various information in order for it to become “smart”, otherwise the application will only be able to install itself and possibly retry.

What kind of information do we need and where can we find it?

First, we’ll need to install the software we want to package on a dummy/test machine, so we can find certain behaviour of the program, then we need to scour the registry for the following info:

  • The DisplayName
  • The DisplayVersion
  • The UninstallString
  • The Registry Key where this is all located

The Code

Now my solution isn’t “perfect” yet, as currently I KNOW I only have to check x64 machines, but the code can be easily manipulated to do a check on system architecture :

but for now it will do just fine:

Simply start the script, defining the name of the application or part of it and see the magic unfold 🙂

Get-AppUninstallInfo

 

Happy Scripting! 🙂

Facebooktwittergoogle_plusredditpinterestlinkedinmail

Script Dumpster: Setting Proxy server settings

OK, so I’m at my new job and for the first time in years, I have to deal with proxy servers again…

Since I’m used to having full admin rights on my machine and unrestricted internet, this was somewhat of a shock, while perfect for my productivity as well 😛

Unfortunately for them, I have since been informed that a special IT proxy is available, which provides this access, hence me being able to update my site again 🙂

 

Here’s a quick script which allows me to switch from “normal” proxy (while pre-defined you can set it to whatever you prefer) to IT proxy or disable it all together

Happy Scripting! 🙂

Facebooktwittergoogle_plusredditpinterestlinkedinmail

#OSC – Journey into PowerShell – SlideDeck and code

Hi all,

It’s been a while, but I’ve kept myself busy in the meantime.
During my last post on my blog, I was waiting for an assignment at my new job at OSC, only to be presented with a new challenge which kept me from posting for a while [expect more posts soon!!].

In the meantime I had also agreed to provide small training/demo session on PowerShell along with my new colleague Danny den Braver, to show people how awesome it actually is, while even showing them some PowerShell on Linux things [a few Linux guys there 🙂 ].

As promised at the end of the demo, here’s all the code as used by us that day:

OSC – A journey into PowerShell

 

Happy scripting 🙂

Facebooktwittergoogle_plusredditpinterestlinkedinmail