Copyright 2022 - Custom text here

Map drives


REM - This batch file maps a drive on each of the servers in the pre-Prod
REM - environment so that the servers can be easily monitored with LoadRunner.
SET username=jds\jdsadmin
SET password=Welcome1
cd \
cls
REM - Map web servers
NET USE E: \\testw3web01.jds.local\d$ /USER:%username% %password% /PERSISTENT:no
NET USE F: \\testw3web02.jds.local\d$ /USER:%username% %password% /PERSISTENT:no
NET USE G: \\testw3web03.jds.local\d$ /USER:%username% %password% /PERSISTENT:no
NET USE H: \\testw3web04.jds.local\d$ /USER:%username% %password% /PERSISTENT:no
NET USE I: \\testw3web05.jds.local\d$ /USER:%username% %password% /PERSISTENT:no
NET USE J: \\testw3web06.jds.local\d$ /USER:%username% %password% /PERSISTENT:no
REM - Map various app servers
NET USE K: \\testw3app01.jds.local\d$ /USER:%username% %password% /PERSISTENT:no
NET USE L: \\testw3app02.jds.local\d$ /USER:%username% %password% /PERSISTENT:no
NET USE M: \\testw3app03.jds.local\d$ /USER:%username% %password% /PERSISTENT:no
NET USE N: \\testw3app04.jds.local\d$ /USER:%username% %password% /PERSISTENT:no
NET USE O: \\testw3app05.jds.local\d$ /USER:%username% %password% /PERSISTENT:no
NET USE P: \\testw3app06.jds.local\d$ /USER:%username% %password% /PERSISTENT:no
NET USE Q: \\testw3app07.jds.local\d$ /USER:%username% %password% /PERSISTENT:no
NET USE R: \\testw3app08.jds.local\d$ /USER:%username% %password% /PERSISTENT:no
NET USE S: \\testw3app09.jds.local\d$ /USER:%username% %password% /PERSISTENT:no
NET USE T: \\testw3app10.jds.local\d$ /USER:%username% %password% /PERSISTENT:no
REM - Map MQ servers
NET USE U: \\testw3mq01.jds.local\d$ /USER:%username% %password% /PERSISTENT:no
NET USE V: \\testw3mq02.jds.local\d$ /USER:%username% %password% /PERSISTENT:no
REM - Map feeds server (web service consumed by external customers)
NET USE W: \\testw8fed01.jds.local\d$ /USER:%username% %password% /PERSISTENT:no
NET USE X: \\testw8fed02.jds.local\d$ /USER:%username% %password% /PERSISTENT:no
REM - Map database servers
NET USE Y: \\testw3db01.jds.local\d$ /USER:%username% %password% /PERSISTENT:no
NET USE Z: \\testw3db02.jds.local\c$ /USER:%username% %password% /PERSISTENT:no
@echo Check that there are no error messages...
@pause
f t g m