Skip to content

Commit 02bc15f

Browse files
authored
Add powershell for host storage path permissions
1 parent 453fbd7 commit 02bc15f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

articles/iot-edge/how-to-access-host-storage-from-module.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,13 @@ sudo chown 1000 <HostStoragePath>
8181
sudo chmod 700 <HostStoragePath>
8282
```
8383

84-
On Windows devices, you will also need to configure permissions on the host system directory. This can be done via the File Explorer. You need to grant a principal permission for all `Authenticated Users` to have `Full Control`.
85-
84+
On Windows devices, you will also need to configure permissions on the host system directory. This can be done through powershell:
85+
```powershell
86+
$acl = get-acl <HostStoragePath>
87+
$ace = new-object system.security.AccessControl.FileSystemAccessRule('Authenticated Users','FullControl','Allow')
88+
$acl.AddAccessRule($ace)
89+
$acl | Set-Acl
90+
```
8691

8792
## Encrypted data in module storage
8893

0 commit comments

Comments
 (0)