開一個純文字檔,附檔名使用BAT
內容如下參考:
net use J: /delete net use J: \\192.168.1.123\folder /persistent:yes :exit |
Open a notepad file
Type @echo Delete T: drive if exist
Type net use T: /delete
Type @echo Create T: drive
Type net use T: \\networkShare\Test ” /u:domainname\username password
Type :exit
Save the file as AutoMapDrive.bat file
Copy the bat file to “C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp”
Every time the PC starts will map the remote directory onto this computer for all the users that login to it.
Sample:
net use T: /delete
net use T: \\networkShare\Test " /u:domainname\username password
沒有留言:
張貼留言