-
Notifications
You must be signed in to change notification settings - Fork 126
Expand file tree
/
Copy pathVerifyBaseBuild.vbs
More file actions
1316 lines (1081 loc) · 40.5 KB
/
VerifyBaseBuild.vbs
File metadata and controls
1316 lines (1081 loc) · 40.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
'*******************************************************************************
' Program: Install.vbs
' Author: Mick Pletcher
' Date: 09 March 2011
' Modified:
'
' Program: VerifyBaseBuild
' Version: N/A
' Description: This will check for installed programs by verifying the existance
' of the uninstall registry key. The programs will submit the results
' to the log file.
' 1) Define the relative installation path
' 2) Create the Log Folder
' 3) Check if LocalAdming is in Administrators Group
' 4) Check if RDP is enabled
' 5) Check if VBScript RunAs Admin exists
' 6) Microsoft .Net Framework 1.1
' 7) Sun Java Runtime
' 8) Apple Quicktime
' 9) Bentley Prerequisite
' 10) CAD Standards
' 11) Make Directories
' 12) GSP Vision
' 13) GSP Way
' 14) GSP Enterprise Search
' 15) Advertisement Wizard
' 16) Microsoft Office 2007
' 17) Microsoft Office Communicator 2007
' 18) Microsoft Live Meeting
' 19) Seavus Project Viewer
' 20) Autodesk TruView 2011
' 21) Adobe Flash
' 22) Bentley View
' 23) Windows XP Mode
' 24) GSP PDF2
' 25) GS&P Directory File Service Shortcut
' 26) Equitrac
' 27) Check if Remote Registry is enabled
' 28) PDFx
' 29) Bentley XM Folder
' 30) Microsoft DaRT
' 31) Cleanup Global Variables
'*******************************************************************************
Option Explicit
REM Define Constants
CONST LogFile = "VerifyBaseBuild.log"
CONST TempFolder = "c:\temp\"
CONST LogFolderName = "VerifyBaseBuild"
REM Define Global Variables
DIM LogFolder : LogFolder = TempFolder & LogFolderName & "\"
DIM MsgBoxVar : MsgBoxVar = ""
DIM RelativePath : Set RelativePath = Nothing
REM Define the relative installation path
DefineRelativePath()
REM Create the Log Folder
CreateLogFolder()
REM Create Log File
CreateLogFile()
REM Check if LocalAdming is in Administrators Group
CheckLocalAdming()
REM Check RDP is enabled
CheckRDP()
REM Check if VBScript RunAs Admin exists
CheckVBScriptRunAs()
REM Check for Microsoft .Net Framework 1.1
MicrosoftDotNetFramework1DOT1()
REM Check for Sun Java Runtime
SunJavaRuntime()
REM Check for Apple Quicktime
AppleQuicktime()
REM Check for Bentley Prerequisite
BentleyPrerequisites()
REM Check for CAD Standards
CADStandards()
REM Check for Make Directories
MakeDirectories()
REM Check for GSP Vision
GSPVision()
REM Check for GSP Way
GSPWay()
REM Check for GSP Enterprise Search
GSPEnterpriseSearch()
REM Check for Advertisement Wizard
AdvertisementWizard()
REM Check for Microsoft Office 2007
MicrosoftOffice2007()
REM Check for Microsoft Office Communicator 2007
MicrosoftOfficeCommunicator2007()
REM Check for Microsoft Live Meeting
MicrosoftLiveMeeting()
REM Check for Seavus Project Viewer
SeavusProjectViewer()
REM Check for Adobe Flash
AdobeFlash()
REM Check for Bentley View
BentleyView()
REM Check for Windows XP Mode
WindowsXPMode()
REM Check for GSP PDF2
GSPPDF2()
REM Check for GS&P Directory File Service Shortcut
GSPDirectoryFileServiceShortcut()
REM Check for Equitrac
Equitrac()
REM Check if Remote Registry is enabled
CheckRemoteRegistry()
REM Pop up window displaying errors
'DisplayErrors()
REM Cleanup Global Variables
GlobalVariableCleanup()
'*******************************************************************************
'*******************************************************************************
Sub DefineRelativePath()
REM Define Local Objects
DIM oShell : Set oShell = CreateObject("WScript.Shell")
REM Get File Name with full relative path
RelativePath = WScript.ScriptFullName
REM Remove file name, leaving relative path only
RelativePath = Left(RelativePath, InStrRev(RelativePath, "\"))
REM Cleanup Local Variables
Set oShell = Nothing
End Sub
'*******************************************************************************
Sub CreateLogFolder()
REM Define Local Objects
DIM FSO : SET FSO = CreateObject("Scripting.FileSystemObject")
If NOT FSO.FolderExists(TempFolder) then
FSO.CreateFolder(TempFolder)
End If
If NOT FSO.FolderExists(LogFolder) then
FSO.CreateFolder(LogFolder)
End If
REM Cleanup Local Variables
Set FSO = Nothing
End Sub
'*******************************************************************************
Sub CreateLogFile()
REM Define Local Objects
DIM FSO : SET FSO = CreateObject("Scripting.FileSystemObject")
DIM FileTxt : Set FileTxt = FSO.CreateTextFile(LogFolder & LogFile, True)
FileTxt.Close
REM Cleanup Local Variables
Set FSO = Nothing
Set FileTxt = Nothing
End Sub
'*******************************************************************************
Sub CheckLocalAdming()
REM Define Local Constants
CONST strComputer = "."
CONST strUserName = "nash\localadming"
REM Define Local Objects
DIM FSO : SET FSO = CreateObject("Scripting.FileSystemObject")
DIM FileTxt : Set FileTxt = FSO.OpenTextFile(LogFolder & LogFile, 8, True)
DIM Group : Set Group = GetObject("WinNT://" & strComputer & "/Administrators,group")
REM Define Local Variables
DIM aMember : Set aMember = Nothing
For Each aMember In Group.Members
If aMember.Name = strUserName Then
FileTxt.WriteLine("LocalAdming is present")
Else
FileTxt.WriteLine("LocalAdming is missing")
End If
Next
FileTxt.Close
REM Cleanup Local Variables
Set aMember = Nothing
Set FileTxt = Nothing
Set FSO = Nothing
Set Group = Nothing
End Sub
'*******************************************************************************
Sub CheckRDP()
REM Define Local Constants
CONST HKEY_LOCAL_MACHINE = &H80000002
CONST strComputer = "."
REM Define Local Objects
DIM FSO : SET FSO = CreateObject("Scripting.FileSystemObject")
DIM FileTxt : Set FileTxt = FSO.OpenTextFile(LogFolder & LogFile, 8, True)
DIM oReg : Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_
strComputer & "\root\default:StdRegProv")
REM Define Local Variables
DIM dwValue : Set dwValue = Nothing
DIM StdOut : Set StdOut = WScript.StdOut
DIM strKeyPath : strKeyPath = "SYSTEM\CurrentControlSet\Control\Terminal Server"
DIM strValueName : strValueName = "fDenyTSConnections"
On Error Resume Next
oReg.GetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue
If dwValue = 1 Then
FileTxt.WriteLine("Remote Desktop is Currently Disabled")
ElseIf dwValue = 0 then
FileTxt.WriteLine("Remote Desktop is Currently Enabled")
End If
FileTxt.Close
REM Cleanup Local Variables
Set dwValue = Nothing
Set FileTxt = Nothing
Set FSO = Nothing
Set oReg = Nothing
Set StdOut = Nothing
Set StrKeyPath = Nothing
Set StrValueName = Nothing
End Sub
'*******************************************************************************
Sub CheckVBScriptRunAs()
REM Define Local Constants
CONST HKLM = &H80000002
CONST strComputer = "."
REM Define Local Objects
DIM FSO : SET FSO = CreateObject("Scripting.FileSystemObject")
DIM FileTxt : Set FileTxt = FSO.OpenTextFile(LogFolder & LogFile, 8, True)
DIM objRegistry : Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
REM Define Local Variables
DIM dwValue : Set dwValue = Nothing
DIM strKeyPath : strKeyPath = "SOFTWARE\Classes\VBSFile\Shell\runas\Command"
DIM strValueName : strValueName = ""
objRegistry.GetStringValue HKLM,strKeyPath,strValueName,dwValue
If IsNull(dwValue) Then
FileTxt.WriteLine("VBScript RunAs key does NOT exist")
Else
FileTxt.WriteLine("VBScript RunAs key EXISTS")
End If
FileTxt.Close
REM Cleanup Local Variables
Set dwValue = Nothing
Set FileTxt = Nothing
Set FSO = Nothing
Set objRegistry = Nothing
Set strKeyPath = Nothing
Set strValueName = Nothing
End Sub
'*******************************************************************************
Sub MicrosoftDotNetFramework1DOT1()
REM Define Local Objects
DIM FSO : SET FSO = CreateObject("Scripting.FileSystemObject")
DIM oShell : SET oShell = CreateObject("Wscript.Shell")
DIM FileTxt : Set FileTxt = FSO.OpenTextFile(LogFolder & LogFile, 8, True)
REM Define Local Variables
DIM Directory : Directory = "C:\Windows\Microsoft.NET\Framework\v1.1.4322"
DIM FolderTest : Set FolderTest = Nothing
DIM KeyTest : Set KeyTest = Nothing
DIM RegKey : RegKey = "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{CB2F7EDD-9D1F-43C1-90FC-4F52EAE172A1}\"
DIM Program : Program = "Microsoft .Net Framework 1.1"
DIM ProgTest : Set ProgTest = Nothing
DIM Output : Output = Program & Chr(32) & "=" & Chr(32)
KeyTest = KeyExists(RegKey)
FolderTest = DirExists(Directory)
If (KeyTest = True) AND (FolderTest = True) then
ProgTest = True
Else
ProgTest = False
End If
FileTxt.WriteLine(Output & ProgTest)
If ProgTest = False Then
MsgBoxVar = MsgBoxVar & OutPut & ProgTest & Chr(13)
End If
FileTxt.Close
REM Cleanup Local Variables
Set Directory = Nothing
Set FileTxt = Nothing
Set FolderTest = Nothing
Set FSO = Nothing
Set KeyTest = Nothing
Set oShell = Nothing
Set Output = Nothing
Set Program = Nothing
Set ProgTest = Nothing
Set RegKey = Nothing
End Sub
'*******************************************************************************
Sub SunJavaRuntime()
REM Define Local Objects
DIM FSO : SET FSO = CreateObject("Scripting.FileSystemObject")
DIM oShell : SET oShell = CreateObject("Wscript.Shell")
DIM FileTxt : Set FileTxt = FSO.OpenTextFile(LogFolder & LogFile, 8, True)
REM Define Local Variables
DIM File : File = "C:\Program Files (x86)\Java\jre6\bin\java.exe"
DIM FileTest : Set FileTest = Nothing
DIM KeyTest : Set KeyTest = Nothing
DIM RegKey : RegKey = "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{26A24AE4-039D-4CA4-87B4-2F83216024FF}\"
DIM Program : Program = "Java(TM) 6 Update 24"
DIM ProgTest : Set ProgTest = Nothing
DIM Output : Output = Program & Chr(32) & "=" & Chr(32)
KeyTest = KeyExists(RegKey)
FileTest = FileExists(File)
If (KeyTest = True) AND (FileTest = True) then
ProgTest = True
Else
ProgTest = False
End If
FileTxt.WriteLine(Output & ProgTest)
If ProgTest = False Then
MsgBoxVar = MsgBoxVar & OutPut & ProgTest & Chr(13)
End If
FileTxt.Close
REM Cleanup Local Variables
Set File = Nothing
Set FileTxt = Nothing
Set FileTest = Nothing
Set FSO = Nothing
Set KeyTest = Nothing
Set oShell = Nothing
Set Output = Nothing
Set Program = Nothing
Set ProgTest = Nothing
Set RegKey = Nothing
End Sub
'*******************************************************************************
Sub AppleQuicktime()
REM Define Local Objects
DIM FSO : SET FSO = CreateObject("Scripting.FileSystemObject")
DIM oShell : SET oShell = CreateObject("Wscript.Shell")
DIM FileTxt : Set FileTxt = FSO.OpenTextFile(LogFolder & LogFile, 8, True)
REM Define Local Variables
DIM File : File = "C:\Program Files (x86)\QuickTime\QuickTimePlayer.exe"
DIM FileTest : Set FileTest = Nothing
DIM KeyTest : Set KeyTest = Nothing
DIM RegKey : RegKey = "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{57752979-A1C9-4C02-856B-FBB27AC4E02C}\"
DIM Program : Program = "Quicktime"
DIM ProgTest : Set ProgTest = Nothing
DIM Output : Output = Program & Chr(32) & "=" & Chr(32)
KeyTest = KeyExists(RegKey)
FileTest = FileExists(File)
If (KeyTest = True) AND (FileTest = True) then
ProgTest = True
Else
ProgTest = False
End If
FileTxt.WriteLine(Output & ProgTest)
If ProgTest = False Then
MsgBoxVar = MsgBoxVar & OutPut & ProgTest & Chr(13)
End If
FileTxt.Close
REM Cleanup Local Variables
Set File = Nothing
Set FileTxt = Nothing
Set FileTest = Nothing
Set FSO = Nothing
Set KeyTest = Nothing
Set oShell = Nothing
Set Output = Nothing
Set Program = Nothing
Set ProgTest = Nothing
Set RegKey = Nothing
End Sub
'*******************************************************************************
Sub BentleyPrerequisites()
REM Define Local Objects
DIM FSO : SET FSO = CreateObject("Scripting.FileSystemObject")
DIM oShell : SET oShell = CreateObject("Wscript.Shell")
DIM FileTxt : Set FileTxt = FSO.OpenTextFile(LogFolder & LogFile, 8, True)
REM Define Local Variables
DIM KeyTest1 : Set KeyTest1 = Nothing
DIM KeyTest2 : Set KeyTest2 = Nothing
DIM KeyTest3 : Set KeyTest3 = Nothing
DIM RegKey1 : RegKey1 = "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{FB97C283-1F3C-42D4-AE01-ADC1DC12F774}\"
DIM Program1 : Program1 = "Microsoft Visual Basic for Applications core"
DIM RegKey2 : RegKey2 = "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{A13D16C5-38A9-4D96-9647-59FCCAB12A85}\"
DIM Program2 : Program2 = "Microsoft Visual Basic for Applications localized"
DIM RegKey3 : RegKey3 = "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{2EA870FA-585F-4187-903D-CB9FFD21E2E0}"
DIM Program3 : Program3 = "DHTML Editing Component for Applications"
DIM Program : Program = "Bentley Prerequisites"
DIM Output : Output = Program & Chr(32) & "=" & Chr(32)
KeyTest1 = KeyExists(RegKey1)
KeyTest2 = KeyExists(RegKey2)
KeyTest3 = KeyExists(RegKey3)
If KeyTest1 = True Then
If KeyTest2 = True Then
If KeyTest3 = True Then
FileTxt.WriteLine(Output & KeyTest3)
Else
FileTxt.WriteLine(Output & "False")
MsgBoxVar = OutPut & "False" & Chr(13)
End If
End If
End If
FileTxt.Close
REM Cleanup Local Variables
Set FileTxt = Nothing
Set FSO = Nothing
Set KeyTest1 = Nothing
Set KeyTest2 = Nothing
Set KeyTest3 = Nothing
Set oShell = Nothing
Set Output = Nothing
Set Program = Nothing
Set Program1 = Nothing
Set Program2 = Nothing
Set Program3 = Nothing
Set RegKey1 = Nothing
Set RegKey2 = Nothing
Set RegKey3 = Nothing
End Sub
'*******************************************************************************
Sub CADStandards()
REM Define Local Objects
DIM FSO : SET FSO = CreateObject("Scripting.FileSystemObject")
DIM FileTxt : Set FileTxt = FSO.OpenTextFile(LogFolder & LogFile, 8, True)
REM Define Local Variables
DIM Directory : Directory = "C:\cad_stds\"
DIM FolderTest : Set FolderTest = Nothing
DIM Program : Program = "CAD_STDS"
DIM Output : Output = Program & Chr(32) & "=" & Chr(32)
FolderTest = DirExists(Directory)
FileTxt.WriteLine(Output & FolderTest)
If FolderTest = False Then
MsgBoxVar = MsgBoxVar & OutPut & FolderTest & Chr(13)
End If
FileTxt.Close
REM Cleanup Local Variables
Set Directory = Nothing
Set FileTxt = Nothing
Set FolderTest = Nothing
Set FSO = Nothing
Set Program = Nothing
Set Output = Nothing
End Sub
'*******************************************************************************
Sub MakeDirectories()
REM Define Local Objects
DIM FSO : SET FSO = CreateObject("Scripting.FileSystemObject")
DIM FileTxt : Set FileTxt = FSO.OpenTextFile(LogFolder & LogFile, 8, True)
REM Define Local Variables
DIM CADSTDSFolder : CADSTDSFolder = "C:\cad_stds\"
DIM fldrGSP : fldrGSP = "c:\Program Files\GSP\"
DIM fldrDocProp : fldrDocProp = "c:\Program Files\GSP\DocProp\"
DIM fldrDGN : fldrDGN = "c:\DGN\"
DIM fldrTmp : fldrTmp = "c:\tmp\"
DIM fldrTemp : fldrTemp = "c:\Temp\"
DIM fldrBackup : fldrBackup = "c:\backup\"
DIM fldrProgGSP : fldrProgGSP = "c:\ProgramGSP\"
DIM FolderTest : Set FolderTest = Nothing
DIM Output : Output = Chr(32) & "=" & Chr(32)
FolderTest = DirExists(CADSTDSFolder)
FileTxt.WriteLine(CADSTDSFolder & Output & FolderTest)
If FolderTest = False Then
MsgBoxVar = MsgBoxVar & CADSTDSFolder & OutPut & FolderTest & Chr(13)
End If
FolderTest = DirExists(fldrGSP)
FileTxt.WriteLine(fldrGSP & Output & FolderTest)
If FolderTest = False Then
MsgBoxVar = MsgBoxVar & fldrGSP & OutPut & FolderTest & Chr(13)
End If
FolderTest = DirExists(fldrDocProp)
FileTxt.WriteLine(fldrDocProp & Output & FolderTest)
If FolderTest = False Then
MsgBoxVar = MsgBoxVar & fldrDocProp & OutPut & FolderTest & Chr(13)
End If
FolderTest = DirExists(fldrDGN)
FileTxt.WriteLine(fldrDGN & Output & FolderTest)
If FolderTest = False Then
MsgBoxVar = MsgBoxVar & fldrDGN & OutPut & FolderTest & Chr(13)
End If
FolderTest = DirExists(fldrTmp)
FileTxt.WriteLine(fldrTmp & Output & FolderTest)
If FolderTest = False Then
MsgBoxVar = MsgBoxVar & fldrTmp & OutPut & FolderTest & Chr(13)
End If
FolderTest = DirExists(fldrTemp)
FileTxt.WriteLine(fldrTemp & Output & FolderTest)
If FolderTest = False Then
MsgBoxVar = MsgBoxVar & fldrTemp & OutPut & FolderTest & Chr(13)
End If
FolderTest = DirExists(fldrBackup)
FileTxt.WriteLine(fldrBackup & Output & FolderTest)
If FolderTest = False Then
MsgBoxVar = MsgBoxVar & fldrBackup & OutPut & FolderTest & Chr(13)
End If
FolderTest = DirExists(fldrProgGSP)
FileTxt.WriteLine(fldrProgGSP & Output & FolderTest)
If FolderTest = False Then
MsgBoxVar = MsgBoxVar & fldrProgGSP & OutPut & FolderTest & Chr(13)
End If
FileTxt.Close
REM Cleanup Local Variables
Set CADSTDSFolder = Nothing
Set FileTxt = Nothing
Set fldrBackup = Nothing
Set fldrDocProp = Nothing
Set fldrDGN = Nothing
Set fldrGSP = Nothing
Set fldrProgGSP = Nothing
Set fldrTemp = Nothing
Set fldrTmp = Nothing
Set FSO = Nothing
Set Output = Nothing
End Sub
'*******************************************************************************
Sub GSPVision()
REM Define Local Objects
DIM FSO : SET FSO = CreateObject("Scripting.FileSystemObject")
DIM FileTxt : Set FileTxt = FSO.OpenTextFile(LogFolder & LogFile, 8, True)
REM Define Local Variables
DIM File : File = "C:\Users\Public\Desktop\Vision.lnk"
DIM FileTest : Set FileTest = Nothing
DIM Program : Program = "GS&P Vision"
DIM Output : Output = Program & Chr(32) & "=" & Chr(32)
FileTest = FileExists(File)
FileTxt.WriteLine(Output & FileTest)
If FileTest = False Then
MsgBoxVar = MsgBoxVar & OutPut & FileTest & Chr(13)
End If
FileTxt.Close
REM Cleanup Local Variables
Set File = Nothing
Set FileTest = Nothing
Set FileTxt = Nothing
Set FSO = Nothing
Set Program = Nothing
Set Output = Nothing
End Sub
'*******************************************************************************
Sub GSPWay()
REM Define Local Objects
DIM FSO : SET FSO = CreateObject("Scripting.FileSystemObject")
DIM FileTxt : Set FileTxt = FSO.OpenTextFile(LogFolder & LogFile, 8, True)
REM Define Local Variables
DIM File : File = "C:\Users\Public\Desktop\GSPway.lnk"
DIM FileTest : Set FileTest = Nothing
DIM Program : Program = "GS&P Way"
DIM Output : Output = Program & Chr(32) & "=" & Chr(32)
FileTest = FileExists(File)
FileTxt.WriteLine(Output & FileTest)
If FileTest = False Then
MsgBoxVar = MsgBoxVar & OutPut & FileTest & Chr(13)
End If
FileTxt.Close
REM Cleanup Local Variables
Set File = Nothing
Set FileTest = Nothing
Set FileTxt = Nothing
Set FSO = Nothing
Set Program = Nothing
Set Output = Nothing
End Sub
'*******************************************************************************
Sub GSPEnterpriseSearch()
REM Define Local Objects
DIM FSO : SET FSO = CreateObject("Scripting.FileSystemObject")
DIM FileTxt : Set FileTxt = FSO.OpenTextFile(LogFolder & LogFile, 8, True)
REM Define Local Variables
DIM File : File = "C:\Users\Public\Desktop\Enterprise Search.LNK"
DIM FileTest : Set FileTest = Nothing
DIM Program : Program = "GS&P Enterprise Search"
DIM Output : Output = Program & Chr(32) & "=" & Chr(32)
FileTest = FileExists(File)
FileTxt.WriteLine(Output & FileTest)
If FileTest = False Then
MsgBoxVar = MsgBoxVar & OutPut & FileTest & Chr(13)
End If
FileTxt.Close
REM Cleanup Local Variables
Set File = Nothing
Set FileTest = Nothing
Set FileTxt = Nothing
Set FSO = Nothing
Set Program = Nothing
Set Output = Nothing
End Sub
'*******************************************************************************
Sub AdvertisementWizard()
REM Define Local Objects
DIM FSO : SET FSO = CreateObject("Scripting.FileSystemObject")
DIM FileTxt : Set FileTxt = FSO.OpenTextFile(LogFolder & LogFile, 8, True)
REM Define Local Variables
DIM File : File = "C:\Users\Public\Desktop\GSP Advertised Programs.lnk"
DIM FileTest : Set FileTest = Nothing
DIM Program : Program = "GS&P Advertised Programs"
DIM Output : Output = Program & Chr(32) & "=" & Chr(32)
FileTest = FileExists(File)
FileTxt.WriteLine(Output & FileTest)
If FileTest = False Then
MsgBoxVar = MsgBoxVar & OutPut & FileTest & Chr(13)
End If
FileTxt.Close
REM Cleanup Local Variables
Set File = Nothing
Set FileTest = Nothing
Set FileTxt = Nothing
Set FSO = Nothing
Set Program = Nothing
Set Output = Nothing
End Sub
'*******************************************************************************
Sub MicrosoftOffice2007()
REM Define Local Objects
DIM FSO : SET FSO = CreateObject("Scripting.FileSystemObject")
DIM oShell : SET oShell = CreateObject("Wscript.Shell")
DIM FileTxt : Set FileTxt = FSO.OpenTextFile(LogFolder & LogFile, 8, True)
REM Define Local Variables
DIM File : File = "C:\Program Files (x86)\Microsoft Office\Office12\OUTLOOK.EXE"
DIM FileTest : Set FileTest = Nothing
DIM KeyTest : Set KeyTest = Nothing
DIM RegKey : RegKey = "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{90120000-0011-0000-0000-0000000FF1CE}\"
DIM Program : Program = "Office 2007"
DIM ProgTest : Set ProgTest = Nothing
DIM Output : Output = Program & Chr(32) & "=" & Chr(32)
KeyTest = KeyExists(RegKey)
FileTest = FileExists(File)
If (KeyTest = True) AND (FileTest = True) then
ProgTest = True
Else
ProgTest = False
End If
FileTxt.WriteLine(Output & ProgTest)
If ProgTest = False Then
MsgBoxVar = MsgBoxVar & OutPut & ProgTest & Chr(13)
End If
FileTxt.Close
REM Cleanup Local Variables
Set File = Nothing
Set FileTxt = Nothing
Set FileTest = Nothing
Set FSO = Nothing
Set KeyTest = Nothing
Set oShell = Nothing
Set Output = Nothing
Set Program = Nothing
Set ProgTest = Nothing
Set RegKey = Nothing
End Sub
'*******************************************************************************
Sub MicrosoftOfficeCommunicator2007()
REM Define Local Objects
DIM FSO : SET FSO = CreateObject("Scripting.FileSystemObject")
DIM oShell : SET oShell = CreateObject("Wscript.Shell")
DIM FileTxt : Set FileTxt = FSO.OpenTextFile(LogFolder & LogFile, 8, True)
REM Define Local Variables
DIM File : File = "C:\Program Files (x86)\Microsoft Office Communicator\communicator.exe"
DIM FileTest : Set FileTest = Nothing
DIM KeyTest : Set KeyTest = Nothing
DIM RegKey : RegKey = "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{0D1CBBB9-F4A8-45B6-95E7-202BA61D7AF4}\"
DIM Program : Program = "Communicator 2007"
DIM ProgTest : Set ProgTest = Nothing
DIM Output : Output = Program & Chr(32) & "=" & Chr(32)
KeyTest = KeyExists(RegKey)
FileTest = FileExists(File)
If (KeyTest = True) AND (FileTest = True) then
ProgTest = True
Else
ProgTest = False
End If
If ProgTest = False Then
MsgBoxVar = MsgBoxVar & OutPut & ProgTest & Chr(13)
End If
FileTxt.WriteLine(Output & ProgTest)
FileTxt.Close
REM Cleanup Local Variables
Set File = Nothing
Set FileTxt = Nothing
Set FileTest = Nothing
Set FSO = Nothing
Set KeyTest = Nothing
Set oShell = Nothing
Set Output = Nothing
Set Program = Nothing
Set ProgTest = Nothing
Set RegKey = Nothing
End Sub
'*******************************************************************************
Sub MicrosoftLiveMeeting()
REM Define Local Objects
DIM FSO : SET FSO = CreateObject("Scripting.FileSystemObject")
DIM oShell : SET oShell = CreateObject("Wscript.Shell")
DIM FileTxt : Set FileTxt = FSO.OpenTextFile(LogFolder & LogFile, 8, True)
REM Define Local Variables
DIM File : File = "C:\Program Files (x86)\Microsoft Office\Live Meeting 8\Console\PWConsole.exe"
DIM FileTest : Set FileTest = Nothing
DIM KeyTest : Set KeyTest = Nothing
DIM RegKey : RegKey = "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{AC388C78-2619-452C-BFBE-FABCC3194387}\"
DIM Program : Program = "Live Meeting"
DIM ProgTest : Set ProgTest = Nothing
DIM Output : Output = Program & Chr(32) & "=" & Chr(32)
KeyTest = KeyExists(RegKey)
FileTest = FileExists(File)
If (KeyTest = True) AND (FileTest = True) then
ProgTest = True
Else
ProgTest = False
End If
FileTxt.WriteLine(Output & ProgTest)
If ProgTest = False Then
MsgBoxVar = MsgBoxVar & OutPut & ProgTest & Chr(13)
End If
FileTxt.Close
REM Cleanup Local Variables
Set File = Nothing
Set FileTxt = Nothing
Set FileTest = Nothing
Set FSO = Nothing
Set KeyTest = Nothing
Set oShell = Nothing
Set Output = Nothing
Set Program = Nothing
Set ProgTest = Nothing
Set RegKey = Nothing
End Sub
'*******************************************************************************
Sub SeavusProjectViewer()
REM Define Local Objects
DIM FSO : SET FSO = CreateObject("Scripting.FileSystemObject")
DIM oShell : SET oShell = CreateObject("Wscript.Shell")
DIM FileTxt : Set FileTxt = FSO.OpenTextFile(LogFolder & LogFile, 8, True)
REM Define Local Variables
DIM File : File = "C:\Program Files (x86)\Seavus\Seavus Project Viewer\SeavusProjectViewer.exe"
DIM FileTest : Set FileTest = Nothing
DIM KeyTest : Set KeyTest = Nothing
DIM RegKey : RegKey = "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{EC852FE4-9F93-4152-ADB8-916623FB45AA}\"
DIM Program : Program = "Seavus Project Viewer"
DIM ProgTest : Set ProgTest = Nothing
DIM Output : Output = Program & Chr(32) & "=" & Chr(32)
KeyTest = KeyExists(RegKey)
FileTest = FileExists(File)
If (KeyTest = True) AND (FileTest = True) then
ProgTest = True
Else
ProgTest = False
End If
FileTxt.WriteLine(Output & ProgTest)
If ProgTest = False Then
MsgBoxVar = MsgBoxVar & OutPut & ProgTest & Chr(13)
End If
FileTxt.Close
REM Cleanup Local Variables
Set File = Nothing
Set FileTxt = Nothing
Set FileTest = Nothing
Set FSO = Nothing
Set KeyTest = Nothing
Set oShell = Nothing
Set Output = Nothing
Set Program = Nothing
Set ProgTest = Nothing
Set RegKey = Nothing
End Sub
'*******************************************************************************
Sub AdobeFlash()
REM Define Local Objects
DIM FSO : SET FSO = CreateObject("Scripting.FileSystemObject")
DIM oShell : SET oShell = CreateObject("Wscript.Shell")
DIM FileTxt : Set FileTxt = FSO.OpenTextFile(LogFolder & LogFile, 8, True)
REM Define Local Variables
DIM KeyTest : Set KeyTest = Nothing
DIM RegKey : RegKey = "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{148D9D03-5D23-4D4F-B5D0-BA6030C45DCF}\"
DIM Program : Program = "Adobe Flash"
DIM Output : Output = Program & Chr(32) & "=" & Chr(32)
KeyTest = KeyExists(RegKey)
FileTxt.WriteLine(Output & KeyTest)
If KeyTest = False Then
MsgBoxVar = MsgBoxVar & OutPut & KeyTest & Chr(13)
End If
FileTxt.Close
REM Cleanup Local Variables
Set FileTxt = Nothing
Set FSO = Nothing
Set KeyTest = Nothing
Set oShell = Nothing
Set Output = Nothing
Set Program = Nothing
Set RegKey = Nothing
End Sub
'*******************************************************************************
Sub BentleyView()
REM Define Local Objects
DIM FSO : SET FSO = CreateObject("Scripting.FileSystemObject")
DIM oShell : SET oShell = CreateObject("Wscript.Shell")
DIM FileTxt : Set FileTxt = FSO.OpenTextFile(LogFolder & LogFile, 8, True)
REM Define Local Variables
DIM File : File = "C:\Program Files (x86)\Bentley\View V8i\View\BentleyView.exe"
DIM FileTest : Set FileTest = Nothing
DIM KeyTest : Set KeyTest = Nothing
DIM RegKey : RegKey = "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{87D6CF41-5817-4725-8AB2-90E6B20EDE02}\"
DIM Program : Program = "Bentley View"
DIM ProgTest : Set ProgTest = Nothing
DIM Output : Output = Program & Chr(32) & "=" & Chr(32)
KeyTest = KeyExists(RegKey)
FileTest = FileExists(File)
If (KeyTest = True) AND (FileTest = True) then
ProgTest = True
Else
ProgTest = False
End If
FileTxt.WriteLine(Output & ProgTest)
If ProgTest = False Then
MsgBoxVar = MsgBoxVar & OutPut & ProgTest & Chr(13)
End If
FileTxt.Close
REM Cleanup Local Variables
Set File = Nothing
Set FileTxt = Nothing
Set FileTest = Nothing
Set FSO = Nothing
Set KeyTest = Nothing
Set oShell = Nothing
Set Output = Nothing
Set Program = Nothing
Set ProgTest = Nothing
Set RegKey = Nothing
End Sub
'*******************************************************************************
Sub WindowsXPMode()
REM Define Local Objects
DIM FSO : SET FSO = CreateObject("Scripting.FileSystemObject")
DIM oShell : SET oShell = CreateObject("Wscript.Shell")
DIM FileTxt : Set FileTxt = FSO.OpenTextFile(LogFolder & LogFile, 8, True)
REM Define Local Variables
DIM File : File = "C:\Program Files\Windows XP Mode\Windows XP Mode base.vhd"
DIM FileTest : Set FileTest = Nothing
DIM KeyTest : Set KeyTest = Nothing
DIM RegKey : RegKey = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1374CC63-B520-4f3f-98E8-E9020BF01CFF}\"
DIM Program : Program = "Windows XP Mode"
DIM ProgTest : Set ProgTest = Nothing
DIM Output : Output = Program & Chr(32) & "=" & Chr(32)
KeyTest = KeyExists(RegKey)
FileTest = FileExists(File)
If (KeyTest = True) AND (FileTest = True) then
ProgTest = True
Else
ProgTest = False
End If
FileTxt.WriteLine(Output & ProgTest)
If ProgTest = False Then
MsgBoxVar = MsgBoxVar & OutPut & ProgTest & Chr(13)
End If
FileTxt.Close
REM Cleanup Local Variables
Set File = Nothing
Set FileTxt = Nothing
Set FileTest = Nothing
Set FSO = Nothing
Set KeyTest = Nothing
Set oShell = Nothing
Set Output = Nothing
Set Program = Nothing
Set ProgTest = Nothing