Skip navigation

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

PSU\mjantzen

Yay :).

Advertisements

2 Comments

  1. Hi! Just wanted to say hi! I really don’t understand this post. I hope you are doing well :).

  2. mbk ikutan belajar donk….q bloger pemula yng benar- benar buta.ajari q craya biar blogq semakin cantik…bolehkan???? Click https://zhoutest.wordpress.com/


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: