Jump to content

POWERSHELL FOR BEGINNERS


humble3d

Recommended Posts

Posted

POWERSHELL FOR BEGINNERS  SHORT COURSE

WINDOWS 10 POWERSHELL SHORTS COGENT AND CONCISE  WIN KEY AND X KEY 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 😄 /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:

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

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...