View Add/Remove Program Info in Powershell

A quick and easy way to view almost everything you need to know about your add/remove programs is using the “gwmi” powershell command.

To view all options for this, just use the built-in help by typing: get-help gwmi .

To get all of the information on your add/remove programs (or technically called “Installed Software” now)… type:

gwmi -namespace “root\cimv2\sms” -class SMS_InstalledSoftware into powershell.  It may take a few seconds for everything to appear and you’ll see a huge list of all installed applications.

A coworker reminded me of the “out-gridview” command which organizes this into a much more manageable view.

The final product?  Pipe the out-gridview out and it looks like this:

 gwmi -namespace “root\cimv2\sms” -class SMS_InstalledSoftware | Out-GridView

PoweshellOutGrid

 

Everything you ever needed will be in here.  The exact name to query for when building SCCM collections, GUID, version, etc.  Limitless possibilities.  The filter is also excellent too.

Hope this helps!

 

 

Posted in Powershell, SCCM 2012, Scripts | Tagged , , , , | Leave a comment

ConfigMgr 2012 Update Scan Fails and Shows Incorrect Compliance

I ran into this a few months ago, however I am still seeing a few issues even after sending a script out to resolve it.  I figured I’d write a quick blog to show everyone what I did to resolve the issue.  It’s also important to note that the SCCM 2012 R2 SP1 update is also supposed to help with this.

Symptom:

After deploying a new software update group, I immediately notice that about 1500 workstations showed as “compliant”.  How can this be since I haven’t even deployed any patches?  At first I thought maybe Windows Update was turned on somehow by mistake?  Nope.

After troubleshooting I found this in the WindowsUpdate.log file, which is located in the Windows directory.

WARNING: ISusInternal::GetUpdateMetadata2 failed, hr=8007000E

It seemed that the clients were failing to scan against the WSUS patch repository.

 

The Fix:

It’s important to note that the bug only seemed to affect x86 Windows 7 clients.  It appears this bug was a memory leak in the Windows Update service.

I wrote the following script and sent it out to all x86 Windows 7 workstations.

@echo off

net stop wuauserv
Sc config wuauserv type= own
cd c:\windows
ren SoftwareDistribution SoftwareDistribution.old
net start wuauserv

start /wait wusa.exe Windows6.1-KB2728379-x86.msu /quiet /norestart

exit

KB2728379 can be downloaded from here:  https://support.microsoft.com/en-us/kb/2728379

You also may want to go through your WSUS console and decline any superseded update, and unselect any outdated operating systems like XP, Office 2003, Server 2003, etc.  This makes the payload of WSUS to clients smaller as it doesn’t need to worry about these old outdated OS’s.  It’s also worth noting that I saw this behavior in both SCCM 2007 and 2012.  This makes sense, since it’s technically a Windows Update service/WSUS bug, which SCCM piggybacks off

Posted in SCCM 2007, SCCM 2012, WSUS | Tagged , , , | Leave a comment

SCCM 2012 Console Unable to Open

While installing the SCCM 2012 console on workstations for our PC techs to use, I came across a very strange problem.  A tech had installed the console on his machine, and when launching it the error “Configuration Manager cannot connect to the site (site server)”

Console

After verifying all permissions were set correct, I found this was a machine issue, not a permissions issue.  The tech could login to the SCCM console on another machine just fine.

After further inspection, I saw the following entries in the C:\Program Files\Microsoft Configuration Manager\AdminConsole\AdminUILog\SMSAdminUI.log file

The performance counter ‘# exceptions’ was not found

THE FIX

Took awhile to figure this out, but it seems to work on most machines

  • Open a cmd prompt as admin on the problem machine
  • run “LODCTR /R”

LdCtr

  • Uninstall and reinstall SCCM console
  • Restart, and it should work!
Posted in SCCM 2012 | Tagged , | Leave a comment

Managing Third Party Updates with System Center Configuration Manager

Patch Management

If you missed Kent Agerlund’s MMS 2013 session, or didn’t make it all … I strongly encourage everyone to check out this webinar scheduled for May 13.

Kent Agerlund is a Microsoft MVP working with Coretech, and widely known as one of the best System Center guys around. 

From the invitation:

Whether you attended MMS 2013 or not, this is a must attend webinar! Get the chance to gain some of the knowledge from MMS 2013, as well as get your questions answered by Kent Agerlund from Coretech, a Microsoft Configuration Manager MVP.During this 45 minute webinar, Kent Agerlund will provide you with tips and tricks to solve the daily challenges around patching your environment with Microsoft and non-Microsoft updates. You will learn how to design and configure a software update solution that will be easy to manage, yet powerful enough to maintain your server and desktop environment. Lastly, he will go through how you can patch 3rd party applications in SCCM and his key learning’s on how to manage common challenges in this area.

About Kent Agerlund, Coretech
Configuration Manager MVP. Microsoft Certified Trainer and Senior Consultant. Kent has been working with SMS since 1997 and as a trainer / consultant since 1992. In addition, he is Co-founder of System Center User Group Denmark in 2009.

Certified MCITP: Enterprise Administrator, MCSA + Messaging, MCT and Technology Specialist in Configuration Manager, MDOP and Windows 2008 R2 and much more.

Member of:
Microsoft Denmark System Center Partner Expert Team , The Danish Technet Influencers program , System Center Influencers Program.

Sign up herehttps://www.brighttalk.com/webcast/8113/74379
May 13 2013 1:00 pm (CDT)
 
Posted in Patch Management, SCCM 2012, SCUP 2011 | Tagged , , , | Leave a comment

SCCM 2012 Collection Splitter

Wanted to post a quick one to show everyone this tool that looks very promising.  H/T to MyITForum for posting this as well.

Not sure if this would work with 2007 or not with a hack, but I am going to try in my lab.

SCCM 2012 Collection Splitter Download

This utility can split a given collection in several sub collections and equally assign it’s members to the sub collections created.In addition it can advertise a package or an application to the sub collection, you can easily define for the advertisements a time shift.

The script must be run as an administrator on the site server system.

The script is provided with an HTA GUI :

Posted in SCCM 2012 | Tagged , | Leave a comment