Jump to content

WINDOWS 10 POWERSHELL SHORTS COGENT AND CONCISE


humble3d

Recommended Posts

WINDOWS 10 POWERSHELL SHORTS COGENT AND CONCISE

PRESS WINDOWS KEY AND X TOGETHER TO ENTER ADMIN POWERSHELL

press the Windows + X shortcut key combination

Windows File Explorer keeps opening randomly

I HAVE LOTS TO LEARN...

SEE RESTORE POINTS:

OPEN POWER SHELL WIN KEY AND X KEY

Here is how to show restore points using PowerShell: Open PowerShell as an administrator and Type the following command and press Enter.

SEE RESTORE POINTSl

Get-ComputerRestorePoint

MAKE A RESTORE POINT:

CREATE RESTORE POINT VIA CMD ADMIN

To create a restore point in Windows 10 using the command line, open an elevated Command Prompt and type the following command: "systempropertiesprotection.exe".
Explanation:

DO A SCAN DISK:

HERE: CHECK DISK

chkdsk 😄 /f /r

OR, BETTER

echo y|chkdsk 😄 /f/r
shutdown /r


DO A DISK DEFRAG:


Examples:
  Defrag 😄 /U /V
  Defrag 😄 😧 /TierOptimize /MultiThread
  Defrag C:\mountpoint /Analysis /U
  Defrag /C /H /V


DO A SYSTEM FILE CHECKER
SFC /scannow

SFC /scannow

ALSO:

dism /online /cleanup-image /checkhealth

ALSO:

dism /online /cleanup-image /Restorehealth /source:repairsource\install.wim

ALSO:

systemreset -cleanpc

ALSO:

systemreset -cleanpc'

 

To create a restore point in Windows 10 with PowerShell, you need to do the following:

    Open PowerShell as Administrator.
    Type or copy-paste the following command:

    Checkpoint-Computer -Description "RestorePoint1" -RestorePointType "MODIFY_SETTINGS"

SEE ALSO:

ALSO:

dism /online /cleanup-image /checkhealth

ALSO:

dism /online /cleanup-image /Restorehealth /source:repairsource\install.wim

 
ALSO:

systemreset -cleanpc


CLEAR RUNS MUST BE MADE WITH A POWERCHELL ADMINISTRATOR  WIN KEY & X

From the desktop, press the Windows + X shortcut key combination.
In the Menu, select Command Prompt (Admin).
NOTE: DISM can only be run from Windows PowerShell (Admin).

URGENT:

FOR POWERSHELL:

NEED TO GET TO C:\WINDOWS\system32>

NOT THE LOWEL LEVER

THEN CAN ENTER:

DISM.exe /Online /Cleanup-image /Restorehealth

OR,

SFC /scannow

SFC /scannow

ALSO:

dism /online /cleanup-image /checkhealth

ALSO:

dism /online /cleanup-image /Restorehealth /source:repairsource\install.wim

install.wim /dotnetfx35.exe

ALSO:

systemreset -cleanpc

ALSO:

systemreset -cleanpc'


I recently ran DISM/SFC on my Win10 system

OR ANY NEW STRING REPAIR RUN NEW STING LEARNED TO FIX WINDOWS 10 ....

From the desktop, press the Windows + X shortcut key combination.
In the Menu, select Command Prompt (Admin).
NOTE: DISM can only be run from Windows PowerShell (Admin).

On the User Account Control (UAC) prompt, click Yes.

REPAIR WIN 10 FILMS
https://www.google.com/search?q=repair+rstrui.exe+windows+10&client=firefox-b-1-d&sca_esv=b59cd4dbe0a194eb&ei=lly6Z8-CG7v6wbkPqP6C4AM&oq=REPAIR+rstrui.exe&gs_lp=Egxnd3Mtd2l6LXNlcnAiEVJFUEFJUiByc3RydWkuZXhlKgIIADIFECEYoAEyBRAhGKABMgUQIRigATIFECEYoAFIomBQiBVY8kRwBHgBkAEAmAF8oAGDB6oBAzUuNLgBAcgBAPgBAfgBApgCDaAChQjCAgoQABiwAxjWBBhHwgILEAAYgAQYkQIYigXCAgoQABiABBhDGIoFwgIQEC4YgAQY0QMYQxjHARiKBcICCBAAGIAEGLEDwgIOEC4YgAQYsQMY0QMYxwHCAgsQLhiABBixAxiDAcICBRAAGIAEwgIREC4YgAQYsQMY0QMYgwEYxwHCAgsQLhiABBjRAxjHAcICFhAuGIAEGLEDGNEDGEMYgwEYxwEYigXCAg0QABiABBhDGMkDGIoFwgILEAAYgAQYkgMYigXCAg0QABiABBixAxhDGIoFwgIOEC4YgAQYsQMYxwEYrwHCAg0QLhiABBixAxhDGIoFwgITEC4YgAQYsQMYQxiDARjUAhiKBcICDRAAGIAEGLEDGIMBGArCAgsQLhiABBjHARivAcICBxAAGIAEGArCAgoQLhiABBjUAhgKwgIcEC4YgAQYsQMYQxiKBRiXBRjcBBjeBBjfBNgBAcICDhAAGIAEGJECGLEDGIoFwgIREAAYgAQYkQIYsQMYgwEYigWYAwCIBgGQBgi6BgYIARABGBSSBwM3LjagB41X&sclient=gws-wiz-serp

HELP SCRIPT=  DISM.ex /?

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
PS C:\Windows\system32> DISM.exe /?

OPEN CMD;  CLICK RUN AS ADMIN: ENTER THAT BELOW:

DISM.exe /Online /Cleanup-image /Restorehealth

Allow the DISM tool to finish working before you close the Command Prompt window. This may take a few minutes.

After the DISM scan is complete, restart your computer and try the SFC again.
If SFC found Corrupt Files but was unable to fix some of them, restarting your computer in Safe Mode and run the sfc /scannow command again.

 

You must be an administrator running a console session in order to
use the sfc utility.

In the search bar, type CMD.
Right-click CMD.exe and select Run as Administrator.
On the User Account Control (UAC) prompt, click Yes.

In the command prompt window, type SFC /scannow and press Enter.

System File Checker (SFC) utility checks the integrity of Windows System Files and Repairs them if required.

After the process is complete, reboot the computer.


Distinguished Member
Andr-Tech


Repair Windows with SFC or DISM

Repairing missing or corrupted system files in Microsoft Windows

Over time, Windows System Files may become Corrupted. When that happens, Windows won’t be able to use them, and your PC performance can suffer. That’s why it’s so important to restore your Windows System Files as soon as they get Corrupted, because they inevitably will.

The Windows system tools SFC and DISM can only be used with text commands, it does not require any specific understanding, making the tools appealing to all users.

What Is the Difference Between SFC and DISM?

DISM

DISM (Deployment Image Servicing and Management) is the most powerful repair tool in Windows, and it can prepare, modifying, and repairing system images.

To download and replace faulty content through Windows Update, you'll need an active internet connection.

Furthermore, DISM corrects faulty files in the OS's image's component store, which the SFC requires to complete a successful repair. It’s only available in newer versions of Windows, including Windows 11, 10, 8, and 8.1. But you won’t be able to use DISM to repair Windows 7.

SFC

SFC is the actual system File Checker that can be used to resolve issues caused by Missing or Damaged System Files. This Tool can also tell if a file has been updated or replaced with an older version. SFC will get the right version from the Windows Store and replace the changed file in this scenario. It comes in very handy when your computer is infected with Malware or Viruses. You can rapidly fix your Windows OS with this SFC Tool.

The results of the SFC scan will depend on whether or not the SFC finds any corrupted files. There are four possible outcomes:

“Windows Resource Protection did not find any integrity violations.” This message means that your system files are fine.
“Windows Resource Protection could not perform the requested operation.” If Windows is having trouble, restart your computer in safe mode and try again.
“Windows Resource Protection found corrupt files and successfully repaired them.” This means that your corrupt files have been fixed. You’ll receive a link to the details of these repairs, should you wish to check exactly what happened. Restart Windows to complete the process.
“Windows Resource Protection found corrupt files but was unable to fix some of them.” This means that you have some corrupt system files, and you’ll need to do more work. Running the DISM repair tool.
(SFC) System File Checker

Running SFC first is a good idea if you're having issues. If it doesn't work, you might want to try DISM.

Windows 10, 8, and 7 is the same, the only difference is in how you open it.

Run System File Checker (SFC) from within Windows as an Administrator:

Windows 11, 10, and 8 or 8.1

From the desktop, press the Windows + X shortcut key combination.
In the Menu, select Command Prompt (Admin).
NOTE: System File Checker can only be run from Windows PowerShell (Admin).

On the User Account Control (UAC) prompt, click Yes.
DISM-1.png

In the Command Prompt window, type SFC /scannow and press Enter.
SFC-4.png

System File Checker (SFC) utility checks the integrity of Windows System Files and Repairs them if required.
SFC-5.png

After the process is complete, reboot the computer.


Click Start.
In the search bar, type CMD.
Right-click CMD.exe and select Run as Administrator.
On the User Account Control (UAC) prompt, click Yes.
In the command prompt window, type SFC /scannow and press Enter.
System File Checker (SFC) utility checks the integrity of Windows System Files and Repairs them if required.

After the process is complete, reboot the computer.
DISM (Deployment Image Servicing and Management)

Windows 11, Windows 10, and Windows 8 or 8.1

DISM Can Not be used to Repair Windows OR WITHOUT ADMIN POWER USERS

press the Windows + X shortcut key combinatioN TO ACCESS POWERSHELL PROPROMP

From the desktop, press the Windows + X shortcut key combination.
In the Menu, select Command Prompt (Admin).
NOTE: DISM can only be run from Windows PowerShell (Admin).

On the User Account Control (UAC) prompt, click Yes.
DISM-1.png

In the command prompt window, type DISM.exe /Online /Cleanup-image /Restorehealth and press Enter to run the DISM tool.

DISM-3.png

Allow the DISM tool to finish working before you close the Command Prompt window. This may take a few minutes.
After the DISM scan is complete, restart your computer and try the SFC again.
If SFC found Corrupt Files but was unable to fix some of them, restarting your computer in Safe Mode and run the sfc /scannow command again.


https://github.com/microsoft/PowerToys

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...