Adding GPO Pack support in MDT 2013 for Windows 8.1

If you ever tried to use GPO Packs in MDT 2013 or ConfigMgr 2012 R2, you quickly find out they will fail for Windows 8.1. The reason? Microsoft forgot to add support for Windows 8.1 in the ZTIApplyGPOPack.wsf script. Luckily it's easy to fix, and while you're at it, why not also add support for Windows Server 2012 R2.

Credits: Thanks to chemdawg for pointing out the issue and fix. See the comments in this post: https://deploymentresearch.com/Research/tabid/62/EntryId/47/Creating-and-Applying-Custom-GPO-Packs-using-MDT-2012-Beta-2-with-or-without-SCCM-2007-2012.aspx

Fix the bug

Find the following section in ZTIApplyGPOPack.wsf (line 86 – 92):

sOSVersion = oEnvironment.Item("OSCurrentVersion")
If (Left(sOSVersion,3) = "6.2") and oEnvironment.Item("IsServerOS") then
    sOS = "WS2012RTM"
    oLogging.CreateEntry "Using Default Windows Server 2012 RTM GPO Pack", LogTypeInfo
ElseIf (Left(sOSVersion,3) = "6.2") and Not(oEnvironment.Item("IsServerOS")) then
    sOS = "Win8RTM"
    oLogging.CreateEntry "Using Default Windows 8 RTM GPO Pack", LogTypeInfo

And change to:

If (Left(sOSVersion,3) = "6.3") and oEnvironment.Item("IsServerOS") then
    sOS = "WS2012R2"
    oLogging.CreateEntry "Using Windows Server 2012 SP1 PO Pack", LogTypeInfo
ElseIf (Left(sOSVersion,3) = "6.3") and Not(oEnvironment.Item("IsServerOS")) then
    sOS = "Win81"
    oLogging.CreateEntry "Using Windows 8.1 GPO Pack", LogTypeInfo
ElseIf (Left(sOSVersion,3) = "6.2") and oEnvironment.Item("IsServerOS") then
    sOS = "WS2012RTM"
    oLogging.CreateEntry "Using Default Windows Server 2012 RTM GPO Pack", LogTypeInfo
ElseIf (Left(sOSVersion,3) = "6.2") and Not(oEnvironment.Item("IsServerOS")) then
    sOS = "Win8RTM"
    oLogging.CreateEntry "Using Default Windows 8 RTM GPO Pack", LogTypeInfo

 

/ Johan

About the author

Johan Arwidmark

0 0 votes
Article Rating
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
bmmcrm
bmmcrm
8 years ago

Johan,

Does this mean that Microsoft is working on updating the Security Complaince Manager to support Windows 8.1?


>