Category Archives: OSD Script to map network drive

AppV OSD Script – Map Network Drive

This sample script does the following:

  • It uses the SCRIPTBODY tag to contact a server by using its IP Address.

  • It deletes a drive mapping, and then it creates a new drive mapping by using the same drive letter.


<DEPENDENCY>
<SCRIPT TIMING="PRE" EVENT="LAUNCH" WAIT="TRUE" PROTECT="TRUE">
<SCRIPTBODY> @echo on \n
ping 192.168.100.100 \n
net use x: /delete /y \n
net use x: \\\\ServerName\\Achieve \n
net use y: /delete /y \n
net use y: \\\\ServerName\\Achieve\\claims\\Bethany \n
</SCRIPTBODY>
</SCRIPT>
</DEPENDENCY>
Advertisements