Skip navigation

Monthly Archives: August 2012

So a while back another department at Portland State University asked to deploy iTunes via SCCM. The reason for this is staff/faculty buy iPad’s – and the iPad doesn’t seem to be able to operate¬†independent¬†of the PC. On install iTunes 10 deploys all of its settings to the current user profile, and it supports very little first launch customization. So if you want to surpress the EULA, and that prompt about Bonjour missing you have to copy files to the user who launched the iTunes 10 installer from Run Advertised. Now SCCM installs everything as SYSTEM – and so out of the box I don’t actually know immediately who clicked the install button. So how to figure out who is actually at the PC?

In Windows 7 this is trivial via Powershell:

( Get-WmiObject -class win32_computerSystem -computerName .).username

On Windows XP however the Win32_ComputerSystem class doesn’t even exist in WMI. This was introduced with Windows Vista SP1. On Windows XP you can get this info from the SCCM Advanced Client:

$CPAppletMgr = New-Object -ComObject CPApplet.CPAppletMgr -> Sets up the SCCM com object

$UserName = $cpAppletMgr.GetClientProperties() | Where-Object {$_.Name -eq “UserName”}

Then $UserName.Value returns


Yay :).