Skip to content
ShabazTech

Notes of an IT Pro

ShabazTech

Notes of an IT Pro

  • Microsoft Azure
    • Compute
    • Governance
    • Identity
    • Networking
    • Security
    • Storage
  • Microsoft Entra ID
    • Identity
      • Application Management
      • Governance
    • Security
      • Authentication
      • Conditional Access
    • Global Secure Access
      • Internet Access
      • Private Access
  • Microsoft Intune
    • Apps
      • Microsoft365 Apps For Enterprise
    • Devices
      • Windows Clients
    • Monitoring
    • Security
  • Microsoft 365
    • Defender XDR
    • Purview
  • Microsoft OnPrem
    • AD DS
    • Failover Clustering
    • Hyper-V
    • Powershell
    • SQL Server
      • SQL Server 2008R2
      • SQL Server 2012
      • SQL Server 2016
    • System Center Configuration Manager
      • SCCM 2012R2
    • Windows Clients
    • Windows Server
      • Windows Server 2008R2
      • Windows Server 2012
      • Windows Server 2012R2
      • Windows Server 2016
  • Citrix
    • XenApp 6.5
    • XenApp and XenDesktop 7.6 LTSR
    • XenApp and Xendesktop 7.15 LTSR
  • About The Author
  • Microsoft Azure
    • Compute
    • Governance
    • Identity
    • Networking
    • Security
    • Storage
  • Microsoft Entra ID
    • Identity
      • Application Management
      • Governance
    • Security
      • Authentication
      • Conditional Access
    • Global Secure Access
      • Internet Access
      • Private Access
  • Microsoft Intune
    • Apps
      • Microsoft365 Apps For Enterprise
    • Devices
      • Windows Clients
    • Monitoring
    • Security
  • Microsoft 365
    • Defender XDR
    • Purview
  • Microsoft OnPrem
    • AD DS
    • Failover Clustering
    • Hyper-V
    • Powershell
    • SQL Server
      • SQL Server 2008R2
      • SQL Server 2012
      • SQL Server 2016
    • System Center Configuration Manager
      • SCCM 2012R2
    • Windows Clients
    • Windows Server
      • Windows Server 2008R2
      • Windows Server 2012
      • Windows Server 2012R2
      • Windows Server 2016
  • Citrix
    • XenApp 6.5
    • XenApp and XenDesktop 7.6 LTSR
    • XenApp and Xendesktop 7.15 LTSR
  • About The Author
Close

Search

Subscribe
MicrosoftWindows ServerWindows Server 2008R2

Moving subfolder of a shared folder, does not retain permissions

By Shabaz
April 1, 2014 3 Min Read
1
Updated on November 18, 2015




When you move a folder within the same volume, NTFS permissions are supposed to be retained. As a matter of fact, that is the only way permissions can be retained during copy or move operations. If you move a folder to another volume, or copy a folder from one location to another (on the same or different volume), NTFS permissions are not retained. But I have encountered that even when moving a subfolder of a shared folder, within the same volume, the permissions will not always be retained.

When you share a folder on Server 2008 R2, it gets marked as shared. If you check in the details pane, it will show the folder’s state as shared.
share1

But sometimes you might see the same state for a subfolder of the shared folder.
As you can see the E:\Data\Sales folder on my file server is marked as shared as well.
share2

While another subfolder of the same shared folder, E:\Data\Managers is not marked as shared.
share4

Now, you might think that this is because I have shared E:\Data and E:\Data\Sales, but that is not the case.
The only shared folder on my file server is E:\Data

share3

So why is E:\Data\Sales also marked as shared? While E:\Data\Managers is not. Its due to explicit NTFS permissions being set on the E:\Data\Sales folder.
share8

While E:\Data\Managers only has permissions that are inherited from its parent.
share7

If you try to move E:\Data\Sales to another folder, you’ll get the following message
share5

If you click Continue on the Message Box, the NTFS permissions of the Sales folder are supposed to be retained. But I have rather seen one of the following two occurring,

1. The NTFS permissions of the Sales folder are actually retained.

2. Deny permissions will be retained, the user performing the move action will gain full control permissions on the folder, and any permissions assigned to local administrators group of the server will be retained. All other permissions will be lost.

Obviously number 1 is what we would like to achieve in a situation where we ware moving the Sales folder within the E:\ volume, but I really can not pinpoint what occurs due to which condition, so you might think the NTFS permissions of the folder you are moving within the same volume will be preserved, but you might end up with a whole different set of permissions. And if you have several subfolders beneath the folder you are moving, its really not a chance you want to take.

Workaround

The workaround is quite simple. Don’t move the folder by using Windows explorer, but rather use the move command in command prompt. If you use the move command, the folder will retain its permissions every time.

The syntax for the move command is quite simple, move source_folder destination_folder
To see the full syntax of the move command, Write move /? in the command prompt

Command for moving the Sales folder beneath E:\Data\Managers
share9

As you can see the NTFS permissions for the Sales folder has been retained
share10

Tags:

MicrosoftServer 2008R2Windows Server
Author

Shabaz

Follow Me
Other Articles
Previous

How to check if a machine is physical or virtual

Next

Installing Failover Clustering on Server 2012

One Comment
  1. ac says:
    December 12, 2017 at 15:18

    Helpful, thanks!

Comments are closed.

Archives

Tags

Active Directory Citrix Failover Clustering Microsoft Powershell SCCM SCCM 2012R2 Server 2008R2 Server 2012 Server 2012R2 Server 2016 SQL Server Symantec VSF Test Labs Windows Clients Windows Server XenDesktop 7.6 LTSR Xendesktop 7.15 LTSR

Popular Posts

  • How to check if a machine is physical or virtual
  • Exporting multivalued attributes with Export-CSV cmdlet
  • Installing Remote Desktop License Server on Windows…
  • Configuring Remote Desktop Services Profile settings…
  • Installing Citrix XenApp and XenDesktop 7.15 LTSR
  • Enabling LDAPS with certificate from a 3rd party CA
  • Assigning ownership of files and folders with Takeown.exe
  • Retrieving User properties from Active Directory
  • SCCM 2012 R2 Client Installation
  • Citrix XenApp 6.5 Architectural Components
© 2014- 2026 — ShabazTech. All rights reserved.