I would like to discuss more about the NET USE command. It is used in scripts for connecting customers to a domain. Its syntax is:
- NET USE L: \\ SERVER \ SHARE / PERSISTENT: NO
It will replace "SERVER", the name of your server, and "SHARING" by the name of your share. It is important to delete and recreate all the network shares at boot. To delete all the partitions, the following is required :
Here is the complete example of a startup script :
NET USE * / DELETE / YES
NET USE Z: \\ SERVER \ share1 / PERSISTENT: NO
NET USE U: \\ Server2 \ PARTAGE2 / PERSISTENT: NO
The script must be placed in the \\ SERVER \ NETLOGON. You must have administrative rights to modify the content of this directory.
Bookmarks