source: EDIS/tags/ed/tracking-autologin-files/Launch_EDIS.bat@ 1240

Last change on this file since 1240 was 1240, checked in by George Lilly, 13 years ago

new version from the VA

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