Posts

Showing posts from January, 2021

Working with UNC folders

  # Source Folder Queries New-PSDrive -Name source -PSProvider FileSystem -Root "\\UNC path goes here" Get-ChildItem -Path source: | Get-Member Get-ChildItem -Path source: | Sort-Object LastWriteTimeUTC -Descending | Select-Object -Property LastWriteTimeUTC,Name -First 5 | Format-Table #Staging Folder Queries New-PSDrive -Name staging -PSProvider FileSystem -Root "\\UNC path goes here" Get-ChildItem -Path staging: | Sort-Object LastWriteTimeUTC -Descending | Select-Object -Property LastWriteTimeUTC,Name  -First 5 | Format-Table

simplifying snapshots

https://dbatools.io/snapshots/