Microsoft Windows has a built-in Sharing method that can be very simple to use. However it is easy for Drive Mappings to be lost. The following method is simple but also dependable - meaning that Drive Mappings are not lost.
Requirements:
Example 1 (Common Drive Letter):
NOTE: This example is not intended to be highly secure. Please also note that this configuration is dependent upon maintaining the user account MSNET on Server with the password of password. If the MSNET user account is deleted on Server or the MSNET password is changed, the S Drive will no longer be acccessible on Client.
Example 2 (Matching Drive Letters):
@ECHO OFF
NET USE /D /Y P:
NET USE P: \\COMPUTER1\BOB /USER:CATHY somepassword
NET USE /D /Y Q:
NET USE Q: \\COMPUTER2\CATHY /USER:BOB somepassword
EXIT /B /Y
Requirements:
- If these computer are on a Wireless Network, both computers are connected to the wireless network providing access to the wireless local area network.
- In Control Panel - Network and Sharing Center - Network Discovery is enabled.
- In Control Panel - Network and Sharing Center - File and Printer Sharing is enabled.
- In Control Panel - Network and Sharing Center - Password Protected Sharing is eanbled.
- In Control Panel - Network and Sharing Center - Homegroup Connections is set to: Use user accounts and password to connect to other computers.
- In Control Panel - Windows Firewall is set to default settings.
- In Network Connections - Ethernet - The client for Microsoft Networks is enabled in your Network Adapter.
- In Network Connections - Ethernet - File and Printer Sharing is enabled in your Network Adapter.
- In the Shared Folder - Properties - Share Permission and Advanced Sharing Settings - the Share is left intact granting each user Full Control of the files within the Share.
- You are using an antivirus like Microsoft Security Essentials that does not filter traffic in an unusual manner.
- Both computers retain matching usernames and passwords.
- Both computers retain their existing Computer Account names in System Properties.
- Both computers retain matching Workgroup names such as WORKGROUP.
- Both computers are on in order for the login script to process properly for both drive letters.
Example 1 (Common Drive Letter):
- The first computer is called Server. On Server, create a user account entitled MSNET with Administrator permissions. Give this user account a password of password.
- On Server, right-mouse click the drive or folder that you wish to share. Click the Share tab. Share this resource with the user account MSNET and give this user Full Control.
- Reboot Server.
- On Client, browse to the All Users StartUp folder. Windows Vista/Windows 7 All Users StartUp Location (Hidden Folder)
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup Windows XP All Users StartUp Location
C:\Documents and Settings\All Users\Start Menu\Programs\Startup - Create a file entitled: login.cmd (File extensions must be visible.)
- Copy and paste the following text into login.cmd:
@ECHO OFF
NET USE /D /Y S:
NET USE /USER:MSNET S: \\SERVER\C$ password
EXIT /B - Save login.cmd
- Reboot Client.
NOTE: This example is not intended to be highly secure. Please also note that this configuration is dependent upon maintaining the user account MSNET on Server with the password of password. If the MSNET user account is deleted on Server or the MSNET password is changed, the S Drive will no longer be acccessible on Client.
Example 2 (Matching Drive Letters):
@ECHO OFF
NET USE /D /Y P:
NET USE P: \\COMPUTER1\BOB /USER:CATHY somepassword
NET USE /D /Y Q:
NET USE Q: \\COMPUTER2\CATHY /USER:BOB somepassword
EXIT /B /Y
Comments
Post a Comment