Monday, March 23, 2020

Delete files older than 30 days but not the first of the month

# Delete files older than 30 days that are not day 1 (fist of the month)

Get-ChildItem -path \\big-nas\Data\Backup\Database -r | Where-Object {($_.LastWriteTime -lt (Get-Date).AddDays(-30)) -and (($_.LastWriteTime).day -ne 1 )} |remove-item

Monday, March 16, 2020

TP-Link AC750 replacement USB charging cable issues


Finding a compatible USB charging cable on a TP-link AC750 can be difficult because not all USB cables with Micro-USB B-Plugs are the same. 

This issue arises when the USB B-Plug’s latch head is not at least 5.8mm in length.  Latch heads shorter than 5.8mm will not lock into place.