d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > How To Use Run, Cmd & Diskpart Revised
12Next
Closed New Topic New Poll
Member
Posts: 1,418
Joined: Jul 4 2018
Gold: 990.01
Nov 4 2021 01:01am
HOW TO USE RUN, CMD & DISKPART REVISED
(For Experienced Users This Info Mite Make A Easy Reference Guide)
(For Beginners This Info Mite Give You An Idea Of What Can Be Done)
(If Your Unsure About Something Please Do Some Research)
(There Are Many Free Resources Online In Videos & Articles)
(For Some Reason This Info Was Scattered In Hundreds Of Places)
(Please Do Not Ask Me Any Questions I Am Probably Busy Playing Diablo)
(I Will Not Answer Any Questions I Did Not Have Anybody To Ask & I Fix Them All)
(Thanks For Viewing My Post I Hope My Cheat Sheet Helps Best Of Luck Saving Or Making Money)




ALWAYS TYPE exit & PRESS ENTER TO CLOSE COMMAND PROMPT & DISKPART WHEN DONE








TO OPEN COMMAND PROMPT WHEN USING A WINDOWS INSTALLATION APP OR REPAIR TOOL


Press: Shift + F10 (Make Sure FN-Keys Are Off & F-Keys Are On In Bios)


Or Select: Repair Your Computer/ Advanced Options/ Troubleshoot








TO OPEN COMMAND PROMPT FROM OUTSIDE OF WINDOWS W/ CURRENT INSTALLED WINDOWS


Follow These Steps From Booted Up Windows Computer:

Open Settings App/ Update & Security/ Recovery/ Restart Now
Select Troubleshoot/ Advanced Options/ Chose Account/ Enter Password








TO OPEN COMMAND PROMPT AS ADMIN FROM COMMAND PROMPT AS NON ADMIN TYPE:


powershell -command "start-process cmd -verb runas"


This Doesnt Always Work But Maybe Type: c: (Press: Enter Then Type:)
runas /user:(computer Name) cmd (Press: Enter Then Type Password & Enter)








USING SLMGR.VBS COMMAND IN COMMAND PROMPT TO MANAGE WINDOWS KEYS

To Open Run App Press: Windows Key + R
To Open Command Prompt As Admin Type: cmd (Press: Ctrl + Shift + Enter)


slmgr.vbs /dli (To Get Basic Info Of Activated Windows Key)
slmgr.vbs /dli all (To Get Basic Info Of Windows Keys From All Time)
slmgr.vbs /dlv (To Get Detailed Info Of Activated Windows Key)
slmgr.vbs /dlv all (To Get Detailed Info Of Windows Keys From All Time)
slmgr.vbs /xpr (To Get The Install Expiration Of A Volume Windows Key)
slmgr.vbs /upk (To delete Current Windows Key)
slmgr.vbs /ipk (Product Key) (To Add A New Windows Key Old One Will Erase)
slmgr.vbs /ato (To Verify Key From Windows Servers)








USING GPEDIT.MSC COMMAND IN RUN TO CHANGE ADVANCED COMPUTER & USER SETTINGS

To Open Run App Press: Windows Key + R


To Open Local Group Policy Editor As Admin Type:
gpedit.msc (Press: Ctrl + Shift + Enter)


TO TURN OFF WINDOWS DRIVERS UPDATES OR OTHER UPDATE OPTIONS CLICK:
computer configuration/ Administrative Templates/ Windows Components/ Windows Update/ Do not include drivers with Windows Update/ enable the policy








USING RSTRUI COMMAND IN RUN TO OPEN WINDOWS SYSTEM RESTORE POINT APP

To Open Run App Press: Windows Key + R


To Open Windows Restore Point App Type: rstrui








USNING DXDIAG COMMAND IN RUN TO CHECK COMPUTER SPECS WITH RUN APP

To Open Run App Press: Windows Key + R


To Check System, Video & Sound Devices Specs With Run App Type: dxdiag
Click No If Diver Information Is Not Needed Or Yes If It Is








USING MSCONFIG COMMAND IN RUN TO OPEN WINDOWS SYSTEM CONFIGURATION APP

To Open Run App Press: Windows Key + R


To Open System Configuration App Type: msconfig








THE DESCRIPTION GIVES THE ANSWER __s IN THE NEXT PROCESSES ARE EITHER

Current Drive Letter= (__:)

Current Disk Or Partition Number= (__)

Drive Labels (Label Length May Be Limited)= ("___")

Format Type(FAT,FAT32,NTFS,exFAT)= (fs=____)

Partition Size In MBs= (size=____)








USING WINDOWS OFFLINE SYSTEM FILE CHECKER/REPAIR & ONLINE DISM REPAIR APP

To Open Run App Press: Windows Key + R
To Open Command Prompt As Admin Type: cmd (Press: Ctrl + Shift + Enter)



To Select Drive To Fix Type: __:
To Run System Check Type: sfc /scannow
To Reparir System Type: dism /online /cleanup-image /restorehealth
To Run System Check Type: sfc /scannow








USING CHKDSK COMMAND IN COMMAND PROMPT TO CHECK & FIX DISK DRIVES

To Open Run App Press: Windows Key + R
To Open Command Prompt As Admin Type: cmd (Press: Ctrl + Shift + Enter)



To Run Check Disk Type: chkdsk __: /f /r /x

chkdsk __: /f (Fixes Disk Errors, Clean Only)
chkdsk __: /v (Shows File Being Scaned Name)
chkdsk __: /r (Fixes Disk Errors, Rewrites Data & Labels Bad Sectors)
chkdsk __: /x (Forces Drive Being Scaned To Dismount If Necessary)








USING XCOPY COMMAND IN COMMAND PROMPT TO CLONE A DISK DRIVE TO ANOTHER

To Open Run App Press: Windows Key + R
To Open Command Prompt As Admin Type: cmd (Press: Ctrl + Shift + Enter)


To Start Complete Clone Type: xcopy __:\ __:\ /s /e /h /i /c /y



The Parameters Mean:
● /s: copy directories and subdirectories, unless they are empty. If you omit “/s”, xcopy will work within a single directory.
● /e: copy all subdirectories, even if they are empty.
● /h: copy files with hidden and system file attributes.
● /i: if in doubt always assume the destination is a folder.
● /c: continue copying even if an error occurs.
● /y: suppress prompt to confirm overwriting a file.







USING DISKPART COMMAND IN COMMAND PROMPT TO MANAGE DISK DRIVES

All Disk Drive Sizes Listed & Input Are In Megabyte(MB) Incraments
1 Gigabyte(GB) Is 1000 To 1024 Megabytes(MBs) Depending On Year Of Equiptment

To Open Run App Press: Windows Key + R
To Open Command Prompt With Type: cmd (Press: Enter)
To Open Diskpart Type: diskpart



TO MANAGE REMOVEABLE MEDIA DISK DRIVE OR HARD DISK DRIVE VOLUMES USE LIST VOL:

list volume (Lists All Non Hidden HDD & RMDD Volumes Currently Active On PC)
sel volume __ (To Select A Volume Number)


TO MANAGE A HARD DISK DRIVE USE LIST DISK & LIST PARTITION:

list disk (Lists All Hard Disk Drives Connected To PC)
sel disk __ (To Select A Disk Drive Number)
list par (Lists All Hidden & Non Hidden Partitions On Selected Disk Dive)
sel par __ (To Select A Partition Number)
Detail Par (Lists The Properties(Partition Info) Of The Selected Partition)



TO PREPARE OR CHANGE PROPERTIES OF SELECTED DISK DRIVE USE THESE COMMANDS:

clean (To Erase A Drive)(Data Can Be Recovered)
clean all (To Erase & Zero A Drive)(Data Cant Be Recovered)


convert gpt (Converts Drive To New GPT For UEFI/ +2TB Storage Drives)
convert mbr (Converts Drive To Old MBR For Legacy -2TB Drives/ Flash Drives)


create partition primary (For Full Size Partition)
create partition primary size=_____ (For Multiple Partitions)
create extended partition (For Adding Volumes To This Partition)


active (For A Bootable Drive)
inactive (For A Non Bootable Drive)


format fs=____ quick label="___" (For Quick Format & Label)
format fs=____ full label="___" (For Full Format & Label)(ntfs/fat32)
format fs=____ quick (For Quick Format)(Data Can Be Recovered)
format fs=____ full (For Full Format)(Data Cant Be Recovered)


assign (To Assign Random Drive Letter)
assign letter = __ (To Assign A Specific Drive Letter)
remove letter = __ (To Remove A Drive Letter)


shrink (To Shrink The Partition Maximum Amount Available)
shrink querymax (lists Size Partition Can Be Reduced To)
shrink desired=____ (To Shrink The Partition By A Specific Amount)
shrink minimum=____ (To Shrink The Partition By A Minimum Amount)


extend size=____ (To Extend Partition By A Specific Amount)
extend (To Extend Partition To Maximum Size Available)


delete partition (Deletes A Inactive Partition With No System Files)
delete partition override (Deletes Protected System Partitions)


attributes disk (Show If Drive Is Read Only Or Not)
attributes disk set readonly (Then Files Cant Be Written To Drive)
attributes disk clear readonly (Then Files Can Be Written To Drive)





IN THE NEXT PROCESSES AFTER MAKING SYSTEM RESERVED PARTITION AND
INSTALLING OPERATING SYSTEM USE DISK MANAGEMENT TO REMOVE ASSIGNED LETTER

Use (Windows Key + X) To Open Disk Management
Right Click System Partition To Change/Remove Letter T
Only If Using BCDboot To Copy System Partition Files To A 2nd Drive
For Fresh Install & On PCs With Only 1 Drive Use Windows Install App




HOW TO MAKE UEFI SYSTEM RESERVED PARTITION WTIH DISKPART & BCDBOOT:

clean
convert gpt
create partition efi size=____
format fs=fat32 quick label="System"
assign letter = t (Skip This Step & Go To Next Step On Fresh Install)
exit (Stop Here & Use Win Install App On Fresh Install)(Create New Par & Del)
bcdboot C:\Windows /s T: /f UEFI



HOW TO MAKE A UEFI MICROSOFT RESERVED PARTITION WITH DISKPART:

create partition msr size=____ (To Create A MSR Partition)(16MB--128MB)




HOW TO MAKE LEGACY SYSTEM RESERVED PARTITION WTIH DISKPART & BCDBOOT:

clean
convert mbr
create partition primary size=____
format fs=ntfs quick label="System Reserved"
active
assign letter = t (Skip This Step & Go To Next Step On Fresh Install)
exit (Stop Here & Use Win Install App On Fresh Install)(Create New Par & Del)
bcdboot C:\Windows /s T: /f BIOS




HOW TO MAKE LEGACY & UEFI SYSTEM RESERVED WTIH DISKPART & BCDBOOT:
This Process Can Only Be Done On A Second Drive Connected To A PC With A OS

clean
convert mbr
create partition primary size=____
format fs=ntfs quick label="System Reserved"
active
assign letter = t
exit
bcdboot C:\Windows /s T: /f ALL




HOW TO MAKE RECOVERY PARTITION WTIH DISKPART: (THIS STEP IS NOT NECESSARY)
(Windows Makes A Recovery Partition If System Reserved Partition Is Too Small)

create partition primary
format quick fs=ntfs label="Recovery"
assign letter="R"
set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
gpt attributes=0x8000000000000001
Member
Posts: 4,137
Joined: Oct 2 2008
Gold: 796.00
Nov 4 2021 02:43pm
this is completely useless spam, there is nothing worth sharing in this. it's missing so much that it's arguably harmful.
Member
Posts: 1,418
Joined: Jul 4 2018
Gold: 990.01
Nov 4 2021 07:21pm
Bump
Member
Posts: 4,137
Joined: Oct 2 2008
Gold: 796.00
Nov 4 2021 07:32pm
this was already the top post
Member
Posts: 1,418
Joined: Jul 4 2018
Gold: 990.01
Nov 5 2021 08:24am
Bump
Member
Posts: 4,137
Joined: Oct 2 2008
Gold: 796.00
Nov 5 2021 08:02pm
you suggesting people run SFC before DISM is wrong, and also it's wrong to suggest either of those tools before hard diags on the storage followed by a chkdsk, without both of these things you can actually do damage.

This post was edited by purplex on Nov 5 2021 08:39pm
Member
Posts: 1,418
Joined: Jul 4 2018
Gold: 990.01
Nov 6 2021 11:48am
Bump
Member
Posts: 4,137
Joined: Oct 2 2008
Gold: 796.00
Nov 6 2021 12:15pm
Quote (HPonjsp @ Nov 6 2021 01:48pm)
Bump


this was already the top post, no one has posted in days.
Member
Posts: 1,418
Joined: Jul 4 2018
Gold: 990.01
Nov 6 2021 02:40pm
SOME PRECAUATIONS TO TAKE:

When rebuilding computer from out of state or extremely old and dirty, the foreign dust makes my body sore the whole next day. (weeeeeeeee)

The only time I ever crashed Windows was when I bumped the power button during a update. (I fixed it but still did a fresh install of Windows)

Only a fool wouldn't keep a back up drive with all their files. (I make a USB flash drive with 2 partitions, one set active with a copy of Windows & one not active with all my files)

A SSD drive can only be clean all or full format 1000+ times, so use your SSD drive manufactures app to full clean it for sale or to destroy a virus before a fresh install.
(If SSD drive model does not have a manufacture cleaning app I do a full clean on them but only for the above reasons & they're cheep now/ 1000+ would take forever)
(There is 3rd party apps for cleaning SSDs but as shown in my cheat sheet I only use Windows or Windows approved apps, processes & servers, or parts manufactures apps)
(On SSD drives just do clean or quick format, on old HDD drives any processes can be used endless times, but I recommend a SSD drive for OS & Apps they're amazing)

It is always best todo a fresh install of the operating system if anything goes weird, most the time from installing a 3rd parting apps even the paid ones.
(But some people are stubborn and want it fixed, good luck with them be prepared todo a lot of google researching the problem or problems lol)
Member
Posts: 4,137
Joined: Oct 2 2008
Gold: 796.00
Nov 6 2021 05:28pm
Quote (HPonjsp @ Nov 6 2021 04:40pm)
SOME PRECAUATIONS TO TAKE:

When rebuilding computer from out of state or extremely old and dirty, the foreign dust makes my body sore the whole next day. (weeeeeeeee)

The only time I ever crashed Windows was when I bumped the power button during a update. (I fixed it but still did a fresh install of Windows)

Only a fool wouldn't keep a back up drive with all their files. (I make a USB flash drive with 2 partitions, one set active with a copy of Windows & one not active with all my files)

A SSD drive can only be clean all or full format 1000+ times, so use your SSD drive manufactures app to full clean it for sale or to destroy a virus before a fresh install.
(If SSD drive model does not have a manufacture cleaning app I do a full clean on them but only for the above reasons & they're cheep now/ 1000+ would take forever)
(There is 3rd party apps for cleaning SSDs but as shown in my cheat sheet I only use Windows or Windows approved apps, processes & servers, or parts manufactures apps)
(On SSD drives just do clean or quick format, on old HDD drives any processes can be used endless times, but I recommend a SSD drive for OS & Apps they're amazing)

It is always best todo a fresh install of the operating system if anything goes weird, most the time from installing a 3rd parting apps even the paid ones.
(But some people are stubborn and want it fixed, good luck with them be prepared todo a lot of google researching the problem or problems lol)


this is complete nonsense. you said fool and then said you keep your backup on a flash drive..? you don't need to zero a drive to remove a virus.. there's other things wrong.. you really have nothing to share, you have bad information i'm sorry. nearly everything you share has an issue. your numbers about SSD reformatting are nonsense.. only 1000+ times? that's just odd wording and those numbers aren't generally accurate for how many times a cell can be rewritten..

This post was edited by purplex on Nov 6 2021 05:42pm
Go Back To Computers & IT Topic List
12Next
Closed New Topic New Poll