Книга: Windows Server 2012 R2 Storage, Security, & Networking Pocket Consultant

Mapping a network drive

Mapping a network drive

In Windows Server 2012 R2, you connect to a network drive by mapping to it using NET USE and New-PsDrive. The syntax for NET USE is the following:

net use DeviceName ComputerNameShareName

DeviceName specifies the drive letter or an asterisk (*) to use the next available drive letter, and ComputerNameShareName is the UNC path to the share, such as either of the following:

net use g: ROMEODOCS

or

net use * ROMEODOCS

NOTE To ensure that the mapped drive is available each time the user logs on, make the mapping persistent by adding the /Persistent: Yes option.

The syntax for New-PsDrive is:

New-PsDrive -Name DriveLetter -Root ServerNameShareName -PsProvider FileSystem

DriveLetter is the drive letter to use and ServerName is the DNS name or IP address of the server hosting the share and ShareName is the name of the share, such as:

New-PsDrive -Name g -Root CorpServer21CorpData -PsProvider FileSystem

NOTE To ensure that the mapped drive is available each time the user logs on, add the -Persist parameter.

If the client computer is running Windows 8.1, you can map network drives by completing the following steps:

1. When you open File Explorer, the This PC node should be opened by default. If you have an open Explorer window and This PC is not the selected node, select the leftmost option button in the address list, and then select This PC.

2. Next, tap or click the Map Network Drive button in the Computer panel, and then tap or click Map Network Drive.

3. Use the Drive list to select a free drive letter to use, and then tap or click the Browse button to the right of the Folder list. In the Browse For Folder dialog box, expand the network folders until you can select the name of the workgroup or the domain with which you want to work.

4. When you expand the name of a computer in a workgroup or a domain, you’ll get a list of shared folders. Select the shared folder with which you want to work, and then tap or click OK.

5. Select Reconnect At Logon if you want Windows to connect to the shared folder automatically at the start of each session.

6. Tap or click Finish. If the currently logged-on user doesn’t have appropriate access permissions for the share, select Connect Using Different Credentials, and then tap or click Finish. After you tap or click Finish, you can enter the user name and password of the account with which you want to connect to the shared folder. Enter the user name in DomainUserName format, such as CpandlWilliams . Before tapping or clicking OK, select Remember My Credentials if you want the credentials to be saved. Otherwise, you’ll need to provide credentials in the future.

Оглавление книги

Оглавление статьи/книги
Похожие страницы

Генерация: 1.001. Запросов К БД/Cache: 2 / 0
поделиться
Вверх Вниз