TechShizz | All posts tagged 'CMD'

Disable Short Filename Creation

Widows Best Practises Analyser sometimes says that a host needs to "disable short file name creation". To do this type this at an elevated command prompt.

 

fsutil.exe behavior set disable8dot3 1

Updating firmware on a HDD/SSD with bitlocker enabled

Run an admin CMD prompt:


Run this for every drive

manage-bde.exe -protectors -disable c:

manage-bde.exe -protectors -disable d:

 

Run Firmware Update via ADMIN

  

REBOOT

 

Run an admin  CMD prompt:

 

manage-bde.exe -protectors -enable c:

manage-bde.exe -protectors -enable d:

List of Run Commands

Open Documents Folder

documents

Open Videos folder

videos

Open Downloads Folder

downloads

Open Favourites Folder

favourites

Open Recent Folder

recent

Open Recent Folder

logoff

Open Pictures Folder

pictures

Adding a new Device

devicepairingwizard

Add Hardware Wizard

hdwwiz

Advanced User Accounts

netplwiz

Advanced User Accounts

azman.msc

Backup and Restore

sdclt

Bluetooth File Transfer

fsquirt

Calculator

calc

Certificates

certmgr.msc

Change Computer Performance Settings

systempropertiesperformance

Change Data Execution Prevention Settings

systempropertiesdataexecutionprevention

Change Data Execution Prevention Settings

printui

Character Map

charmap

ClearType Tuner

cttune

Color Management

colorcpl

Command Prompt

cmd

Component Services

comexp.msc

Component Services

dcomcnfg

Computer Management

compmgmt.msc

Computer Management

compmgmtlauncher

Connessione proiettore di rete

netproj

Connect to a Projector

displayswitch

Control Panel

control

Create A Shared Folder Wizard

shrpubw

Create a System Repair Disc

recdisc

Credential Backup and Restore Wizard

credwiz

Data Execution Prevention

systempropertiesdataexecutionprevention

Date and Time

timedate.cpl

Default Location

locationnotifications

Device Manager

devmgmt.msc

Device Manager

hdwwiz.cpl

Device Pairing Wizard

devicepairingwizard

Diagnostics Troubleshooting Wizard

msdt

Digitizer Calibration Tool

tabcal

DirectX Diagnostic Tool

dxdiag

Disk Cleanup

cleanmgr

Disk Defragmenter

dfrgui

Disk Management

diskmgmt.msc

Display

dpiscaling

Display Color Calibration

dccw

Display Switch

displayswitch

DPAPI Key Migration Wizard

dpapimig

Driver Verifier Manager

verifier

Ease of Access Center

utilman

EFS Wizard

rekeywiz

Event Viewer

eventvwr.msc

Fax Cover Page Editor

fxscover

File Signature Verification

sigverif

Font Viewer

fontview

Game Controllers

joy.cpl

Getting Started

gettingstarted

IExpress Wizard

iexpress

Getting Started

irprops.cpl

Install or Uninstall Display Languages

lusrmgr

Internet Explorer

iexplore

Internet Options

inetcpl.cpl

iSCSI Initiator Configuration Tool

iscsicpl

Language Pack Installer

lpksetup

Local Group Policy Editor

gpedit.msc

Local Security Policy

secpol.msc

Local Users and Groups

lusrmgr.msc

Location Activity

locationnotifications

Magnifier

magnify

Malicious Software Removal Tool

mrt

Manage Your File Encryption Certificates

rekeywiz

Math Input Panel

mip

Microsoft Management Console

mmc

Microsoft Support Diagnostic Tool

msdtev

Mouse

main.cpl

NAP Client Configuration

napclcfg.msc

Narrator

narrator

Network Connections

ncpa.cpl

New Scan Wizard

wiaacmgr

Notepad

notepad

ODBC Data Source Administrator

odbcad32

ODBC Driver Configuration

odbcconf

On-Screen Keyboard

osk

Paint

mspaint

Pen and Touch

tabletpc.cpl

People Near Me

collab.cpl

Performance Monitor

perfmon.msc

Performance Options

systempropertiesperformance

Phone and Modem

telephon.cpl

Phone Dialer

dialer

Power Options

powercfg.cpl

Presentation Settings

presentationsettings

Print Management

printmanagement.msc

Printer Migration

printbrmui

Printer User Interface

printui

Private Character Editor

eudcedit

Problem Steps Recorder

psr

Programs and Features

appwiz.cpl

Protected Content Migration

dpapimig

Region and Language

intl.cpl

Registry Editor

regedit

Registry Editor 32

regedt32

Remote Access Phonebook

rasphone

Remote Desktop Connection

mstsc

Resource Monitor

resmon

Resultant Set of Policy

rsop.msc

SAM Lock Tool

syskey

Screen Resolution

desk.cpl

Securing the Windows Account Database

syskey

Services

services.msc

Set Program Access and Computer Defaults

computerdefaults

Share Creation Wizard

shrpubw

Shared Folders

fsmgmt.msc

Snipping Tool

snippingtool

Sound

mmsys.cpl

Sound recorder

soundrecorder

SQL Server Client Network Utility

cliconfg

Sticky Notes

stikynot

Stored User Names and Passwords

credwiz

Sync Center

mobsync

System Configuration

msconfig

System Configuration Editor

sysedit

System Information

msinfo32

System Properties

sysdm.cpl

System Properties (Advanced Tab)

systempropertiesadvanced

System Properties (Computer Name Tab)

systempropertiescomputername

System Properties (Hardware Tab)

systempropertieshardware

System Properties (Remote Tab)

systempropertiesremote

System Properties (System Protection Tab)

systempropertiesprotection

System Restore

rstrui

Task Manager

taskmgr

Task Scheduler

taskschd.msc

Trusted Platform Module (TPM) Management

tpm.msc

User Account Control Settings

useraccountcontrolsettings

Utility Manager

utilman

Version Reporter Applet

winver

Volume Mixer

sndvol

Windows Action Center

wscui.cpl

Windows Activation Client

slui

Windows Anytime Upgrade Results

windowsanytimeupgraderesults

Windows CardSpace

infocardcpl.cpl

Windows Disc Image Burning Tool

isoburn

Windows DVD Maker

dvdmaker

Windows Easy Transfer

migwiz

Windows Explorer

explorer

Windows Fax and Scan

wfs

Windows Features

optionalfeatures

Windows Firewall

firewall.cpl

Windows Firewall with Advanced Security

wf.msc

Windows Memory Diagnostic Scheduler

mdsched

Windows Mobility Center

mblctr

Windows PowerShell

powershell

Windows PowerShell ISE

powershell_ise

Windows Remote Assistance

msra

Windows Repair Disc

recdisc

Windows Script Host

wscript

Windows Update

wuapp

Windows Update Standalone Installer

wusa

Windows Version

winver

WMI Management

wmimgmt.msc

WordPad

write

WMI Failed Error

This occurs when you have bginfo.exe on your desktop and the information does not load.

Log on as Local Admin

Windows XP and Windows Vista/7/8/10

Click Start, Run and type CMD.EXE

Note: In Windows Vista, you need to open an elevated Command Prompt window. To do so, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.

Type this command and press Enter:

net stop winmgmt

Using Windows Explorer, rename the folder %windir%\System32\Wbem\Repository. (For example, %windir%\System32\Wbem\Repository_bad). %windir% represents the path to the Windows directory, which is typically C:\Windows.

Switch to Command Prompt window, and type the following and press ENTER after each line:

net start winmgmt

EXIT

Useful Commands

Kill a process on a remote computer

taskkill /s {hostname} /f /im winword.exe

See a list of processes on a remote computer

Tasklist /s {hostname} | sort


Cd \program files\microsoft\office14\       >       Outlook /clearviews  /safe

 

Resets all network adapters

netsh int reset all


Repair and applicaion via CLI - (MSI required)

Repair from CLI:  <path>\<exe/msifile> /q REINSTALL=ALL REINSTALLMODE=secum REBOOT=R

 

Install a driver via CLI

Install driver/App: msiexec /I "c:\%MSI%" /quiet /promptrestart /l* C:\installlog.txt

 


Windows Services

Query services

Sc query


Stop & start the spooler

Sc spooler stop

Sc spooler start


If you get operating system errors, run system file checker to try to repair critical OS files

System File Checker: SFC /Scannow

 

Show free disc space

fsutil volume diskfree c

 

Clean Disk  -   c:\windows\cleanmgr.exe /d c: