counter customizable

PowerShell – Import Configuration Manager module

Here is a script to import the Configuration Manager module in PowerShell. The module will only be imported in not previously imported.

More »

PowerShell simple trim after specific character

A example of a simple Trim in PowerShell after a specific character. This will trim after “ –“

More »

Logging for PowerShell

Here is a simple function or logging in PowerShell

 

# Settings for logging
$Logfile = "C:\Log\PowerShell-LogFile.log"
Function Write-Log
{
   Param ([string]$logstring)
   Add-content $Logfile -value $logstring
}

More »

Repair Management Point with HTTP error 500

I sometime get broken Management Points that report Http Error 500 when trying to retrieve the list with
http://<ServerName>/sms_mp/.sms_aut?mplist, (where <ServerName> is the NetBIOS name for the management point computer.)

More »

SCCM 2012 – Using PowerShell as detection method for application.

 

Here is an example to use a short PowerShell script as a detection method. Here I use a WMI query to check the version of the SCCM 2012 client.

More »

An error occurred when loading the task sequence. When using multiple SMS Providers.

When using multiple SMS Providers in Microsoft System Center Configuration Manager 2012 and trying to edit a MDT task sequence you sometimes get “An error occurred when loading the task sequence”. The error occurs  when you get connected to one of the “other” SMS Providers. And when checking the TaskSequenceProvider.log on that server you se the following:

More »

WHS 2011 – This computer is unable to establish a trust relationship with the server. Verify that the computer’s date and time are accurate and try again.

When I try to connect a new client to my Windows Home Server 2011 (WHS 2011) I get this message "Cannot connect this computer to the network. This computer is unable to establish a trust relationship with the server. Verify that the computer’s date and time are accurate and try again. "

More »

Use NSLOOKUP to check the SCCM MP DNS record

You can us NSLOOKUP to check the Configuration Mangers MP record in DNS. Just open a command prompt

More »

Get Lenovo Bios Boot Order in SCCM 2007

 

Edit the sms_def.mof file.

Here is an example on how to create a report for the boot order of Lenovo computers. To get the necessary data for the report we need to modify the SMS_DEF.mof file to collect more data from WMI Name Space Root\WMI and Class Lenovo_BiosSetting.

More »

RTM versions of Windows 8 now available for download

Finally the RTM versions of Windows 8 available on TechNet and MSDN. So just head over there and download your copy.

More »