Welcome to the blog of Andreas Dieckmann


Dieser Inhalt ist noch nicht auf Deutsch verfügbar. Hier ist der originale Inhalt:

Checking NTFS Access Rights with PowerShell script CheckProfileStoragePermissions.ps1. These are obviously not real people but test-accounts.

So I needed a quick way to check a few folders for correct permissions. We had Windows Virtual Desktop/FSLogix user profile containers in an Azure Files share. Some of these profile folders had wrong permissions.

The correct storage permissions are:

User Account Folder Permissions
Users This Folder Only Modify
Creator / Owner Subfolders and Files Only Modify
Administrator (optional) This Folder, Subfolders, and Files Full Control

Official FSLogix documentation: Configure storage permissions for use with Profile Containers and Office Containers

The environment

In this environment every user has their own subfolder in the share. The user created the subfolder (at their first logon to Windows Virtual Desktop), so they’re the owner. Since they’re owner, they have “Modify” rights to (sub-)subfolders and files in their subfolder. FSLogix creates a profile container vhd(x)-file in the user’s folder.

Check Permissions with PowerShell

You can check Permissions using PowerShell with Get-Acl.

I created a quick-and-dirty PowerShell script to check the permissions. It’s not attempting any automatic fixes. It just lists the folders and states any faulty permissions. You could either manually fix the permissions using the GUI, or take the ACL-Object of the subfolder and apply it to the files using Set-Acl.

Download Script

CheckProfileStoragePermissions.ps1 (Github)


Diecknet ist der IT-Blog von Andreas Dieckmann.