34
votes
Overcoming maximum file path length restrictions in Windows
Just mentioning a trick I do not see mentioned here yet.
Take this file for example:
C:\Folder1\Really Long Path\Such Recursion\So Deep\Wow\Still Going\I will run out of ideas soon\I have ...
- 55.2k
27
votes
Accepted
User accidentally messed up a Robocopy command and caused a bunch of folders to get created with corrupt security
So for this you can harken back to your DOS days (if you had them) and utilize the 8.3 naming convention, which gets around the invalid NTFS security descriptors that aren't there.
Steps to remove ...
- 32.5k
16
votes
List user's folder access permissions
This seems to do the trick (with perhaps a caveat), to find all folders that user "someuser" has access to, in this example on the C drive, using the built-in Windows icacls command:
icacls c:\*. /...
Community wiki
13
votes
Why does Windows process all NTFS child objects when changing a parent’s ACL?
Any child object that is configured to inherit it’s permissions from the parent object will need to be processed. Explicitly defined permissions on the child objects are not affected.
The option, “...
- 3,408
11
votes
Accepted
Why does Windows process all NTFS child objects when changing a parent’s ACL?
In Windows file permissions are not dynamically inherited. That is, when an attempt is made to open a file Windows only looks at the ACL of that file and not at the ACLs of the directories in the tree ...
- 7,766
9
votes
Overcoming maximum file path length restrictions in Windows
Microsoft now has an available fix for this beginning with Windows 10, which is explained in the Naming Files, Paths, and Namespaces MSDN article.
darthcoder already answered with details on the \\?\...
- 2,756
9
votes
Accepted
How can I use PowerShell to enable NTFS compression, in place, on log files older than x days?
The easiest solution, as PowerShell support for file operations is still rather lacking, is to create a PowerShell script to call the compact.exe utility and set it up as a scheduled task. Because of ...
- 53.5k
8
votes
Accepted
Windows Server Backup Error - Volumes Larger than 16.7TB cannot be protected?
OK, the reason Windows Server Backup is failing is because of the cluster size you're using on the volume. (And I'll explain exactly why that is at the end, after the important issue of your RAID ...
- 53.5k
8
votes
Accepted
Adding Folder Permissions Using Powershell
use:
Add-NTFSAccess -Path 'C:\MyFolder' -Account BUILTIN\IIS_IUSRS -AccessRights FullControl
or just
Add-NTFSAccess -Path 'C:\MyFolder' -Account IIS_IUSRS -AccessRights FullControl
IIS_IUSRS is a ...
- 13.8k
8
votes
Accepted
Is SMB safer than iSCSI for connection to a NAS?
Any online writable disk can be corrupted by a malicious software or user. Underestimating them by assuming they cannot find a file share is a mistake.
Last line of defense for important data is ...
- 30.8k
7
votes
List user's folder access permissions
You can use PowerShell without needing to download anything else. This will work with v2.0 and later:
$ReferenceAccountName = 'DOMAIN\Username'
[string[]]$SearchDirectories = @('X:\SomeDirectory', 'F:...
- 71
7
votes
I have a NTFS partition now the size of the partition seems to be wrong. Is there an easy way to fix this?
There is another scenario that is common if you clone your HDD to a larger one OR if you have a VPS/Virtual Server and resize the disk what happens is that usually the partition will remain the same/...
- 341
7
votes
MS Windows issue - "Filename or extension is too long"
Just mentioning a trick I do not see mentioned here yet.
Take this file for example:
C:\Folder1\Really Long Path\Such Recursion\So Deep\Wow\Still Going\I will run out of ideas soon\I have ...
- 55.2k
7
votes
Accepted
File Share in Windows Domain
My understanding is that you assign a user to a (security) group and
then add that group to the NTFS permissions. However, we have a number
of folders where we need to give a specific user access ...
- 109k
7
votes
Is SMB safer than iSCSI for connection to a NAS?
Leaving the question of iSCSI vulnerability when using it without a clustered file system but with multiple initiators aside, I can hardly find any clear reason why file sharing protocol would be more ...
- 8,828
6
votes
Rsync command to synchronize two NTFS drives?
To rsync between Linux ext4/xfs and windows ntfs mounts
OR
To rsync between two ntfs mounts :
If the intent is to back-up the contents to ntfs mount using rsync and only transfer delta to ntfs ...
- 181
6
votes
Create NTFS symbolic links from within Linux
I know this thread is pretty outdated, but lately I've had the same problem (I needed to move some windows system folders to another drive) and here is simple solution.
In Windows, copy (not move) ...
- 61
6
votes
Get the Allocation Unit Size from NTFS disk
Now that powershell has caught up and has fledged out a little bit you can run this code in a powershell window:
Get-Volume | Format-List AllocationUnitSize, FileSystemLabel
- 171
6
votes
Accepted
What's the difference between a partition blocksize and a volume blocksize in NTFS?
The volume block size can also be thought of as the 'logical block size' this is the block size that the filesystem you lay down on a hard drive is set to.
The partition block size is essentially ...
- 37.1k
6
votes
Accepted
How do I tune windows server 2012 R2 to handle NTFS file structure with 50 million files?
You currently have an MFT of 0x320900000 = 13,431,209,984 bytes = 12 GiB in size, with only 2GiB of that in memory. More RAM will allow you to have more of that in memory, if you want to cache more of ...
- 2,615
6
votes
Accepted
Cannot save Office files on shared network drive without delete permission
This happens because of how Office documents are opened for editing.
When you open an Office document, the application creates a hidden temporary file in the same folder. As you work in the document,...
- 3,111
6
votes
Accepted
How to setup IIS on Failover Cluster with Shared Data
The NTFS/SMB permissions for shared IIS storage are detailed described in ms guide:
https://docs.microsoft.com/en-us/iis/web-hosting/configuring-servers-in-the-windows-web-platform/configuring-share-...
- 8,828
6
votes
Accepted
Why is "traverse folder" and "execute file" a combined permission?
From filesystem standpoint, entering a directory is akin to executing, or activating, it.
It clearly is a convention (directory are not really "executed"), probably rooted to the shortage of ...
- 45k
5
votes
How can I compact the VHD file with Ubuntu?
I can confirm: zerofree is working to compact virtual disk files
BUT: you don't need to use any rescue CDs or to mount the VHDX in another virtual machine:
sudo apt-get install zerofree
Boot into ...
- 171
5
votes
Accepted
Server 2012 NTFS group permissions not working in domain
Have these users logged out and back into their computers since you added them to the new groups?
When a user logs into their workstation they are granted a ticket granting ticket (TGT) by the ...
- 303
5
votes
Accepted
Determine target of NTFS reparse point
These are probably de-duped files. They are implemented with junctions on disk and the file system driver handles reassembly. I doubt you will find a Linux tool that can deal with them. And other ...
- 22.9k
5
votes
Accepted
Sluggish performance on NTFS drive with large number of files
The server did not have enough memory. Instead of caching NTFS metafile data in memory every file access required multiple disk reads. As usual, the issue is obvious once you see it. Let me share what ...
- 293
5
votes
How can I use PowerShell to enable NTFS compression, in place, on log files older than x days?
The repeated code can be avoided by using an array and a foreach loop:
$logfolders=("D:\Folder\One","D:\Folder\Two")
$age=(get-date).AddDays(-3)
foreach ($logfolder in $logfolders) {
Get-...
- 51
5
votes
Accepted
System.Security.AccessControl.PropagationFlags Powershell Equivalent GUI use?
The options in the advanced dialog are created by combining Propagation and Inheritance flags.
GUI options
This folder only
Propagation: None
Inheritance: None
This folder, subfolders and files
...
- 176
5
votes
Accepted
Why do I sometimes get numbers back from the FileSystemRights access field when checking the ACL Access?
The FileSystemRights attribute is an enumeration. However the generic rights will not be enumerated. See output of:
[System.Enum]::GetValues([System.Security.AccessControl.FileSystemRights])
The ...
- 24.3k
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
ntfs × 565windows × 146
permissions × 106
filesystems × 55
windows-server-2008 × 54
file-permissions × 50
windows-server-2003 × 44
linux × 42
windows-server-2008-r2 × 40
network-share × 33
access-control-list × 32
security × 26
windows-server-2012-r2 × 24
hard-drive × 22
active-directory × 20
partition × 20
powershell × 17
windows-7 × 16
performance × 14
data-recovery × 13
mount × 12
fat32 × 12
raid × 11
directory × 11
file-server × 11