POWERSHELL FOR BEGINNERS ONLY

Discussion in 'Windows 10' started by parrish, Jul 13, 2025.

Thread Status:
Not open for further replies.
  1. parrish

    parrish MDL Junior Member

    Oct 16, 2016
    65
    32
    0
    POWERSHELL FOR BEGINNERS ONLY

    WINDOWS 10 POWERSHELL SHORTS COGENT AND CONCISE WIN KEY AND X TOGETHER

    PRESS WIN KEY AND X TO RETURN TO AN EARLIER RESTORE POINT, INTER ALIA

    PRESS WINDOWS KEY AND X TOGETHER TO ENTER ADMIN POWERSHELL

    press the Windows + X shortcut key combination


    SEE RESTORE POINTS: 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".

    systempropertiesprotection.exe

    DO A SCAN DISK:

    HERE: CHECK DISK

    chkdsk C: /f /r

    OR, BETTER

    echo y|chkdsk C: /f/r
    shutdown /r


    DO A DISK DEFRAG:


    Examples:
    Defrag C: /U /V
    Defrag C: D: /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:

    dism /online /cleanup-image /checkhealth

    ALSO:

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

    DISM.exe /Online /Cleanup-image /Restorehealth

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

    OR,

    SFC /scannow

    SFC /scannow

    systemreset -cleanpc


    CLEAR DNS CACHE

    ipconfig /flushdns

    open the Security Policy Editor, which configures the Local Security Policies for the machine. To do this, click on the Start button and then type secpol.msc

    open the Group Policy Editor instead by using the command gpedit.msc

    Apply group policies:

    1. Set telemetry level to 0 = security.

    Press WIN+R key and type
    gpedit.msc <enter> to run the editor

    Configure the policy value for Computer Configuration >> Administrative Templates>>Windows Components >> Data Collection and Preview Builds>> "Allow Telemetry" to "Enabled" with "0 - Security [Enterprise Only]" selected in Options.
     
  2. 12 lb Turkey

    12 lb Turkey MDL Member

    Nov 24, 2022
    137
    85
    10
    What part of this tutorial is specific to PS (except for "powershell Get-ComputerRestorePoint"), and doesn't run in CMD?

    This line doesn't work in PS:
    Code:
    echo y|chkdsk C: /f/r
    
     
  3. CaptainKirk1966

    CaptainKirk1966 Former MDL Guru
    Staff Member

    Oct 31, 2009
    2,735
    1,667
    90
    I'm closing this. The OP clearly misunderstands powershell.