Commands and Shortcuts

This page is for the exclusive use of Insidious Meme LLC and myTech.Today. You are not allowed to be here. Please leave the page!

Task Manager Control: Cntrl + Alt + Esc = restart hung or frozen task manager

  • If Task Manager ever becomes internally corrupted, kill/close it. Restart it while holding down CTRL, ALT, and SHIFT, and Task Manager will reset ALL internal settings to factory fresh
  • CTRL-SHIFT-ESC will launch Taskmgr without any help from the Shell, so if the Shell/Explorer is dead use this key combo to bring up TM and then reset/restart the shell. Even if your tray is missing and gone, this combo should start it.
  • If the shell can\'t start something or is hung, try Task Manager. It has a mode where it will load without ANY references to the shell32.dll and allow you to start programs like CMD.EXE without the start menu.
  • You can find the binary for any executing process in the process table by right-clicking and pick Show File Location. You can also search it online, but I don\'t know if they have useful info for much.
  • There should be nothing that TaskMgr can\'t kill - it will even escalate privilege and (if you have it) enable debug privilege to attach to and kill apps that way if needed. If TM can\'t kill it, you\'ve got a kernel problem. | CMD | PowerShell | Linux | macOS | Databases | VBScript| ASCIIShell and CMD prompt Commands for Mac, Linux, and Windows

Windows Version from CMD:

<span arial="" helvetica="" sans-serif="" style="font-family:">systeminfo | findstr /B /C:OS Name /C:OS Version

Start Menu and Explorer: (Restart Windows when the Windows interface has crashed and all you have is the CMD prompt)

Start .

TIMEOUT.exe: (pause 10 seconds)


Winsock Reset:

netsh winsock reset

SFC /Scannow to Repair Windows System Files:

sfc /scannow

DISM Error 50, DISM does not support servicing Windows PE with the /Online option (Solved):

dism.exe /Image:<drive letter>:\ /Cleanup-Image /Restorehealth

Windows 10 in Safe Mode with networking:

DISM /Online /Cleanup-Image /RestoreHealth

Reset printer Spooler & Stuff script

Natively Query CSV Files using SQL Syntax in PowerShell: ( [Run from Power Shell]

Import-Csv $env:TEMP\top-tracks.csv | Group-Object Artist |
Select @{Name=Playcount;Expression={($ |
Measure-Object -sum Playcount).sum}}, name |
Where-Object { $_.Playcount -gt 5 -and $ -ne 'Fall Out Boy'} |
Sort-Object Playcount -Descending | Select -First 20
$sql = SELECT TOP 20 SUM(playcount) AS playcount, artist from [$tablename] WHERE artist <> 'Fall Out Boy' GROUP BY artist HAVING SUM(playcount) > 4 ORDER BY SUM(playcount) DESC


chkdsk /f /r C:

Set-execution policy to unrestricted in PowerShell

set-executionpolicy -executionpolicy unrestricted

Install MS Store:

Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register $($_.InstallLocation)\AppXManifest.xml}

How to create a bootable installer for macOS from Apple Gmail MX Record SettingsImport Outlook into Gmail GSMMO

Print the user\'s program list to a text file in the downloads folder [Run from PowerShell, as Admin]:

Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Modified, Publisher, Size, InstallDate | Format-List DisplayName, DisplayVersion, Modified, Publisher, Size, InstallDate > C:\Users\$env:UserName\Downloads\InstalledPrograms-$env:UserName.txt

Make the mouse easier to use - Change Cursor Icon to 'Extra Large Inverted'

Control Panel\Ease of Access\Ease of Access Center\Make the mouse easier to use

reset TCP/IP

netsh int ip reset c:\resetlog.txt

Reset Windows Built-in Apps:

Get-AppxPackage -allusers | foreach {Add-AppxPackage -register $($_.InstallLocation)\appxmanifest.xml -DisableDevelopmentMode}

Clean Up the WinSxS Folder

Dism.exe /online /Cleanup-Image /StartComponentCleanup

Using the /ResetBase switch with the /StartComponentCleanup parameter of DISM.exe on a running version of Windows 10 removes all superseded versions of every component in the component store:

Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase

To reduce the amount of space used by a Service Pack, use the /SPSuperseded parameter of Dism.exe on a running version of Windows 10 to remove any backup components needed for uninstallation of the service pack. A service pack is a collection of cumulative updates for a particular release of Windows.

Dism.exe /online /Cleanup-Image /SPSuperseded

RunAsUser Module

This module has been created to have the ability to run scripts under the current user session while the application executing this script only has SYSTEM access. This is especially useful when performing tasks from RMM(Remote Monitoring and Management) systems that do not have the abilty to execute monitoring components in user-space.


Install the Exchange Online Remote PowerShell Module:

You need to do the following steps in a browser that supports ClickOnce (for example, Internet Explorer or Edge):

Note: ClickOnce support is available in the Chromium-based version of Edge at edge://flags/#edge-click-once, and might not be enabled by default.

In a PowerShell window, load the EXO V2 module by running the following command:

Import-Module ExchangeOnlineManagement

This example connects to Exchange Online PowerShell in a Microsoft 365 or Microsoft 365 GCC organization:

Connect-ExchangeOnline -UserPrincipalName

Configure PowerShell to run remote scripts

Connect-ExchangeOnline -UserPrincipalName

Enable auto-expanding archiving for your entire organization

Set-OrganizationConfig -AutoExpandingArchive

Enable auto-expanding archiving for specific users

Enable-Mailbox <user mailbox> -AutoExpandingArchive

Verify that auto-expanding archiving is enabled

Get-OrganizationConfig | FL AutoExpandingArchiveEnabled

To verify that auto-expanding archiving is enabled for a specific user, run the following command in Exchange Online PowerShell.

Get-Mailbox <user mailbox> | FL AutoExpandingArchiveEnabled

Verify that auto-expanding archiving is enabled

Get-OrganizationConfig | FL AutoExpandingArchiveEnabled

Run the Managed Folder Assistant to apply the new settings


Run the following two commands to start the Managed Folder Assistant for all user mailboxes in your organization

$Mailboxes = Get-Mailbox -ResultSize Unlimited -Filter {RecipientTypeDetails -eq "UserMailbox"}
$Mailboxes.Identity | Start-ManagedFolderAssistant