Don’t wanna use SCCM 2007 to update Windows? But need to update Windows Image in OS Deployment.
Here is one way to do it with MDT 2010:
1. Update Customsettings.ini with this line: ( Change it to your WSUS Server.)
WSUSServer=http://InternalWSUSserver:port
2. Add this as a commandline in Task Sequence:
Use Toolkit Package
3. Add this as a commandline in Task Sequence:
Gather ( Use Customsettings )
4. Add this as a commandline in Task Sequence:
cscript.exe %deployroot%\scripts\ZTIWindowsUpdate.wsf
Now Windows 7 will be updated with the latest patches from your internal WSUS.
NB: For this to work your computer may have to be in the same domain as the WSUS server.
Tried to start a ConfigMgr Program with Powershell? Then you are lucky.
Here you go:
ErrorActionPreference = "SilentlyContinue"
##################################
# Start a advertised program with powershell. #
# #
# Date: 11.06.2010 #
# Written by Stian Ravndal #
# Version: 0.6.5 #
##################################
if ($args[0] -eq "-r")
{#Reading variables from registry.
$parameter1 = $args[1]
$registry = Get-ItemProperty "HKCU:\Software\Atea\StartApp\$parameter1"
$programID = $registry.ProgramID
$PackageID = $registry.PackageID
}
elseif ($args[0] -eq "-s")
{# Variables is inserted from parameters.
$programID = $args[1]
$PackageID = $args[2]
}
else
{# This will run if no parameters are specified.
# Variables inserted in script.
# Package ID from ConfigMgr.
$PackageID = ""
# ConfigMgr ProgramID.
$programID = ""
}
function startapp
{param ($programID, $PackageID)
if ($programID -eq "" -OR $PackageID -eq "")
{[System.Windows.Forms.MessageBox]::Show("Something wrong with parameters.")return
}
else
{}
$startapp = New-Object -ComObject UIResource.UIResourceMgr
if ($startapp -eq $null)
{[System.Windows.Forms.MessageBox]::Show("CCM client not installed.")return
}
if ($startapp.IsMandatoryProgramPending() -eq "1")
{[System.Windows.Forms.MessageBox]::Show("There is allready something running.")return
}
$program = $startapp.GetProgram($programID,$PackageID)
if ($program -eq $null)
{[System.Windows.Forms.MessageBox]::Show("You do not have access to this program.")return
}
$startapp.ExecuteProgram($programID, $PackageID,"")
}
startapp $programID $PackageID
Download Script
After you have installed the KB977384 on Configuration Manager 2007, the KB977203 won’t install at all, so don’t even try. =)
If you still have problems described in article 977203, the steps that involve CCMcertFix is still valid.
Description of the prerequisite hotfix for System Center Configuration Manager 2007 R3:
http://support.microsoft.com/kb/977384
User state migration is unsuccessful on a SCCM 2007 SP1 client or on a SCCM 2007 SP2 client after you install security update 974571:
http://support.microsoft.com/kb/977203