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
6
test/integration/targets/win_stat/files/set_filedate.ps1
Normal file
6
test/integration/targets/win_stat/files/set_filedate.ps1
Normal file
|
@ -0,0 +1,6 @@
|
|||
$date = Get-Date -Year 2016 -Month 11 -Day 1 -Hour 7 -Minute 10 -Second 5 -Millisecond 0
|
||||
|
||||
$item = Get-Item -Path "$($args[0])"
|
||||
$item.CreationTime = $date
|
||||
$item.LastAccessTime = $date
|
||||
$item.LastWriteTime = $date
|
Loading…
Add table
Add a link
Reference in a new issue