The lazy programmer scripts
scripts that work

Overview for powershell



Lazy remove cached favicons in Chrome

It is very cumbersome sometimes to find that you cannot update the favicons on your favorite website when using Chrome.

This script removes the file where Chrome caches the favicons on Windows. It needs to be run in PowerShell as a normal user.

Tested on Window 10 PRO x64.

Written by kami on Tuesday March 5, 2019
Permalink - Tags: powershell, windows, chrome, favicon


Lazy remove pesky files on Windows

There are some files on Windows which cannot be trivially removed, even if you are a full Administrator.

This PowerShell script makes sure that you remove them nonetheless.

Tested on Windows 10 x64.

Note: this script does not remove the files that are opened by a Windows process or if the file paths are more than 255 characters.

Written by kami on Thursday August 9, 2018
Permalink - Tags: powershell, windows, cmd

Lazy show Windows volume information

If you need to retrieve verbose volume information, including the UNC/Win32 path, you can check out this repo https://github.com/ader1990/storage-info.

Statically compiled binaries for x86/x64 can be downloaded from the repo.

The x64 binary can be downloaded from https://github.com/ader1990/storage-info/blob/master/Binaries/storage-info.exe.

These binaries work on Windows and do not require any external dependency.

Tested on Windows 7 x86, Windows 10 x64 and Windows Server 2012 R2.

Written by kami on Friday September 1, 2017
Permalink - Tags: windows, binary, powershell, cmd, github, winapi