Posts

Showing posts from March, 2020

Clears all Quick Access and Recent items

Image
the following command clears all  Quick Access  and  Recent  items . Press   +  R  to launch the  Run...  dialog Paste the following command into the dialog box cmd.exe /c del "%AppData%\Microsoft\Windows\Recent\AutomaticDestinations\f01b4d95cf55d32a.automaticDestinations-ms"

Office 2016 Professional Plus Error 1935 during installation

Office 2016 Professional Plus Error 1935 during installation "1: 1935 2: BEA7209F-78B3-429E-B4DO-E647E16A2604) 3: 0x80131049 4: IAssemblyCacheltem 5: Commit 6: Policy.12.0.Microsoft.Vbe.lnterop,fileVersion "15.0.4420.1017",version-"15.0.0.0000000",culture Setup failed. Rolling back changes..." HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AppModel  I simply renamed the key and the install worked fine.

Move older files with PowerShell

Move older files with PowerShell set the source path set the destination path set the days 30days old = -30 set exclude files save it as move.ps1 =========================================== $YourPath = "source" $YourDest = "destination" $daysback = "-30” Get-ChildItem -Path $YourPath -Exclude abc.txt, abc.png, abc.jpg, xyz_voucher_bottom.jpg, bbc.jpg | where {$_.LastWriteTime -lt ((Get-Date).AddDays($daysback ))} | move-item -Destination $YourDest