Oh, man! I have a bunch of Office 2010 installations that are showing as “not activated” and my help desk queue is building exponentially. This is going to be a horrible d…WAIT! I am SMART and use SCCM for all comprehensive distributions!
I am going to do something different, here. I am going to give you the scripts and switches to run and leave it up to you to determine the best way to deploy this to end-user workstations that are showing this problem. Bonus points if you can figure out a way to determine who has a copy of Office 2010 that is not activated.
In order to input the Office 2010 key, run (starting in “c:\program files\microsoft office\office14” [or “program files (x86)” for 32-bit installs on a 64-bit OS]):
cscript ospp.vbs /inpkey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
Then, to activate:
cscript ospp.vbs /act
I thought this was confusing, so I figured if it helps one person it is worth posting!
In order to do a WMI query for items that are NOT of a certain definition (for example, machines models that do not begin with “M”), you may think that you would include “NOT LIKE” in your query. The truth is, your query should look like this:
SELECT * FROM Win32_ComputerSystemProduct WHERE NOT Version LIKE “%M%”
So, I heard that you were trying to capture a base Windows 8 image for deployment. You are at least using MDT 2012 Update 1, correct? Good! What’s the problem, then? I see…on your reference machine, you are receiving an error message that contains “ZTI error: unhandled error returned by LTIApply: Not found (-2147217406 0x80041002)”.
Seriously, stop panicking. It is sort of unbecoming.
The issue is that the script is failing to check for the existence of the boot folder on the system partition before running a command called “takeown.exe,” which changes folder ownership. (NOTE: this does NOT occur if you are capturing a Windows 8 image that was originally deployed using MDT 2012 Update 1).
The fix, if you are so brave (just do it), is as follows:
- Open %DeployRoot%\Scripts\LTIApply.wsf and C:\Program Files\Microsoft Deployment Toolkit\Templates\Distribution\Scripts\LTIApply.wsf
- Locate the “copy bootmgr” section in both
- Add the following code above the copy bootmgr code:
If not oFSO.FolderExists(sBootDrive & “\Boot”) then
oFSO.CreateFolder(sBootDrive & “\Boot”)
Trying to be one of the cool kids, putting everything in the cloud? Well, who am I to stop you? I might as well help!
Here’s a link to a very good step-by-step guide on how to set up a cloud distribution point in SCCM 2012 SP1:
Need to create WMI queries but are not sure of which class to use and what properties are available? Well, today is your lucky day! The WMI Code Creator tool (developed by Microsoft) will make your life so much easier.
Here is a quick query to gather all of the machines that report as laptops in your environment:
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_SYSTEM_ENCLOSURE on SMS_G_System_SYSTEM_ENCLOSURE.ResourceID = SMS_R_System.ResourceId where
SMS_G_System_SYSTEM_ENCLOSURE.ChassisTypes in ( “8”, “9”, “10”, “14” )
If you want to change the system enclosure type, here is Microsoft’s list of chassis type codes:
4 Low Profile Desktop
5 Pizza Box
6 Mini Tower
11 Hand Held
12 Docking Station
13 All in One
14 Sub Notebook
16 Lunch Box
17 Main System Chassis
18 Expansion Chassis
19 Sub Chassis
20 Bus Expansion Chassis
21 Peripheral Chassis
22 Storage Chassis
23 Rack Mount Chassis
24 Sealed-Case PC
Wait…you want to deploy IE 10 to the workstations in your environment? Good for you! Don’t listen to all of the angry tech-bashing of Internet Explorer…I am a proponent.
What’s that you say? You just want to deploy it all willy-nilly without checking to see what is required for a successful install? Silly rabbit.
Why don’t you just back up a second and check out this blog regarding the necessary prereqs (and how to use SCCM to deploy them): http://myitforum.com/myitforumwp/2013/03/16/deploying-ie10-prereqs-for-win7sp1-with-configmgr-2012/