1 | ECHO OFF
|
---|
2 | CLS
|
---|
3 |
|
---|
4 |
|
---|
5 | SET COMP_NAME=%computername%
|
---|
6 | SET TEMP_CERT_NAME=EdisClientCert.tmp
|
---|
7 |
|
---|
8 |
|
---|
9 | REM copy the certificate from system store to temp file
|
---|
10 | ECHO Copying %COMP_NAME% certificate from the system store to temp file ((%TEMP_CERT_NAME%))...."
|
---|
11 | certmgr -add -c -s -r localMachine -n %COMP_NAME% my -r currentUser %TEMP_CERT_NAME%
|
---|
12 | ping -n 2 127.0.0.1 >NUL
|
---|
13 | IF EXIST %TEMP_CERT_NAME% GOTO FILECREATED
|
---|
14 | GOTO EXITPROCESS
|
---|
15 |
|
---|
16 | :EXITPROCESS
|
---|
17 | ECHO Copying certificate process FAILED...
|
---|
18 | ECHO .
|
---|
19 | ECHO A unique certificate with subject name "%COMP_NAME%" does not exist in the machine certificate store..
|
---|
20 | ECHO .
|
---|
21 | ECHO Unable to launch EDIS BigBoard..
|
---|
22 | ECHO Exiting process..
|
---|
23 | ping -n 15 127.0.0.1 >NUL
|
---|
24 | EXIT
|
---|
25 |
|
---|
26 |
|
---|
27 | :FILECREATED
|
---|
28 | ECHO Copy from system store to temp file (%TEMP_CERT_NAME%) SUCCESSFUL
|
---|
29 |
|
---|
30 | REM Clear the user store
|
---|
31 | ECHO Removing any previous certificates from the user store..
|
---|
32 | certmgr -del -all -c -s my
|
---|
33 | ECHO Removal of previous certificates from the user store SUCCESSFUL
|
---|
34 |
|
---|
35 |
|
---|
36 | REM copy the certificate from temp file (%TEMP_CERT_NAME%) to user store
|
---|
37 | ECHO Copying %COMP_NAME% certificate from temp file to user store...
|
---|
38 | certmgr -add -c %TEMP_CERT_NAME% -s -r currentUser my
|
---|
39 | ping -n 2 127.0.0.1 >NUL
|
---|
40 | ECHO Copy from temp file (%TEMP_CERT_NAME%) to user store SUCCESSFUL
|
---|
41 |
|
---|
42 |
|
---|
43 |
|
---|
44 | REM Remove the temporary file if it exists
|
---|
45 | ECHO Removing the tmp file (%TEMP_CERT_NAME%) from the disk...
|
---|
46 | IF EXIST %TEMP_CERT_NAME% DEL %TEMP_CERT_NAME%
|
---|
47 | ECHO Removal of tmp file (%TEMP_CERT_NAME%) from the disk SUCCESSFUL
|
---|
48 |
|
---|
49 | REM STAGING URL https://staging.edis.med.va.gov:8080/bigboard/
|
---|
50 | REM PRODUCTION URL https://vaww.edis.med.va.gov:8080/bigboard
|
---|
51 | REM TESTING URL https://vhaislbll2.vha.med.va.gov:7701/bigboard/
|
---|
52 | REM DEV URL https://vhaislbll2.vha.med.va.gov:7741/bigboard/
|
---|
53 |
|
---|
54 |
|
---|
55 | REM Launch IE in Kiosk Mode pointing to a certain URL
|
---|
56 | ECHO .
|
---|
57 | ECHO Launching IE in Kiosk Mode for EDIS BigBoard, URL is:
|
---|
58 | ECHO https://vaww.edis.med.va.gov:8080/bigboard
|
---|
59 | ping -n 5 127.0.0.1 >NUL
|
---|
60 | START iexplore.exe -k https://vaww.edis.med.va.gov:8080/bigboard
|
---|
61 |
|
---|
62 |
|
---|
63 | ECHO ON
|
---|