1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
$file ='c:\temp\NTFS.xml'
@'
<NTFS>
<Directory1>
<Right Path="D:\directory1" Account="local\rwuser" Type="Allow" Access="FullControl" />
<Right Path="D:\directory1" Account="local\rouser" Type="Allow" Access="ReadAndExecute, Synchronize" />
</Directory1>
<Directory2>
<Right Path="D:\directory2" Account="local\rwuser" Type="Allow" Access="FullControl" />
<Right Path="D:\directory2" Account="local\rouser" Type="Allow" Access="ReadAndExecute, Synchronize" />
</Directory2>
<Membres>
<Member Group="Administrateurs" Account="local/Administrateur" />
</Membres>
</NTFS>
'@ > $File
[xml] $Datas=Get-Content $file
$Datas.NTFS.Directory1.Right |
Partager