Windows CMD

/Windows CMD
Windows CMD 2017-11-09T09:09:22+00:00
List .net versions

CMD

C:\users\mhn>dir %WINDIR%\Microsoft.Net\Framework\v*

*Alle installerede versioner af  .net bliver listet, dog skal kan CMD ikke vise .net over 4.0, der skal du bruge powershell

View Product Key

CMD

C:\users\mhn>wmic path softwarelicensingservice get OA3xOriginalProductKey

*Her får du vist din produkt nøgle

System File Checker

CMD

C:\users\mhn>SFC /scannow

*Husk at kør CMD som Administrator

*Denne kommando lader Windows scanne dit system igennem for fejl i filer og prøve på at reparere dem

Robocopy backup

CMD

C:\users\mhn>c:\users\mathias\documents f:\backup\documents /copyall /e /r:0 /dcopy:t /mir

*Dette laver en komplet backup af den destination som du vælger.

Run Commands

Open Documents Folder documents
Open Videos folder videos
Open Downloads Folder downloads
Open Favorites Folder favorites
Open Recent Folder recent
Open Pictures Folder pictures
Adding a new Device devicepairingwizard
About Windows dialog winver
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
Connect to a Projector displayswitch
Control Panel control
Create A Shared Folder Wizard shrpubw
Create a System Repair Disc recdisc
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
IExpress Wizard iexpress
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
Microsoft Management Console mmc
Microsoft Support Diagnostic Tool msdt
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
Signout logoff
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
Turn Windows features on or off optionalfeatures
User Account Control Settings useraccountcontrolsettings
Utility Manager utilman
Volume Mixer sndvol
Windows Action Center wscui.cpl
Windows Activation Client slui
Windows Anytime Upgrade Results windowsanytimeupgraderesults
Windows Disc Image Burning Tool isoburn
Windows Explorer explorer
Windows Fax and Scan wfs
Windows Firewall firewall.cpl
Windows Firewall with Advanced Security wf.msc
Windows Journal journal
Windows Media Player wmplayer
Windows Memory Diagnostic Scheduler mdsched
Windows Mobility Center mblctr
Windows Picture Acquisition Wizard wiaacmgr
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
Versione Windows winver
WMI Management wmimgmt.msc
WordPad write
XPS Viewer xpsrchvw
Check Disk

CMD

C:\users\mhn>chkdsk /f /r C:

*Husk at kør CMD som Administrator

* Skift C: ud med hvad end drevbogstav du vil ha’ tjekket

*Denne kommando chekker din disk igennem for fejl i filer og prøve på at reparere dem

Computer model mm.

CMD

C:\users\mhn> wmic computersystem get model,name,manufacturer,systemtype

*Denne kommando giver dig producent, modelnavn, hostnavn, og 32 eller 64 bit type.

Map netværks drev

CMD

C:\users\mhn> Net use X: \\192.168.25.2\Faelles_Drev Kmmdat@2014! /USER:Mathias

*Denne kommando happer et netværks drev med bogstavet X, som peger på 192.168.25.2 i mappen fælles_drev med koden: Kmmdat@2014! og brugeren: Mathias.

For at slette et netværks drev (mapning) køres kommandoen

Net use X: /delete

eller

Net use * /delete (for at slette mapningen til alle netværks drev)

Find netværks drev brugere & password

CMD

C:\users\mhn> wmic netuse where LocalName=”Z:” get UserName /value

*Denne kommando giver dig navnet / credentials på den bruger som har mappet netværks drevet

eksempel.

UserName=Mitdomæne\Administrator

Oplysninger om netværksdrev i Regedit

Regedit

HKEY_CURRENT_USER\Network\

*Her kan du se de individuelle oplysninger om hvert netværksdrev

Connection Type, Provider Name, Provider Type, Remote Path, Username osv.

Hvis Username Står til 0x00000000(0), så betyder det at det er den aktive bruger som man er på der har mappet drevet.

Windows 10 oprydning

C:\Users\MHN>Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase

*Dette script ryder op i din windows.old folder samt unødvendige update filer, når den er færdig stå der “Sucessfully”.

eksempel

[==========================100.0%==========================]

The operation completed successfully.

Se Windows aktiverings status

C:\Users\MHN>slmgr /xpr

*Denne kommando åbner en dialog boks hvor status på dit Windows vil fremgå.

Læs txt filer i CMD

C:\Users\MHN>more TestTekstfil.txt

*Denne kommando åbner læser en fil i CMD.