Thursday, March 31, 2011

VBscript - How to obtain the local SCCM Proxy Point from WMI

Say you have an application you need to run from a share on local SCCM site server, not from a specific DP.

In this case it can be really easy to determine what your local site server is by querying local WMI for the MPProxy Point.

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\ccm")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM SMS_MPProxyInformation",,48)
For Each objItem in colItems
Wscript.Echo "sitename: " &

Thursday, March 24, 2011

SCCM - MSI Error 1603 error when deploying an application to a standard user.

I recently came across and issue whereby I created a deployable package and it worked fine under admin but kept failing on a users machine.

In the MSI log it would error out with

ISMsiServerStartup Failure, Failed to Initialize script support, Error = 0x80070006
Exit code 1603

The application was deployed using and MSI and it was trying to start up the installscript engine but failed. It seems this application was meant to use a setup.exe to invoke the MSI.

the root cause of this turns out to be the InstallScript DCOM Permissions for any version of IISscript installed. We need to change the Installsheild permissions from executing as the 'interactive user' to executing as the 'Launching User'. this way when he MSI executes and calls the installscript service to start it will start up as the user who kicked off the installer, not as the logged on user (standard user) who doesn't have rights to install software.

AppDeploy have a good write up on this issue.

More info here:
Appdeploy forum
A good video here
Appdeploy Video - Dealing with InstallScript