You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

501 regels
16 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!--<Configuration xmlns="http://schemas.microsoft.com/PowerShell/FormatData/2007/09">-->
  3. <Configuration>
  4. <SelectionSets>
  5. <SelectionSet>
  6. <Name>FileSystemTypes2</Name>
  7. <Types>
  8. <TypeName>Alphaleonis.Win32.Filesystem.DirectoryInfo</TypeName>
  9. <TypeName>Alphaleonis.Win32.Filesystem.FileInfo</TypeName>
  10. </Types>
  11. </SelectionSet>
  12. </SelectionSets>
  13. <!-- ################ GLOBAL CONTROL DEFINITIONS ################ -->
  14. <Controls>
  15. <Control>
  16. <Name>SimpleFileSystemGrouping</Name>
  17. <CustomControl>
  18. <CustomEntries>
  19. <CustomEntry>
  20. <CustomItem>
  21. <Frame>
  22. <LeftIndent>4</LeftIndent>
  23. <CustomItem>
  24. <ExpressionBinding>
  25. <ScriptBlock>
  26. if ($global:tempFullName -ne $_.FullName)
  27. {
  28. "Path: $($_.FullName) (Inheritance $(if ($_.InheritanceEnabled) { "enabled" } else { "disabled" }))"
  29. $global:FullName = $_.FullName
  30. }
  31. </ScriptBlock>
  32. </ExpressionBinding>
  33. <NewLine/>
  34. </CustomItem>
  35. </Frame>
  36. </CustomItem>
  37. </CustomEntry>
  38. </CustomEntries>
  39. </CustomControl>
  40. </Control>
  41. <Control>
  42. <Name>SimpleFileSystemAccessRule2Grouping</Name>
  43. <CustomControl>
  44. <CustomEntries>
  45. <CustomEntry>
  46. <CustomItem>
  47. <Frame>
  48. <LeftIndent>4</LeftIndent>
  49. <CustomItem>
  50. <ExpressionBinding>
  51. <ScriptBlock>
  52. if ($global:tempFullName -ne $_.FullName)
  53. {
  54. "Path: $($_.FullName)"
  55. $global:FullName = $_.FullName
  56. }
  57. </ScriptBlock>
  58. </ExpressionBinding>
  59. <NewLine/>
  60. </CustomItem>
  61. </Frame>
  62. </CustomItem>
  63. </CustomEntry>
  64. </CustomEntries>
  65. </CustomControl>
  66. </Control>
  67. <Control>
  68. <Name>FileSystemTypes2-GroupingFormat</Name>
  69. <CustomControl>
  70. <CustomEntries>
  71. <CustomEntry>
  72. <CustomItem>
  73. <Frame>
  74. <LeftIndent>4</LeftIndent>
  75. <CustomItem>
  76. <Text AssemblyName="System.Management.Automation" BaseName="FileSystemProviderStrings" ResourceId="DirectoryDisplayGrouping"/>
  77. <ExpressionBinding>
  78. <ScriptBlock>
  79. Split-Path -Path $_.FullName -Parent
  80. </ScriptBlock>
  81. </ExpressionBinding>
  82. <NewLine/>
  83. </CustomItem>
  84. </Frame>
  85. </CustomItem>
  86. </CustomEntry>
  87. </CustomEntries>
  88. </CustomControl>
  89. </Control>
  90. </Controls>
  91. <!-- ################ VIEW DEFINITIONS ################ -->
  92. <ViewDefinitions>
  93. <View>
  94. <Name>Security2.FileSystemAccessRule2</Name>
  95. <ViewSelectedBy>
  96. <TypeName>Security2.FileSystemAccessRule2</TypeName>
  97. </ViewSelectedBy>
  98. <GroupBy>
  99. <PropertyName>FullName</PropertyName>
  100. <CustomControlName>SimpleFileSystemGrouping</CustomControlName>
  101. </GroupBy>
  102. <TableControl>
  103. <TableHeaders>
  104. <TableColumnHeader>
  105. <Width>35</Width>
  106. <Label>Account</Label>
  107. </TableColumnHeader>
  108. <TableColumnHeader>
  109. <Label>Access Rights</Label>
  110. </TableColumnHeader>
  111. <TableColumnHeader>
  112. <Width>25</Width>
  113. <Label>Applies to</Label>
  114. </TableColumnHeader>
  115. <TableColumnHeader>
  116. <Label>Type</Label>
  117. </TableColumnHeader>
  118. <TableColumnHeader>
  119. <Label>IsInherited</Label>
  120. </TableColumnHeader>
  121. <TableColumnHeader>
  122. <Label>InheritedFrom</Label>
  123. </TableColumnHeader>
  124. </TableHeaders>
  125. <TableRowEntries>
  126. <TableRowEntry>
  127. <TableColumnItems>
  128. <TableColumnItem>
  129. <ScriptBlock>
  130. if ((Get-Module NTFSSecurity).PrivateData.ShowAccountSid)
  131. {
  132. '{0} ({1})' -f $_.Account.AccountName, $_.Account.Sid
  133. }
  134. else
  135. {
  136. $_.Account.ToString()
  137. }
  138. </ScriptBlock>
  139. </TableColumnItem>
  140. <TableColumnItem>
  141. <PropertyName>AccessRights</PropertyName>
  142. </TableColumnItem>
  143. <TableColumnItem>
  144. <ScriptBlock>
  145. [Security2.FileSystemSecurity2]::ConvertToApplyTo($_.InheritanceFlags, $_.PropagationFlags)
  146. </ScriptBlock>
  147. </TableColumnItem>
  148. <TableColumnItem>
  149. <PropertyName>AccessControlType</PropertyName>
  150. </TableColumnItem>
  151. <TableColumnItem>
  152. <PropertyName>IsInherited</PropertyName>
  153. </TableColumnItem>
  154. <TableColumnItem>
  155. <PropertyName>InheritedFrom</PropertyName>
  156. </TableColumnItem>
  157. </TableColumnItems>
  158. </TableRowEntry>
  159. </TableRowEntries>
  160. </TableControl>
  161. </View>
  162. <View>
  163. <Name>Security2.FileSystemAuditRule2</Name>
  164. <ViewSelectedBy>
  165. <TypeName>Security2.FileSystemAuditRule2</TypeName>
  166. </ViewSelectedBy>
  167. <GroupBy>
  168. <PropertyName>FullName</PropertyName>
  169. <CustomControlName>SimpleFileSystemGrouping</CustomControlName>
  170. </GroupBy>
  171. <TableControl>
  172. <TableHeaders>
  173. <TableColumnHeader>
  174. <Width>35</Width>
  175. <Label>Account</Label>
  176. </TableColumnHeader>
  177. <TableColumnHeader>
  178. <Label>Access Rights</Label>
  179. </TableColumnHeader>
  180. <TableColumnHeader>
  181. <Width>25</Width>
  182. <Label>Applies to</Label>
  183. </TableColumnHeader>
  184. <TableColumnHeader>
  185. <Label>Type</Label>
  186. </TableColumnHeader>
  187. <TableColumnHeader>
  188. <Label>IsInherited</Label>
  189. </TableColumnHeader>
  190. <TableColumnHeader>
  191. <Label>InheritedFrom</Label>
  192. </TableColumnHeader>
  193. </TableHeaders>
  194. <TableRowEntries>
  195. <TableRowEntry>
  196. <TableColumnItems>
  197. <TableColumnItem>
  198. <ScriptBlock>
  199. if ((Get-Module NTFSSecurity).PrivateData.ShowAccountSid)
  200. {
  201. '{0} ({1})' -f $_.Account.AccountName, $_.Account.Sid
  202. }
  203. else
  204. {
  205. $_.Account.ToString()
  206. }
  207. </ScriptBlock>
  208. </TableColumnItem>
  209. <TableColumnItem>
  210. <PropertyName>AccessRights</PropertyName>
  211. </TableColumnItem>
  212. <TableColumnItem>
  213. <ScriptBlock>
  214. [Security2.FileSystemSecurity2]::ConvertToApplyTo($_.InheritanceFlags, $_.PropagationFlags)
  215. </ScriptBlock>
  216. </TableColumnItem>
  217. <TableColumnItem>
  218. <PropertyName>AuditFlags</PropertyName>
  219. </TableColumnItem>
  220. <TableColumnItem>
  221. <PropertyName>IsInherited</PropertyName>
  222. </TableColumnItem>
  223. <TableColumnItem>
  224. <PropertyName>InheritedFrom</PropertyName>
  225. </TableColumnItem>
  226. </TableColumnItems>
  227. </TableRowEntry>
  228. </TableRowEntries>
  229. </TableControl>
  230. </View>
  231. <View>
  232. <Name>Security2.SimpleFileSystemAuditRule2</Name>
  233. <ViewSelectedBy>
  234. <TypeName>Security2.SimpleFileSystemAuditRule2</TypeName>
  235. </ViewSelectedBy>
  236. <GroupBy>
  237. <PropertyName>FullName</PropertyName>
  238. <CustomControlName>SimpleFileSystemGrouping</CustomControlName>
  239. </GroupBy>
  240. <TableControl>
  241. <TableHeaders>
  242. <TableColumnHeader>
  243. <Width>35</Width>
  244. <Label>Account</Label>
  245. </TableColumnHeader>
  246. <TableColumnHeader>
  247. <Label>Access Rights</Label>
  248. </TableColumnHeader>
  249. <TableColumnHeader>
  250. <Width>25</Width>
  251. <Label>Applies to</Label>
  252. </TableColumnHeader>
  253. <TableColumnHeader>
  254. <Label>Type</Label>
  255. </TableColumnHeader>
  256. <TableColumnHeader>
  257. <Label>IsInherited</Label>
  258. </TableColumnHeader>
  259. </TableHeaders>
  260. <TableRowEntries>
  261. <TableRowEntry>
  262. <Wrap/>
  263. <TableColumnItems>
  264. <TableColumnItem>
  265. <ScriptBlock>
  266. if ((Get-Module NTFSSecurity).PrivateData.ShowAccountSid)
  267. {
  268. '{0} ({1})' -f $_.Account.AccountName, $_.Account.Sid
  269. }
  270. else
  271. {
  272. $_.Account.ToString()
  273. }
  274. </ScriptBlock>
  275. </TableColumnItem>
  276. <TableColumnItem>
  277. <PropertyName>AccessRights</PropertyName>
  278. </TableColumnItem>
  279. <TableColumnItem>
  280. <ScriptBlock>
  281. [Security2.FileSystemSecurity2]::ConvertToApplyTo($_.InheritanceFlags, $_.PropagationFlags)
  282. </ScriptBlock>
  283. </TableColumnItem>
  284. <TableColumnItem>
  285. <PropertyName>AuditFlags</PropertyName>
  286. </TableColumnItem>
  287. <TableColumnItem>
  288. <PropertyName>IsInherited</PropertyName>
  289. </TableColumnItem>
  290. </TableColumnItems>
  291. </TableRowEntry>
  292. </TableRowEntries>
  293. </TableControl>
  294. </View>
  295. <View>
  296. <Name>Security2.FileSystemEffectivePermissionEntry</Name>
  297. <ViewSelectedBy>
  298. <TypeName>Security2.FileSystemEffectivePermissionEntry</TypeName>
  299. </ViewSelectedBy>
  300. <TableControl>
  301. <AutoSize/>
  302. <TableHeaders>
  303. <TableColumnHeader>
  304. <Label>Name</Label>
  305. </TableColumnHeader>
  306. <TableColumnHeader>
  307. <Label>Access</Label>
  308. </TableColumnHeader>
  309. <TableColumnHeader>
  310. <Label>AccessMask</Label>
  311. </TableColumnHeader>
  312. <TableColumnHeader>
  313. <Label>Account</Label>
  314. </TableColumnHeader>
  315. </TableHeaders>
  316. <TableRowEntries>
  317. <TableRowEntry>
  318. <TableColumnItems>
  319. <TableColumnItem>
  320. <PropertyName>Name</PropertyName>
  321. </TableColumnItem>
  322. <TableColumnItem>
  323. <PropertyName>AccessAsString</PropertyName>
  324. </TableColumnItem>
  325. <TableColumnItem>
  326. <PropertyName>AccessMask</PropertyName>
  327. </TableColumnItem>
  328. <TableColumnItem>
  329. <ScriptBlock>
  330. if ((Get-Module NTFSSecurity).PrivateData.ShowAccountSid)
  331. {
  332. '{0} ({1})' -f $_.Account.AccountName, $_.Account.Sid
  333. }
  334. else
  335. {
  336. $_.Account.ToString()
  337. }
  338. </ScriptBlock>
  339. </TableColumnItem>
  340. </TableColumnItems>
  341. </TableRowEntry>
  342. </TableRowEntries>
  343. </TableControl>
  344. </View>
  345. <View>
  346. <Name>Security2.FileSystemInheritanceInfo</Name>
  347. <ViewSelectedBy>
  348. <TypeName>Security2.FileSystemInheritanceInfo</TypeName>
  349. </ViewSelectedBy>
  350. <TableControl>
  351. <AutoSize/>
  352. <TableHeaders>
  353. <TableColumnHeader>
  354. <Label>Name</Label>
  355. </TableColumnHeader>
  356. <TableColumnHeader>
  357. <Label>AccessInheritanceEnabled</Label>
  358. </TableColumnHeader>
  359. <TableColumnHeader>
  360. <Label>AuditInheritanceEnabled</Label>
  361. </TableColumnHeader>
  362. </TableHeaders>
  363. <TableRowEntries>
  364. <TableRowEntry>
  365. <TableColumnItems>
  366. <TableColumnItem>
  367. <PropertyName>Name</PropertyName>
  368. </TableColumnItem>
  369. <TableColumnItem>
  370. <PropertyName>AccessInheritanceEnabled</PropertyName>
  371. </TableColumnItem>
  372. <TableColumnItem>
  373. <PropertyName>AuditInheritanceEnabled</PropertyName>
  374. </TableColumnItem>
  375. </TableColumnItems>
  376. </TableRowEntry>
  377. </TableRowEntries>
  378. </TableControl>
  379. </View>
  380. <View>
  381. <Name>Children2</Name>
  382. <ViewSelectedBy>
  383. <SelectionSetName>FileSystemTypes2</SelectionSetName>
  384. </ViewSelectedBy>
  385. <GroupBy>
  386. <ScriptBlock>if ($_.DirectoryName) { $_.DirectoryName } else { $_.Parent.FullName }</ScriptBlock>
  387. <CustomControlName>FileSystemTypes2-GroupingFormat</CustomControlName>
  388. </GroupBy>
  389. <TableControl>
  390. <TableHeaders>
  391. <TableColumnHeader>
  392. <Label>Mode</Label>
  393. <Width>7</Width>
  394. <Alignment>Left</Alignment>
  395. </TableColumnHeader>
  396. <TableColumnHeader>
  397. <Label>Inherits</Label>
  398. <Width>8</Width>
  399. <Alignment>Right</Alignment>
  400. </TableColumnHeader>
  401. <TableColumnHeader>
  402. <Label>LastWriteTime</Label>
  403. <Width>25</Width>
  404. <Alignment>Right</Alignment>
  405. </TableColumnHeader>
  406. <TableColumnHeader>
  407. <Label>Size(M)</Label>
  408. <Width>15</Width>
  409. <Alignment>Right</Alignment>
  410. </TableColumnHeader>
  411. <TableColumnHeader>
  412. <Label>Name</Label>
  413. </TableColumnHeader>
  414. </TableHeaders>
  415. <TableRowEntries>
  416. <TableRowEntry>
  417. <Wrap/>
  418. <TableColumnItems>
  419. <TableColumnItem>
  420. <PropertyName>Mode</PropertyName>
  421. </TableColumnItem>
  422. <TableColumnItem>
  423. <ScriptBlock>
  424. !$_.IsInheritanceBlocked
  425. </ScriptBlock>
  426. </TableColumnItem>
  427. <TableColumnItem>
  428. <ScriptBlock>
  429. [String]::Format("{0,10} {1,8}", $_.LastWriteTime.ToString("d"), $_.LastWriteTime.ToString("t"))
  430. </ScriptBlock>
  431. </TableColumnItem>
  432. <TableColumnItem>
  433. <ScriptBlock>
  434. if ($_ -is [Alphaleonis.Win32.Filesystem.FileInfo])
  435. {
  436. [Math]::Round($_.Length / 1MB, 2).ToString()
  437. }
  438. else
  439. {
  440. " {0,-13}" -f "&lt;DIR&gt;"
  441. }
  442. </ScriptBlock>
  443. </TableColumnItem>
  444. <TableColumnItem>
  445. <PropertyName>Name</PropertyName>
  446. </TableColumnItem>
  447. </TableColumnItems>
  448. </TableRowEntry>
  449. </TableRowEntries>
  450. </TableControl>
  451. </View>
  452. <View>
  453. <Name>Alphaleonis.Win32.Filesystem.FileInfo+Hash</Name>
  454. <ViewSelectedBy>
  455. <TypeName>Alphaleonis.Win32.Filesystem.FileInfo+Hash</TypeName>
  456. </ViewSelectedBy>
  457. <TableControl>
  458. <AutoSize/>
  459. <TableHeaders>
  460. <TableColumnHeader>
  461. <Label>Algorithm</Label>
  462. </TableColumnHeader>
  463. <TableColumnHeader>
  464. <Label>Hash</Label>
  465. </TableColumnHeader>
  466. <TableColumnHeader>
  467. <Label>FullName</Label>
  468. </TableColumnHeader>
  469. </TableHeaders>
  470. <TableRowEntries>
  471. <TableRowEntry>
  472. <Wrap/>
  473. <TableColumnItems>
  474. <TableColumnItem>
  475. <PropertyName>Algorithm</PropertyName>
  476. </TableColumnItem>
  477. <TableColumnItem>
  478. <PropertyName>Hash</PropertyName>
  479. </TableColumnItem>
  480. <TableColumnItem>
  481. <PropertyName>FullName</PropertyName>
  482. </TableColumnItem>
  483. </TableColumnItems>
  484. </TableRowEntry>
  485. </TableRowEntries>
  486. </TableControl>
  487. </View>
  488. </ViewDefinitions>
  489. </Configuration>