File Shares

How do I disconnect & reconnect PHS file shares?

In this example we will be remapping the phs-admin share. The steps work for the other shares as well, you just need to get the right URL. You can find the URL for each of the PHS drives in Mapping PHS Shares.

Procedure

  1. Open File Explorer, and click "This PC"
  2. If  "phs-admin" appears right click on the phs-admin icon and click Disconnect
  3. In the upper left corner of the This PC window click the "Computer" tab and then click the Map network drive icon.
  4. Select the drive letter (M:) and enter this path: \\admin-fs.phs.ucdavis.edu\phs-admin
  5. A prompt to enter username and password will appear. Enter your PHS user name and password, but enter your user name as epm\[username]
  6. Check the boxes "Remember my credentials" and “Connect using different credentials”.
  7. Click Finish

How do I unlock a file that is locked for editing?

Overview

I met a problem. I was trying to open an Excel file but got a message saying my file is locked for editing by another user. Why did I get this error? After researching many solutions online, I am stumped and hope someone can help figure this out.

excel file locked for editing


As a frequent user of Excel application, you are bound to face errors like this. You do not have to be panic if you incur such an editing error as it is common with Excel files and it can be fixed.

Keep reading this article as it explains why the excel file is locked for editing and shows how to fix this error. Additionally, you can learn how to avoid this error next time.

Part 1: Why is the Excel File Locked for Editing?

It will be easy to handle this problem if you know the causes for Excel file being locked for editing. There are lots of causes can trigger this type of error:

Part 2: How to Fix Excel File is Locked for Editing

This error can be easily solved. Before proceeding to the guide below ensure the Excel file is closed on all devices. In case the error persists, close the file for a while and reopen it to releases the lock on the file. Alternatively, you can ask for edit permissions on the file or wait for the file to be closed by the other user.

If you are not successful then here is a simple guide to accessing an excel file locked for editing.

Step 1: Keenly note the file name and the file path. To begin, launch the "Run" dialogue box by simultaneously holding the "Windows" key and pressing "R".

Step 2: Search for the Microsoft Management Console by inputting "MMC" on the search bar and choose "File" and then "Add/Remove Snap-in".

microsoft management console

Step 3: Select "Shared Folders" in the list of "Available Snap-ins" and click "Add" to add it to the "Selected snap-ins" list.

shared folders in microsoft management console

Step 4: On the "Select the computer you want the snap-in to manage" prompt, select the "Local computer" option if you are logged in on the server or "Another computer" if you are logged in at a different computer. Search for the file location from this window.

select computers in shared folders

Step 5: Proceed to select "Open Files" and click "OK".

Step 6: Finally, expand the "Open Files" list, sort the list preferably by author/user name to locate the file. Right-click on the file and select "Close Open file" from the options.

close open file

Now you can edit the excel file having disconnected the user who had it open. Exit Excel and open the file afresh to edit.

Part 3: How to Avoid the Situation "Excel File Locked for Editing"

Having known how to fix the error, be sure of how to avoid it next time. Using these tips, you are free to work on your files across multiple users simultaneously.

Tip 1. Use Excel Version That Supports Co-authoring

Use the Excel version that supports co-authoring such as Excel for the web, Excel for Android, Excel for iOS, Excel for Office 356 and Excel for Office 365 for Mac.

However, the last two versions require you to sign in to an Office account with an Office 365 subscription. For best co-authoring experience, you are advised to all use Excel Online.

Tip 2. Upload the File to Cloud

SharePoint, OneDrive for Business or One Drive serve the best for co-authoring and easy accessibility. As a result, there is no "locked". However, co-authoring is not supported on cloud locations, local folders, server paths and SharePoint On-Premises sites.

Tip 3. Check the File Formats

You must consider file formats for co-authoring to be sure its compatible with all users. The recommended formats are .xlsx, .xlsm or .xlsb for Windows and Mac users.

Tip 4. Check One Drive Sync App

For One Drive sync app users, ensure it's the latest version for each user and not paused at any given time.

Tip 5. Get Rid of Unsupported Features

Finally, in case there is a feature not supported by co-authoring, there will be the "locked" error. Therefore, you will have to turn off the Shared Workbook feature and open the workbook instead of the snapshot from SharePoint.

Close_file_that_is_locked_for_editing.pdf

How do I map PHS file shares?

Procedure

  1. Type map network drive into the search field at the bottom left of the computer display and click the This PC icon when it appears.
  2. In the upper left corner of the This PC window click the Computer link and then click the Map network drive icon.
  3. This will open the Map Network Drive Wizard.

    6.png

  4. Select the Drive letter and enter the Folder path as shown in the above screenshot
    • IHP folder (I: Drive): Select the drive letter (I:)  and enter this path:  \\research-fs.phs.ucdavis.edu\ihp
    • Research folder (R: Drive): Select the drive letter (R:)  and enter this path:  \\research-fs.phs.ucdavis.edu\phs-research
    • Admin folder (M: Drive): Select the drive letter (M:)  and enter this path:  \\admin-fs.phs.ucdavis.edu\phs-admin
  5. A prompt to enter username and password will appear.  Enter your PHS user name and password
    Note: You will need to enter your user name as epm\[username].
  6. Check the boxes "Remember my credentials" and “Connect using different credentials”.
  7. Click Finish

How do I map UCDH file shares?

Procedure

  1. Type map network drive into the search field at the bottom left of the computer display and click the This PC icon when it appears.
  2. In the upper left corner of the This PC window click the Computer link and then click the Map network drive icon.
  3. This will open the Map Network Drive Wizard. Select the Drive letter and enter the Folder path

For H: Drive

  1. Select the drive letter (H:)  and enter this path: \\hsnfm01.ucdmc.ucdavis.edu\homefolders\[user folder].
  2. A prompt to enter username and password will appear.  Enter your HS username and password, but enter your user name as hs\[username]
  3. Be sure to check the box “Remember my credentials”.
  4. Click Finish

For S: Drive

  1. Select the drive letter (S:)  and enter this path:  \\hshome.ucdmc.ucdavis.edu\shared\[foldername].
    • If you don’t remember the entire path just enter \\hshome.ucdmc.ucdavis.edu\shared and then after mapping the drive navigate to the folder you need to access.
  2. A prompt to enter username and password will appear.  Enter your HS username and password, but enter your user name as hs\[username].
  3. Be sure to check the box “Remember my credentials”.
  4. Click Finish

I am missing folders in the file share. How do I make them show up?

Requirements

  1. Sync Center must be disabled.
  2. Admin privileges are required.

Procedure

  1. Open the Control Panel (All Items view), and click on the Sync Center icon.
  2. In the left pane, click on the Manage offline files link.
  3. Click on the Disable offline files button.
  4. If prompted by UAC (User Account Control), then click on Yes.
  5. Click on OK.
  6. Click on Yes to restart the computer.

Accessing PHS file shares while connected to the UCDH VPN

Computers that are issued by PHS and configured for the EPM domain should have a script that connects the PHS file shares after the computer signs to the UCDH VPN client, Cisco Secure Client.  If you have a PHS issued computer that is configured for the EPM domain and the drives are not reconnected, open Command Prompt and type the command below that corresponds to the drive you need to access.

To open Command Prompt, type "cmd" in the search bar in the lower left corner of your display and click the Command Prompt icon when it appears in the search results.  

M Drive:
net use m: \\\admin-fs.phs.ucdavis.edu\phs-admin /user:%username%

R Drive:
net use r: \\\research-fs.phs.ucdavis.edu\phs-research /user:%username%

I Drive:
net use i: \\\research-fs.phs.ucdavis.edu\ihp /user:%username%

image.png