Skip to content

Commit 1a2568c

Browse files
added new apps and configs
1 parent c3a2abf commit 1a2568c

File tree

72 files changed

+4039
-570
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+4039
-570
lines changed

Configs/File_Assoc_Acrobat2015.xml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<DefaultAssociations>
3+
<Association Identifier=".pdf" ProgID="Acrobat.Document.2015" ApplicationName="Adobe Acrobat DC" />
4+
<Association Identifier=".pdfxml" ProgID="Acrobat.pdfxml" ApplicationName="Adobe Acrobat DC" />
5+
<Association Identifier=".acrobatsecuritysettings" ProgID="Acrobat.acrobatsecuritysettings" ApplicationName="Adobe Acrobat DC" />
6+
<Association Identifier=".fdf" ProgID="Acrobat.FDFDoc" ApplicationName="Adobe Acrobat DC" />
7+
<Association Identifier=".xfdf" ProgID="Acrobat.XFDFDoc" ApplicationName="Adobe Acrobat DC" />
8+
<Association Identifier=".xdp" ProgID="Acrobat.XDPDoc" ApplicationName="Adobe Acrobat DC" />
9+
<Association Identifier=".pdx" ProgID="PDXFileType" ApplicationName="Adobe Acrobat DC" />
10+
<Association Identifier=".api" ProgID="Acrobat.Plugin" ApplicationName="Adobe Acrobat DC" />
11+
<Association Identifier=".secstore" ProgID="Acrobat.SecStore" ApplicationName="Adobe Acrobat DC" />
12+
<Association Identifier=".sequ" ProgID="Acrobat.Sequence" ApplicationName="Adobe Acrobat DC" />
13+
<Association Identifier=".rmf" ProgID="Acrobat.RMFFile" ApplicationName="Adobe Acrobat DC" />
14+
<Association Identifier=".bpdx" ProgID="AcrobatBPDXFileType" ApplicationName="Adobe Acrobat DC" />
15+
</DefaultAssociations>
16+
17+

Configs/File_Assoc_AcrobatDC.XML

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<DefaultAssociations>
3+
<Association Identifier=".pdf" ProgID="Acrobat.Document.DC" ApplicationName="Adobe Acrobat DC" />
4+
<Association Identifier=".pdfxml" ProgID="Acrobat.pdfxml" ApplicationName="Adobe Acrobat DC" />
5+
<Association Identifier=".acrobatsecuritysettings" ProgID="Acrobat.acrobatsecuritysettings" ApplicationName="Adobe Acrobat DC" />
6+
<Association Identifier=".fdf" ProgID="Acrobat.FDFDoc" ApplicationName="Adobe Acrobat DC" />
7+
<Association Identifier=".xfdf" ProgID="Acrobat.XFDFDoc" ApplicationName="Adobe Acrobat DC" />
8+
<Association Identifier=".xdp" ProgID="Acrobat.XDPDoc" ApplicationName="Adobe Acrobat DC" />
9+
<Association Identifier=".pdx" ProgID="PDXFileType" ApplicationName="Adobe Acrobat DC" />
10+
<Association Identifier=".api" ProgID="Acrobat.Plugin" ApplicationName="Adobe Acrobat DC" />
11+
<Association Identifier=".secstore" ProgID="Acrobat.SecStore" ApplicationName="Adobe Acrobat DC" />
12+
<Association Identifier=".sequ" ProgID="Acrobat.Sequence" ApplicationName="Adobe Acrobat DC" />
13+
<Association Identifier=".rmf" ProgID="Acrobat.RMFFile" ApplicationName="Adobe Acrobat DC" />
14+
<Association Identifier=".bpdx" ProgID="AcrobatBPDXFileType" ApplicationName="Adobe Acrobat DC" />
15+
</DefaultAssociations>
16+
17+

Configs/File_Assoc_AcrobatXI.XML

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<DefaultAssociations>
3+
<Association Identifier=".pdf" ProgID="Acrobat.Document.11" ApplicationName="Adobe Acrobat XI" />
4+
<Association Identifier=".pdfxml" ProgID="Acrobat.pdfxml" ApplicationName="Adobe Acrobat XI" />
5+
<Association Identifier=".acrobatsecuritysettings" ProgID="Acrobat.acrobatsecuritysettings" ApplicationName="Adobe Acrobat XI" />
6+
<Association Identifier=".fdf" ProgID="Acrobat.FDFDoc" ApplicationName="Adobe Acrobat XI" />
7+
<Association Identifier=".xfdf" ProgID="Acrobat.XFDFDoc" ApplicationName="Adobe Acrobat XI" />
8+
<Association Identifier=".xdp" ProgID="Acrobat.XDPDoc" ApplicationName="Adobe Acrobat XI" />
9+
<Association Identifier=".pdx" ProgID="PDXFileType" ApplicationName="Adobe Acrobat XI" />
10+
<Association Identifier=".api" ProgID="Acrobat.Plugin" ApplicationName="Adobe Acrobat XI" />
11+
<Association Identifier=".secstore" ProgID="Acrobat.SecStore" ApplicationName="Adobe Acrobat XI" />
12+
<Association Identifier=".sequ" ProgID="Acrobat.Sequence" ApplicationName="Adobe Acrobat XI" />
13+
<Association Identifier=".rmf" ProgID="Acrobat.RMFFile" ApplicationName="Adobe Acrobat XI" />
14+
<Association Identifier=".bpdx" ProgID="AcrobatBPDXFileType" ApplicationName="Adobe Acrobat XI" />
15+
</DefaultAssociations>
16+
17+

Configs/File_Assoc_Reader2015.xml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<DefaultAssociations>
3+
<Association Identifier=".pdf" ProgID="AcroExch.Document.2015" ApplicationName="Adobe Acrobat Reader DC" />
4+
<Association Identifier=".pdfxml" ProgID="AcroExch.pdfxml" ApplicationName="Adobe Acrobat Reader DC" />
5+
<Association Identifier=".acrobatsecuritysettings" ProgID="AcroExch.acrobatsecuritysettings" ApplicationName="Adobe Acrobat Reader DC" />
6+
<Association Identifier=".fdf" ProgID="AcroExch.FDFDoc" ApplicationName="Adobe Acrobat Reader DC" />
7+
<Association Identifier=".xfdf" ProgID="AcroExch.XFDFDoc" ApplicationName="Adobe Acrobat Reader DC" />
8+
<Association Identifier=".xdp" ProgID="AcroExch.XDPDoc" ApplicationName="Adobe Acrobat Reader DC" />
9+
<Association Identifier=".pdx" ProgID="PDXFileType" ApplicationName="Adobe Acrobat Reader DC" />
10+
<Association Identifier=".api" ProgID="AcroExch.Plugin" ApplicationName="Adobe Acrobat Reader DC" />
11+
<Association Identifier=".secstore" ProgID="AcroExch.SecStore" ApplicationName="Adobe Acrobat Reader DC" />
12+
</DefaultAssociations>
13+
14+

Configs/File_Assoc_ReaderDC.XML

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<DefaultAssociations>
3+
<Association Identifier=".pdf" ProgID="AcroExch.Document.DC" ApplicationName="Adobe Acrobat Reader DC" />
4+
<Association Identifier=".pdfxml" ProgID="AcroExch.pdfxml" ApplicationName="Adobe Acrobat Reader DC" />
5+
<Association Identifier=".acrobatsecuritysettings" ProgID="AcroExch.acrobatsecuritysettings" ApplicationName="Adobe Acrobat Reader DC" />
6+
<Association Identifier=".fdf" ProgID="AcroExch.FDFDoc" ApplicationName="Adobe Acrobat Reader DC" />
7+
<Association Identifier=".xfdf" ProgID="AcroExch.XFDFDoc" ApplicationName="Adobe Acrobat Reader DC" />
8+
<Association Identifier=".xdp" ProgID="AcroExch.XDPDoc" ApplicationName="Adobe Acrobat Reader DC" />
9+
<Association Identifier=".pdx" ProgID="PDXFileType" ApplicationName="Adobe Acrobat Reader DC" />
10+
<Association Identifier=".api" ProgID="AcroExch.Plugin" ApplicationName="Adobe Acrobat Reader DC" />
11+
<Association Identifier=".secstore" ProgID="AcroExch.SecStore" ApplicationName="Adobe Acrobat Reader DC" />
12+
</DefaultAssociations>
13+
14+

Configs/File_Assoc_ReaderXI.XML

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<DefaultAssociations>
3+
<Association Identifier=".pdf" ProgID="AcroExch.Document.11" ApplicationName="Adobe Reader XI" />
4+
<Association Identifier=".pdfxml" ProgID="AcroExch.pdfxml" ApplicationName="Adobe Reader XI" />
5+
<Association Identifier=".acrobatsecuritysettings" ProgID="AcroExch.acrobatsecuritysettings" ApplicationName="Adobe Reader XI" />
6+
<Association Identifier=".fdf" ProgID="AcroExch.FDFDoc" ApplicationName="Adobe Reader XI" />
7+
<Association Identifier=".xfdf" ProgID="AcroExch.XFDFDoc" ApplicationName="Adobe Reader XI" />
8+
<Association Identifier=".xdp" ProgID="AcroExch.XDPDoc" ApplicationName="Adobe Reader XI" />
9+
<Association Identifier=".pdx" ProgID="PDXFileType" ApplicationName="Adobe Reader XI" />
10+
<Association Identifier=".api" ProgID="AcroExch.Plugin" ApplicationName="Adobe Reader XI" />
11+
<Association Identifier=".secstore" ProgID="AcroExch.SecStore" ApplicationName="Adobe Reader XI" />
12+
</DefaultAssociations>
13+
14+

Configs/indent.xsl

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3+
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
4+
<xsl:template match="/">
5+
<xsl:copy-of select="."/>
6+
</xsl:template>
7+
</xsl:stylesheet>

Configs/lockdown_Acrobat10.reg

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Windows Registry Editor Version 5.00
2+
3+
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Adobe\Adobe Acrobat\10.0\FeatureLockDown]
4+
"bUsageMeasurement"=dword:00000000
5+
6+
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Adobe\Adobe Acrobat\10.0\FeatureLockDown\cDefaultExecMenuItems]
7+
"tWhiteList"="Close|GeneralInfo|Quit|FirstPage|PrevPage|NextPage|LastPage|ActualSize|FitPage|FitWidth|FitHeight|SinglePage|OneColumn|TwoPages|TwoColumns|ZoomViewIn|ZoomViewOut|ShowHideBookmarks
8+
9+
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Adobe\Adobe Acrobat\10.0\FeatureLockDown\cDefaultLaunchAttachmentPerms]
10+
"tBuiltInPermList"="version:1|.ade:3|.adp:3|.app:3|.arc:3|.arj:3|.asp:3|.bas:3|.bat:3|.bz:3|.bz2:3|.cab:3|.chm:3|.class:3|.cmd:3|.com:3|.command:3|.cpl:3|.crt:3|.csh:3|.desktop:3|.dll:3|.exe:3|.fxp:3|.gz:3|.hex:3
11+
12+
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Adobe\Adobe Acrobat\10.0\FeatureLockDown\cDefaultLaunchURLPerms]
13+
"tFlashContentSchemeWhiteList"="http|https|ftp|rtmp|rtmpe|rtmpt|rtmpte|rtmps|mailto"
14+
"tSponsoredContentSchemeWhiteList"="http|https"
15+
"tSchemePerms"="version:2|shell:3|hcp:3|ms-help:3|ms-its:3|ms-itss:3|its:3|mk:3|mhtml:3
16+
17+
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Adobe\Adobe Acrobat\10.0\FeatureLockDown\cJavaScriptPerms]
18+
"tBlackList"="Doc.exportXFAData|Util.CharToByte"

Configs/lockdown_Acrobat2015.reg

16.5 KB
Binary file not shown.

Install-7z.wsf

+7-7
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ Function ZTIProcess()
4545
'// If no argument provided check for MDT/SCCM variable
4646
'// If no variable or argument is provided, defualt to x86
4747
If oUtility.Arguments.Exists("arch") Then
48-
sArch = oUtility.Arguments("arch")
48+
sArch = LCase(oUtility.Arguments("arch"))
4949
ElseIf oEnvironment.Exists("Architecture") Then
50-
sArch = oEnvironment.Item("Architecture")
50+
sArch = LCase(oEnvironment.Item("Architecture"))
5151
Else
5252
sArch = "x86"
5353
End If
5454

5555
'// Variables:
5656
'// Change if needed
57-
sVersion = "18.06"
57+
sVersion = "19.00"
5858
sExtension = "msi"
5959

6060
arySplitVer = Split(sVersion, ".")
@@ -69,13 +69,13 @@ Function ZTIProcess()
6969

7070
sInstallName = "7-Zip"
7171

72-
sInstallerPath = oUtility.ScriptDir & "\Source\" & sFile
72+
sInstallerPath = oUtility.ScriptDir & "\Source\" & sVersion & "\" & sFile
7373

7474
'// Build log path (incase not used in task sequence)
75-
If oEnvironment.Item("_SMSTSLogPath") = "" Then
76-
sLogFolder = oEnv("TEMP") & "\AppLogs"
77-
Else
75+
If oEnvironment.Exists("_SMSTSLogPath") Then
7876
sLogFolder = oEnvironment.Item("_SMSTSLogPath") & "\AppLogs"
77+
Else
78+
sLogFolder = oEnv("TEMP") & "\AppLogs"
7979
End If
8080
oUtility.VerifyPathExists sLogFolder
8181
sLogName = Replace(sInstallName & "_" & sVersion & "_" & sArch & ".log"," ","")

Install-90Meter.wsf

+103-39
Original file line numberDiff line numberDiff line change
@@ -36,62 +36,65 @@ On Error Goto 0
3636
Function ZTIProcess()
3737

3838
Dim sVersion,sArch,sFile
39+
Dim sPrefix
3940
Dim sInstallName, sInstallerPath
4041
Dim sLogFolder,sLogName,sLogPath
41-
Dim sLog2Name,sLog2Path
42-
Dim sPatch,sPatchPath
42+
Dim sCertRootInstaller,sCertRootInstallerPath
43+
Dim sCertDirPath,sSettingsPath
44+
Dim sRegCmd
4345

4446
'// Apply Architecture arguments:
4547
'If no argument provided check for MDT/SCCM variable
4648
'If no variable or argument is provided, defualt to x86
4749
If oUtility.Arguments.Exists("arch") Then
48-
sArch = oUtility.Arguments("arch")
50+
sArch = LCase(oUtility.Arguments("arch"))
4951
ElseIf oEnvironment.Exists("Architecture") Then
50-
sArch = oEnvironment.Item("Architecture")
52+
sArch = LCase(oEnvironment.Item("Architecture"))
5153
Else
5254
sArch = "x86"
5355
End If
5456

57+
' check if MDT variable exists
58+
If oUtility.Arguments.Exists("prefix") Then
59+
sPrefix = LCase(oUtility.Arguments("prefix"))
60+
ElseIf oEnvironment.Exists("Prefix") Then
61+
sPrefix = oEnvironment.Item("Prefix")
62+
End if
63+
64+
5565
'// Variables:
5666
'// Change if needed
57-
sVersion = "1.4.32"
67+
sVersion = "1.4.33"
5868
sArch = "x64"
5969

6070
If sArch = "x64" then
61-
sFile = "SCM_"& sVersion &"_64Bit_S.msi"
62-
Else
63-
sFile = "SCM_"& sVersion & "_32Bit_S.msi"
64-
End If
65-
66-
If sArch = "x64" then
67-
sPatch = "SCM_1.4.33_64Bit_S_RC4.msi"
71+
sFile = "SCM_"& sVersion &"_64Bit_S_RC4.msi"
6872
Else
69-
sPatch = "SCM_1.4.33_32Bit_S_RC4.msi"
73+
sFile = "SCM_"& sVersion & "_32Bit_S_RC4..msi"
7074
End If
75+
7176

7277
If sArch = "x64" then
73-
sCertRoot = "InstallRoot_v3.16.3Sx64.exe"
78+
sCertRootInstaller = "InstallRoot_SIPR_5.2x64.msi"
7479
Else
75-
sCertRoot = "InstallRoot_v3.16.3S.exe"
80+
sCertRootInstaller = "InstallRoot_SIPR_5.2x32.msi"
7681
End If
7782

7883
sInstallName = "90Meter"
7984

8085
sInstallerPath = oUtility.ScriptDir & "\Source\" & sVersion & "\" & sFile
81-
sPatchPath = oUtility.ScriptDir & "\Source\" & sVersion & "\" & sPatch
82-
sCertRootPath = oUtility.ScriptDir & "\Configs\" & sCertRoot
86+
sCertRootInstallerPath = oUtility.ScriptDir & "\Configs\" & sCertRootInstaller
87+
sCertDirPath = oUtility.ScriptDir & "\Certs\"
8388

8489
'// Build log path (incase not used in task sequence)
85-
If oEnvironment.Item("_SMSTSLogPath") = "" Then
86-
sLogFolder = oEnv("TEMP") & "\AppLogs"
87-
Else
90+
If oEnvironment.Exists("_SMSTSLogPath") Then
8891
sLogFolder = oEnvironment.Item("_SMSTSLogPath") & "\AppLogs"
92+
Else
93+
sLogFolder = oEnv("TEMP") & "\AppLogs"
8994
End If
9095
oUtility.VerifyPathExists sLogFolder
9196
sLogName = Replace(sInstallName & "_" & sVersion & "_" & sArch & ".log"," ","")
9297
sLogPath = sLogFolder & "\" & sLogName
93-
sLog2Name = Replace(sInstallName & "_Patch_" & sVersion & "_" & sArch & ".log"," ","")
94-
sLog2Path = sLogFolder & "\" & sLog2Name
9598

9699

97100
'// Start the process
@@ -106,31 +109,77 @@ Function ZTIProcess()
106109
'// Disable Zone Checks
107110
oEnv("SEE_MASK_NOZONECHECKS") = 1
108111

109-
iRetVal = oUtility.RunWithHeartbeat("msiexec /i """ & sInstallerPath & """ /qn /norestart /l*v """ & sLogPath & """")
112+
iRetVal = oUtility.RunWithHeartbeat("""" & oUtility.ScriptDir & "\Configs\Control_Vault\CVHCI64.exe"" /S /v/qn")
113+
114+
iRetVal = oUtility.RunWithHeartbeat("msiexec /q ALLUSERS=2 /m MSIHARSK /i """ & sInstallerPath & """ /l*v """ & sLogPath & """")
110115

111116
if (iRetVal = 0) or (iRetVal = 3010) then
112117

113-
iRetVal = oUtility.RunWithHeartbeat("msiexec /i """ & sPatchPath & """ /qn /norestart /l*v """ & sLog2Path & """")
118+
ZTIProcess = Success
114119

115-
if (iRetVal = 0) or (iRetVal = 3010) then
116-
ZTIProcess = Success
117-
iRetVal = oUtility.RunWithHeartbeat("""" & sCertRootPath & """ /s")
118-
119-
'oLogging.CreateEntry "importing to root certificate store: """ & sCertDirPath, LogTypeInfo
120-
'iRetVal = oUtility.RunWithHeartbeat("certutil.exe –f -addstore -enterprise -user root """ & sCertDirPath)
120+
sSettingsPath = "C:\Users\default\AppData\Local\Litronic\OCM"
121+
oUtility.VerifyPathExists sSettingsPath
122+
oUtility.VerifyPathExists (oEnv("LocalAppData") & "\Litronic\OCM")
123+
oFSO.CopyFile (oUtility.ScriptDir & "\Configs\middleware.settings"), (sSettingsPath & "\middleware.settings"), True
124+
oFSO.CopyFile (oUtility.ScriptDir & "\Configs\middleware.settings"), (oEnv("LocalAppData") & "\Litronic\OCM\middleware.settings"), True
125+
126+
iRetVal = oUtility.RunWithHeartbeat("msiexec /i """ & sCertRootInstallerPath & """ /qn /norestart")
127+
DeleteFile "C:\Users\Public\Desktop","InstallRoot SIPR 5.2.lnk"
128+
129+
'Import Root Certs
130+
Dim objFolder, objFile
131+
Set objFolder = oFSO.GetFolder(sCertDirPath & "\" & UCase(sPrefix) & "\Root")
132+
133+
for each objFile in objFolder.Files
134+
if UCase(oFSO.GetExtensionName(objFile.name)) = "CER" Then
135+
oLogging.CreateEntry "importing to root certificate store: """ & sCertDirPath & "\" & UCase(sPrefix) & "\Root\" & objFile.Name & "", LogTypeInfo
136+
'iRetVal = oUtility.RunWithHeartbeat("""" & oUtility.ScriptDir & "\Certs\certmgr.exe"" -add """ & sCertDirPath & "\" & UCase(sPrefix) & "\Root\" & objFile.Name & " -c -s -r localMachine Root")
137+
iRetVal = oUtility.RunWithHeartbeat("certutil.exe -f -addstore -enterprise -user root """ & sCertDirPath & "\" & UCase(sPrefix) & "\Root\" & objFile.Name & """")
138+
end if
121139

122-
'oLogging.CreateEntry "importing to intermediate store: """ & sCertDirPath & "\" & objFile.Name & "", LogTypeInfo
123-
'iRetVal = oUtility.RunWithHeartbeat("certutil.exe –f –addstore CA """ & oUtility.ScriptDir & "\Configs\90m_CodeSigning_Cert.cer"" -c -s -r localMachine TrustedPublisher")
140+
WScript.Sleep 1000
141+
Next
142+
143+
'Import Sub Certs
144+
Set objFolder = oFSO.GetFolder(sCertDirPath & "\" & UCase(sPrefix) & "\Sub")
145+
146+
for each objFile in objFolder.Files
147+
if UCase(oFSO.GetExtensionName(objFile.name)) = "CER" Then
148+
oLogging.CreateEntry "importing to root certificate store: """ & sCertDirPath & "\" & UCase(sPrefix) & "\Sub\" & objFile.Name & "", LogTypeInfo
149+
'iRetVal = oUtility.RunWithHeartbeat("""" & oUtility.ScriptDir & "\Certs\certmgr.exe"" -add """ & sCertDirPath & "\" & UCase(sPrefix) & "\Sub\" & objFile.Name & " -c -s -r localMachine CA")
150+
iRetVal = oUtility.RunWithHeartbeat("certutil.exe -f -addstore CA """ & sCertDirPath & "\" & UCase(sPrefix) & "\Sub\" & objFile.Name & """")
151+
end if
124152

125-
If oEnvironment.Item("IsVM") = "False" Then
126-
oLogging.CreateEntry "Installing drivers for the OMNIKEY3x2x Reader on " & sArch & " systems", LogTypeInfo
127-
iRetVal = oUtility.RunWithHeartbeat("""" & oUtility.ScriptDir & "\Configs\HID_OMNIKEY3x2x_" & sArch & "_W7_R1_2_24_27.exe"" /noreboot /S /v/qn")
153+
WScript.Sleep 1000
154+
Next
155+
156+
'Import 90 Meter signing Certs
157+
iRetVal = oUtility.RunWithHeartbeat("""" & oUtility.ScriptDir & "\Certs\certmgr.exe"" -add """ & sCertDirPath & "\90m_CodeSigning_Cert.cer"" -c -s -r localMachine TrustedPublisher")
158+
'iRetVal = oUtility.RunWithHeartbeat("""" & oUtility.ScriptDir & "\Certs\certmgr.exe"" -add """ & sCertDirPath & "\DigiSub.cer"" -c -s -r localMachine Root")
159+
'iRetVal = oUtility.RunWithHeartbeat("""" & oUtility.ScriptDir & "\Certs\certmgr.exe"" -add """ & sCertDirPath & "\DigiRoot.cer"" -c -s -r localMachine Root")
160+
'iRetVal = oUtility.RunWithHeartbeat("certutil.exe -f –addstore TrustedPublisher """ & sCertDirPath & "\90m_CodeSigning_Cert.cer")
161+
iRetVal = oUtility.RunWithHeartbeat("certutil.exe -f -addstore -enterprise -user root """ & sCertDirPath & "\DigiRoot.cer""")
162+
iRetVal = oUtility.RunWithHeartbeat("certutil.exe -f -addstore -enterprise -user root """ & sCertDirPath & "\DigiSub.cer""")
163+
164+
'If oEnvironment.Item("IsVM") = "False" Then
165+
oLogging.CreateEntry "Installing drivers for the OMNIKEY3x2x Reader on " & sArch & " systems", LogTypeInfo
166+
iRetVal = oUtility.RunWithHeartbeat("""" & oUtility.ScriptDir & "\Configs\HID_OMNIKEY3x2x_" & sArch & "_W7_R1_2_24_27.exe"" /noreboot /S /v/qn")
167+
168+
oLogging.CreateEntry "Installing drivers for the SCR3xx Reader on " & sArch & " systems", LogTypeInfo
169+
iRetVal = oUtility.RunWithHeartbeat("""" & oUtility.ScriptDir & "\Configs\SCR3xx_Driver_V4.67\dpinst.exe"" /LM /SA /SW /S")
170+
'End If
128171

129-
oLogging.CreateEntry "Installing drivers for the SCR3xx Reader on " & sArch & " systems", LogTypeInfo
130-
iRetVal = oUtility.RunWithHeartbeat("""" & oUtility.ScriptDir & "\Configs\SCR3xx_Driver_V4.67\dpinst.exe"" /LM /SA /SW /S")
131-
End If
132-
End If
172+
sRegCmd = "cmd.exe /c " & oEnv("SystemRoot") & "\regedit.exe"
173+
sRegCmd = sRegCmd & " /s """ & oUtility.ScriptDir & "\Configs\AFR_Settings.reg"""
174+
'oShell.Run(sRegCmd, 0, true)
175+
oUtility.RunWithConsoleLogging sRegCmd
133176

177+
oFSO.CopyFile (oUtility.ScriptDir & "\Configs\ADMX\90meter CACPIVMD DoD Policies.admx"), ("C:\Windows\PolicyDefinitions\90meter CACPIVMD DoD Policies.admx"), True
178+
oFSO.CopyFile (oUtility.ScriptDir & "\Configs\ADMX\90meter CACPIVMD Policies.admx"), ("C:\Windows\PolicyDefinitions\90meter CACPIVMD Policies.admx"), True
179+
oFSO.CopyFile (oUtility.ScriptDir & "\Configs\ADMX\en-US\90meter CACPIVMD DoD Policies.adml"), ("C:\Windows\PolicyDefinitions\en-US\90meter CACPIVMD DoD Policies.adml"), True
180+
oFSO.CopyFile (oUtility.ScriptDir & "\Configs\ADMX\en-US\90meter CACPIVMD Policies.adml"), ("C:\Windows\PolicyDefinitions\en-US\90meter CACPIVMD Policies.adml"), True
181+
oLogging.CreateEntry "Policy Configurations files were copied to ""C:\Windows\PolicyDefinitions"" folder", LogTypeInfo
182+
134183
oLogging.CreateEntry "Finished " & sInstallName & " installation", LogTypeInfo
135184
Else
136185
ZTIProcess = Failure
@@ -142,6 +191,21 @@ Function ZTIProcess()
142191

143192
End Function
144193

194+
Function DeleteFile(sPath, sName)
195+
196+
On error resume next
197+
Dim strFullPath
198+
strFullPath = sPath & "\" & sName
199+
If oFSO.fileexists(strFullPath) Then
200+
oLogging.CreateEntry "File Found: " & strFullPath, LogTypeInfo
201+
oFSO.DeleteFile strFullPath,0
202+
oLogging.CreateEntry "File Deleted: " & strFullPath, LogTypeInfo
203+
Else
204+
oLogging.CreateEntry "File Not Found: " & strFullPath & ", skipping", LogTypeInfo
205+
End If
206+
207+
End Function
208+
145209
</script>
146210
</job>
147211

0 commit comments

Comments
 (0)