All posts by smarc

Change File(s) Date & Timestamp via CMD or PowerShell

Set-ItemProperty -Path [Path] -Name [PropertyName] -Value [NewValue]
$NewDate = Get-Date -Year 2023 -Month 3 -Day 15 -Hour 10 -Minute 22 -Second 30
Set-ItemProperty -Path "example.txt" -Name CreationTime -Value $NewDate 
Set-ItemProperty -Path "example.txt" -Name LastWriteTime -Value $NewDate
Set-ItemProperty -Path "example.txt" -Name LastAccessTime -Value $NewDate

Source: Change File(s) Date & Timestamp via CMD or PowerShell

Add or Remove Gallery in File Explorer Navigation Pane in Windows 11 | Windows 11 Forum

 Remove Gallery from Navigation Pane in File Explorer for All Users

 

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}]
@="Gallery"
"HiddenByDefault"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\NonEnum]
"{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}"=dword:00000001

Source: Add or Remove Gallery in File Explorer Navigation Pane in Windows 11 | Windows 11 Forum