Monthly Archives: October 2013

You are browsing the site archives by month.

Create a bootable USB-drive for OS-installations

Purpose: Install an operating system with a USB-device.

This post has nothing to do with SCCM. You have an ISO file and want to install that ISO file MANUALLY with an USB-device without any automatisation (yeah, this might still be relevant after all).

Continue Reading

Designing Boundaries and Overlapping Boundaries in SCCM 2012

Purpose: To understand how a Boundary and an Overlapping Boundary functions in SCCM 2012.

Understanding boundaries is fundamental to successfully operate Configuation Manager 2012. Everything that the product does towards workstations happens inside a selected boundary. With boundaries we point a workstatioon which distribution point to use when downloading programs, applications, windows updates, third party updates, virus definitions and such. Everything runs smoothly when you begin creating your boundaries until you create your first overlapping boundary.

Continue Reading

Detect if Windows Service Exists (VBS)

Purpose: Return true if predefined Windows Service Exists, return false if it does not exist

You might find yourself in a situation where some of the applications have been installed in one way and the others in another way. Depending on the problem, you might just want to clean the table and reinstall the the applications with your definitions. If this is not possible or would not be cost efficient, you could use SCCM to check if “something” exists and alter the workstations where this something is missing. In this example this “something” is a missing Windows Service.

Usage: cscript.exe IT_APP_VBS_GetWindowServiceStatus WINDOWSSERVICENAME
Configuration: You need to insert your own WINDOWS SERVICE NAME as a parameter for the script.
Reference: http://themonitoringguy.com/scripts-code/monitoring-windows-services-vbscript/

Continue Reading

Add or modify an environmental variable (BAT, VBS)

Purpose: Add or modify a windows OS environmental variable from command-line

It is not very unusual that an application requires an environmental variable to function properly. Depending on how deep into the application packaging you must dive, sooner or later you will be face to face with an environmental variable application. Most common scenarios is that something will work a lot easier with a custom environmental variable or that the actual windows PATH variable must be modified to include the new application.

The most important theory is the following:

User environmental variables: HKEY_CURRENT_USER\Environment
System enviromental variables: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

Continue Reading

Get all Workstations from an AD SG (WQL)

Purpose: Get all Workstations from an Active Directory Security Group (WQL)

If your environment uses heavily active directory security groups, you can use those memberships in Configuration Manager Device Collections. With a simple query, you can set the system to gather all the members of an active directory security group into your brand new (or old) device collection.

Continue Reading

List all Active Directory Organizational Unit LDAP (PS)

Purpose: Query all or some Active Directory Organisational Units and their LDAPs

Powershell has an enourmous amount of cmdlets, which can be called to do your bidding. In this scenario you want to list all your Acrive Directory Organizational Units and unleash some filters to that mass. There are many alternative ways to do this, select one of them below and have fun.

Usage: powershell.exe -ExecutionPolicy ByPass -file IT_AD_PS_GetAllOrganizationalUnits.ps1
Configuration: You can use filters to change the outcome of your query
References: Get-ADOrganizationalUnit, Export-Csv

Continue Reading

Change a computer name from the command-line

Purpose: Demonstrate different ways to change a computer name remotely using command-line

There are multiple reasons why you might need to change a computer name remotely. One might be that you are lazy. The other might be that you would disturbt the user if you change his workstation name with a RDP (or similar) connection. The third might be that you creating are a tool and want to use your command line as a function to it. What ever your case is, here are my foundings about this subject.

Continue Reading

Create new WordPress Custom Template Page (PHP)

Purpose: Create new WordPress Custom Template Page (PHP)

A WordPress PHP script. Taken from the WordPress offical codex, just for a personal note.

Continue Reading

Get all Workstations without an Application (WQL)

Purpose: All Workstations without an Application (WQL)

As an opposite to our previous example we create a device collection, which gathers all workstations that DO NOT HAVE a predefined application. This predefined application must be inserted into the query. The first table shows how to gather workstations WITHOUT an application and not take into account the version number of the application (ignores all versions). The second query ignores only specific versions of the application.

Continue Reading

Get all Workstations with an Application (WQL)

Purpose: All Workstations with an Application (WQL)

In this example we create a device collection, which gathers all workstations that has a predefined application. This predefined application must be inserted into the query. The first table shows how to gather workstations with an application and not take into account the version number of the application (gathers all versions). The second query has application version restriction as well.

Continue Reading