Active Directory Ticks to Time to Ticks 1 Minute sind 20*60 1 Stunde sind 20*60*60 1 Tag sind 20*60*60*24 1 Jahr sind20*60*60*24*365 4500 Ticks sind
Weiterlesen![DateTimeToTicks TicksToDateTime 1 TicksToDateTime](https://www.der-windows-papst.de/wp-content/uploads/2018/09/TicksToDateTime.jpg)
Active Directory Ticks to Time to Ticks 1 Minute sind 20*60 1 Stunde sind 20*60*60 1 Tag sind 20*60*60*24 1 Jahr sind20*60*60*24*365 4500 Ticks sind
Weiterlesenget-childitem “D:\DATA\Desktop” -recurse | where-object {$_.mode -notmatch “d”} | where-object {$_.lastwritetime -gt [datetime]::Now.AddHours(-1)} | format-table lastwritetime, fullname -autosize | out-file C:\Temp\LastMod.log -append get-childitem “D:\DATA\Desktop” -recurse
WeiterlesenExport inactive Users Search-ADAccount –AccountInactive -DateTime “5/28/2016” -UsersOnly Import-Module ActiveDirectory Search-ADAccount –AccountInactive -TimeSpan 90.00:00:00 -UsersOnly | Select -Property Name,DistinguishedName,LastLogonDate Import-Module ActiveDirectory Search-ADAccount –AccountInactive -DateTime “1/8/2016”
Weiterlesen