CopyPastehas never been so tasty!

BATCH

by anonymous

  • 0
  • 0
  • 0
1092 views

PING -n 10 10.45.200.20
NET USE I: /DELETE
NET USE J: /DELETE
NET USE K: /DELETE
NET USE L: /DELETE
NET USE M: /DELETE
NET USE N: /DELETE
NET USE O: /DELETE
NET USE P: /DELETE
NET USE Q: /DELETE
NET USE R: /DELETE
NET USE S: /DELETE
NET USE T: /DELETE
NET USE U: /DELETE
NET USE V: /DELETE
NET USE W: /DELETE
NET USE X: /DELETE
NET USE Y: /DELETE
NET USE Z: /DELETE

NET USE I: \\CPD-DC1\Investigations /persistent:yes
NET USE J: \\CPD-DC1\Court /persistent:yes
NET USE K: \\CPD-DC1\MSGSYSTEMS /persistent:yes
NET USE M: \\CPD-DC1\Administration /persistent:yes
NET USE T: \\CPDSVR3\DTF_Archives /persistent:yes
NET USE U: \\CPD-DC1\USERS /persistent:yes
NET USE V: \\CPDSVR3\VIDEO_Archives /persistent:yes
NET USE X: \\CPD-DC1\CPD /persistent:yes
NET USE Y: \\CPD-DC1\DTF /persistent:yes
NET USE Z: \\CPD-DC1\SCRIPTS$ /persistent:yes


----------------REMOVE THIS AFTER 45 DAYS--------------------------------
del "C:\Temp\Maps.txt"
del "C:\Temp\Training.txt"
rmdir "C:\Users\%username%\Desktop\CPD Resources" /s /q
----------------REMOVE THIS AFTER 45 DAYS--------------------------------


REM ---------- BEGIN WINDOWS 7 VERIZON WIRELESS UPDATES -----
COPY Z:\Verizon\Network.xml "C:\Program Files (x86)\Verizon Wireless\VZAccess Manager\System\."
REM ---------- END  WINDOWS 7 VERIZON WIRELESS UPDATES -----


REM ********** BEGIN WINDOWS XP VERIZON WIRELESS UPDATES *****
COPY Z:\Verizon\Network.xml "C:\Program Files\Verizon Wireless\VZAccess Manager\System\."
REM ********** END WINDOWS XP VERIZON WIRELESS UPDATES *****


REM ---------- BEGIN WINDOWS 7 VPN UPDATES ----------------------
COPY Z:\Astaro\invis.vbs "C:\Program Files (x86)\Astaro\Astaro SSL VPN Client\config\."
COPY Z:\Astaro\launch.bat "C:\Program Files (x86)\Astaro\Astaro SSL VPN Client\config\."
attrib -R "C:\Program Files (x86)\Astaro\Astaro SSL VPN Client\config\%username%@97.67.254.90\%username%@97.67.254.90.ovpn"
COPY Z:\Astaro\killopvpn.bat "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\."
COPY /Y Z:\Astaro\ovpn.txt "C:\Program Files (x86)\Astaro\Astaro SSL VPN Client\config\%username%@97.67.254.90\%username%@97.67.254.90.ovpn"
mkdir C:\Temp
COPY /Y Z:\Astaro\n3.txt "C:\Temp\n3.txt"
echo IF ERRORLEVEL 1 start "" "C:\Program Files (x86)\Astaro\Astaro SSL VPN Client\bin\openvpn-gui.exe" --connect %username%@97.67.254.90.ovpn >> C:\Temp\n3.txt
echo exit >> C:\Temp\n3.txt
COPY /Y C:\Temp\n3.txt "C:\Program Files (x86)\Astaro\Astaro SSL VPN Client\Config\startvpn.bat"
rem IF NOT EXIST "C:\Program Files (x86)\Astaro\Astaro SSL VPN Client\config\startvpn.tmp" start Z:\Astaro\test1.bat
REM ---------- END WINDOWS 7 VPN UPDATES ----------------------


REM ********** BEGIN WINDOWS XP VPN UPDATEs *****
COPY Z:\Astaro\invis.vbs "C:\Program Files\Astaro\Astaro SSL VPN Client\config\."
COPY Z:\Astaro\launch.bat "C:\Program Files\Astaro\Astaro SSL VPN Client\config\."
attrib -R "C:\Program Files\Astaro\Astaro SSL VPN Client\config\%username%@97.67.254.90\%username%@97.67.254.90.ovpn"
COPY Z:\Astaro\killopvpn.bat "C:\Documents and Settings\All Users\Start Menu\Programs\Startup\."
COPY /Y Z:\Astaro\ovpn.txt "C:\Program Files\Astaro\Astaro SSL VPN Client\config\%username%@97.67.254.90\%username%@97.67.254.90.ovpn"

mkdir C:\Temp
COPY /Y Z:\Astaro\n3.txt "C:\Temp\n3.txt"
echo IF ERRORLEVEL 1 start "" "C:\Program Files\Astaro\Astaro SSL VPN Client\bin\openvpn-gui.exe" --connect %username%@97.67.254.90.ovpn >> C:\Temp\n3.txt
echo exit >> C:\Temp\n3.txt
COPY /Y C:\Temp\n3.txt "C:\Program Files\Astaro\Astaro SSL VPN Client\Config\startvpn.bat"
rem IF NOT EXIST "C:\Program Files\Astaro\Astaro SSL VPN Client\config\startvpn.tmp" start Z:\Astaro\test1.bat
REM ********** END WINDOWS XP VPN UPDATES *****


REM ---------- BEGIN WINDOWS 7 MDIS UPDATES ------------------
del "C:\Program Files (x86)\Southern Software\Southern Software MDIS\-.tglcfg"

REM XCOPY Z:\Maps "C:\Program Files (x86)\Southern Software\Southern Software MDIS\Maps" /s /I /Y
IF NOT EXIST "C:\Temp\Maps.txt" XCOPY Z:\Maps "C:\Program Files (x86)\Southern Software\Southern Software MDIS\Maps" /s /I /Y
COPY Z:\Verizon\Network.xml "C:\Temp\Maps.txt"
REM ---------- END WINDOWS 7 MDIS UPDATES ------------------


REM ********** BEGIN WINDOWS XP MDIS UPDATES  ***
del "C:\Program Files\Southern Software\Southern Software MDIS\*.tglcfg"

REM XCOPY Z:\Maps "C:\Program Files\Southern Software\Southern Software MDIS\Maps" /s /I /Y
IF NOT EXIST "C:\Temp\Maps.txt" XCOPY Z:\Maps "C:\Program Files\Southern Software\Southern Software MDIS\Maps" /s /I /Y
COPY Z:\Verizon\Network.xml "C:\Temp\Maps.txt"
REM ********** END WINDOWS XP MDIS UPDATES  *****


REM ---------- BEGIN WINDOWS 7 CAPS MOVE UPDATES -----
del "C:\ProgramData\CRDL\MOVE\MOVE_LOC.sqlite"
REM ---------- END WINDOWS 7 CAPS MOVE UPDATES ------


REM ********** BEGIN WINDOWS XP CAPS MOVE UPDATES  *****
del "C:\Documents and Settings\All Users\Application Data\CRDL\MOVE\MOVE_LOC.sqlite"
REM ********** END WINDOWS XP CAPS MOVE UPDATES  *****


REM ----------- BEGIN WINDOWS 7 LOCAL INFORMATION ------------------
XCOPY X:\CPD\-.- "C:\Users\%username%\Desktop\CPD Resources" /s /I /Y/c

REM XCOPY X:\Training "C:\Users\%username%\Desktop\CPD Resources\Training" /s /I /Y
IF NOT EXIST "C:\Temp\Training.txt" XCOPY X:\Training "C:\Users\%username%\Desktop\CPD Resources\Training" /s /I /Y
COPY Z:\Verizon\Network.xml "C:\Temp\Training.txt"
REM -----------END WINDOWS 7 LOCAL INFORMATION --------------


REM ***********BEGIN WINDOWS XP LOCAL INFORMATION ******************
XCOPY X:\CPD\*.* "C:\Documents and Settings\All Users\Desktop\CPD Resources" /s /I /Y/c

REM XCOPY X:\Training "C:\Documents and Settings\All Users\Desktop\CPD Resources\Training" /s /I /Y
IF NOT EXIST "C:\Temp\Training.txt" XCOPY X:\Training "C:\Documents and Settings\All Users\Desktop\CPD Resources\Training" /s /I /Y
COPY Z:\Verizon\Network.xml "C:\Temp\Training.txt"
REM ***********END WINDOWS XP LOCAL INFORMATION **************


REM ---------- BEGIN WINDOWS 7 DESKTOP BACKGROUND ENFORCE -----
COPY /y /v \\CPD-DC1\SCRIPTS$\Wallpaper\admin_wp\wallpaper.bmp %systemroot%\wallpaper.bmp
set __COMPAT_LAYER=RunAsInvoker
start regedit.exe /s \\CPD-DC1\SCRIPTS$\Wallpaper\wallpaper.reg
REM ---------- END WINDOWS 7 DESKTOP BACKGROUND ENFORCE -----


REM  ********** BEGIN WINDOWS XP DESKTOP BACKGROUND ENFORCE  *****
COPY /y /v \\CPD-DC1\SCRIPTS$\Wallpaper\admin_wp\wallpaper.bmp %systemroot%\wallpaper.bmp
regedit /s \\CPD-DC1\SCRIPTS$\Wallpaper\wallpaper.reg
REM  ********** END WINDOWS XP DESKTOP BACKGROUND ENFORCE  *****

PAUSE

Add A Comment: