d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > How To Use Run, Cmd & Diskpart Revised
Closed New Topic New Poll
Member
Posts: 1,418
Joined: Jul 4 2018
Gold: 990.01
Nov 10 2021 11: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)



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)

Probably a good idea to get the Windows key before a reinstall, if the computer did not come stock with the current operating system, the Windows key on the sticker will not be correct.

I make my system reserved partitions bigger before installing Windows too, because some apps like its own backup app, will not work with the newest version of Windows 10 default size setting.

Its all in my cheat sheet and so easy now, legal weed makes this all bearable and that's all I have to say about that lol

There seems to be a troll following this page with account name purplex and has got my last 2 revised posts closed I suppose because some d2jsp.org staff do not understand English and or conform to their own reporting and spamming policy. After the law suite all parties names will be released.

Dear d2jsp.org I have reported this troll named purplex for spam probably a dozen times and have not responded to them on this post as your rules state, because when I did try to help them on my second one of these post, then showing this was only a troll not a person asking or giving valid advice my post was then closed by a staff member. Please get this troll purplex off this wonderful and usually civil website, I really enjoy my relax time using this website, after years of helping and protecting molested kids for the United States Government as well as many other ventures I have done in my life most not very safe. I have built and fixed tons of computers and use this information almost daily, the troll purplex is making up un-factual based scenarios to make my advice look wrong and saying its all useless when that's not even possible, these are all Windows apps, processes and servers, I'm sure they bought this jsp account and are now spamming my page with it, maybe they are a computer repair technician looking for job security, no matter what the case they are harassing me against jsp rules please keep in mind a d2jsp.org staff member moved the first one of these computer info help posts to this forum, I really am not looking to make international lawsuits my next area for study, so please get this troll with account name purplex off this great website, they have even started privet messaging me apologizing then getting rude at the end of the message again.






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

This post was edited by HPonjsp on Nov 10 2021 11:04am
Member
Posts: 1,418
Joined: Jul 4 2018
Gold: 990.01
Nov 11 2021 12:19pm
Unless it has been changed in the last few months, the Legacy version of Windows 10 makes a 50MB system reserved partition
I'm sure it will be fixed eventually but 50MBs is not enough for the Windows back-up app to create back-up discs
All the older versions of Windows and the UEFI version make it 100MB-500MB and worked great
If the computer has UEFI I always use it and set the PC's BIOS to only boot UEFI
(It's a chip built into the mother board to stop some boot loading viruses)
Member
Posts: 1,418
Joined: Jul 4 2018
Gold: 990.01
Nov 12 2021 02:23pm
I found Microsoft accounts save computer settings weather they are right or wrong
Instead of messing with somebody's messed up settings I make them a new Microsoft account
Member
Posts: 4,137
Joined: Oct 2 2008
Gold: 796.00
Nov 12 2021 07:50pm
Quote (HPonjsp @ Nov 12 2021 03:23pm)
I found Microsoft accounts save computer settings weather they are right or wrong
Instead of messing with somebody's messed up settings I make them a new Microsoft account


could you elaborate further?

This post was edited by purplex on Nov 12 2021 07:54pm
Member
Posts: 1,418
Joined: Jul 4 2018
Gold: 990.01
Nov 14 2021 07:35am
I think I got the whole process as complete as possible knowing there is a million configurations of these PC things now, and in the first page
please move this post to the closed section to become a handy bookmark bump bot lol

closed

Member
Posts: 1,418
Joined: Jul 4 2018
Gold: 990.01
Nov 14 2021 07:37am
closed
Member
Posts: 1,418
Joined: Jul 4 2018
Gold: 990.01
Nov 14 2021 07:39am
closed
Member
Posts: 1,418
Joined: Jul 4 2018
Gold: 990.01
Nov 14 2021 07:44am
closed
Member
Posts: 4,137
Joined: Oct 2 2008
Gold: 796.00
Nov 14 2021 10:27am
Quote (HPonjsp @ Nov 14 2021 08:35am)
I think I got the whole process as complete as possible knowing there is a million configurations of these PC things now, and in the first page
please move this post to the closed section to become a handy bookmark bump bot lol

closed


what process are you referring to?
Go Back To Computers & IT Topic List
Closed New Topic New Poll