mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Feature/win stat extra info (#19148)
* Added more return results to win_stat * Changed Win2012 methods to support older versions in setup * staging of the tests to work with older servers
This commit is contained in:
parent
a655e90e41
commit
971783a7fd
8 changed files with 925 additions and 108 deletions
|
@ -0,0 +1,9 @@
|
|||
$path = $args[0]
|
||||
$attr = $args[1]
|
||||
$item = Get-Item "$path"
|
||||
|
||||
$attributes = $item.Attributes -split ','
|
||||
If ($attributes -notcontains $attr) {
|
||||
$attributes += $attr
|
||||
}
|
||||
$item.Attributes = $attributes -join ','
|
Loading…
Add table
Add a link
Reference in a new issue