Mick's IT Blogs

My blog is here to help solve issues I have encountered and solved, publish scripts I have written, and educate others in understanding areas that are not well covered.

Mick's IT Blogs

15 May 2013

SCCM: Initiate Hardware Inventory


Here is the scripting code in both powershell and VBScript to initiate a hardware inventory in both SMS and SCCM. The backend calls are the same in both SMS and SCCM, so both scripts will work in either app.

Powershell
 Function InitiateHardwareInventory{  
      $SCCMClient = [wmiclass] "\\localhost\root\ccm:SMS_Client"  
      $SCCMClient.TriggerSchedule("{00000000-0000-0000-0000-000000000001}")  
 }  


VBScript
 Sub InitiateHardwareInventory()  
      On Error Resume Next  
      DIM oCPAppletMgr  : Set oCPAppletMgr  = CreateObject("CPApplet.CPAppletMgr")  
      DIM oClientAction : Set oClientAction = Nothing  
      DIM oClientActions : Set oClientActions = oCPAppletMgr.GetClientActions()  
      For Each oClientAction In oClientActions  
           If oClientAction.Name = "Hardware Inventory Collection Cycle" Then  
                oClientAction.PerformAction  
           End If  
      Next  
 End Sub  

Labels: , ,

30 April 2013

How to stop those annoying Charter Communications Telemarketers

As a Charter customer, it's very annoying to be constantly bombarded by telemarketing calls. Charter is relentless. No matter how much you ask them not to call you, they will continue and the reps are very aggressive. They are exempt from the National Do Not Call Registry because there is a business/customer relationship. At one point, I was contacted 16 times within two weeks from their 909-259-0292 number. They do change up the number that appears on the caller ID. Sometimes I have gotten their 404 area code. 

Their website now has a privacy page that allows you to opt out of all marketing calls. Go to http://Charter.com. At the bottom, click on Your Privacy Rights.


Once the next screen comes up, click on Privacy Preferences. 


Now that you are on this page, fill out all of the fields. You will need your account number. At the bottom, select All of the above. Click submit and you should not receive any further harassing calls from them.

26 April 2013

SCCM: Custom Naming Distribution Points

If you are using standard machines as distribution points in your remote offices, the naming might be an issue for you, as it was for us. There was nothing in the naming that distinguished them to allow us to know their location. The only option we had was to keep a spreadsheet list of the machines with the associated location. The easy way around this is to create a distribution point group that allows you to custom name the group. You only associate the one distribution point to that group, which then  gives you the custom naming schema you were looking for. When you distribute and deploy software, you select from the distribution point group instead of from the distribution points, thereby allowing for easy dissemination. 

25 April 2013

Deploying GimpShop

As you will see, GimpShop is open-source  but full of plugins. It is nearly impossible to do a silent install without something like AutoIT. You can't open the executable up in something like PeaZip because the only thing that will show up is one DLL. When you run the executable, it will extract the msi to the root of %TEMP%. It also creates a couple of temporary directories, which are not needed for repackaging. I packaged up version 2.8, so the name of the msi was GimpShop2.8.msi. That is all you need to install the application. The msi does not contain any plugins and you can do a simple /qb- /norestart. 

23 April 2013

SCCM: Deploying from a Network Share

Sometimes you need to deploy from a network share instead of a distribution point. The reason I do this sometimes is because of the sheer size of some installations. For instance, Autodesk Revit 2013 Building Premium is 26 gigabytes. Transferring that across a WAN will take a LONG time. We do maintain network shares in our offices that we update once a month, which contains all of our installation programs.

To start, you will want to create your Application install. You will want to leave the content location blank. Fill in the Installation program and Uninstall Program fields with the command line parameters. For the Installation Start In and Uninstall Start In fields, enter the network share location of the application install. You do not want to distribute the content to a distribution point, as there is no need since the package will be pointing to a network share. When you deploy it, uncheck the Automatically distribute content for dependencies and do not specify any distribution points. That is all that is to deploying via a network share. 

22 April 2013

SCCM: Distribution point won't update because of minor changes

When you make a minor change to an installer program, the change may not update in SCCM/SMS. This is because if there was a minor change within the script and there is no size difference, SCCM will think it is the same. It is possible to completely update the distribution point with a new package source, but an issue arises if you had already run the package on machines and had set it to download the package first. The changes can be seen as the same that is on the distribution point and the local machine, therefore the changes are not pushed down. There are two options in this scenario. First is to clear out the local caches on the target machines. This will force SCCM/SMS to redownload the newer package. The second is to delete the package and recreate it so that a new version is created on the distribution points that does not match the version downloaded on the local machines. This causes the package to be re-downloaded to the local machines, thereby pushing the new changes. 

09 April 2013

Unlimited International Calling back to the US for $9.95

Last August and September, I was in Africa. While there, I called and texted back to the US using a Voice over IP service called Line2. It is an app that works on the iPhone, iPad, or Android. All I can say is that it was great. I used it while connected to WiFi routers. One of the big things I liked about it was that I did not have to treat the calls as international. When I called back to Nashville, TN from Johannesburg, South Africa, I just dialed 615-xxx-xxxx. There was some lag, but the calls were still good quality.


  • Local calling back to the US
  • Flat rate of $9.95
  • Good reception
  • No international calling prefixes
The app also works through a 3G/4G connection on the phone, but I did not want to have to bother with and internation SIM card, pricing, and such.