Posts

Showing posts from 2020

Disable WSL shell beeps in Windows

Set bell-style none in ~/.inputrc to silence all shell beeps. This stops the annoying tones if you attempt to tab-complete under WSL(2) in Windows 10

AD runas admin

Target: %SystemRoot%\system32\runas.exe /user:DOMAIN\user-admin "cmd /c Start /B mmc.exe %SystemRoot%\system32\dsa.msc Start in: %WinDir%\system32 

Linux stress testing

sudo apt-get install stress sudo stress --cpu 4 --io 4 --timeout 30

Powershell to retrieve networked computer's installed programs

Get-CimInstance -ComputerName PC-NAME -ClassName win32_product -ErrorAction SilentlyContinue| Select-Object PSComputerName, Name, PackageName, InstallDate | Out-GridView