-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate
More file actions
45 lines (22 loc) · 1.18 KB
/
Copy pathupdate
File metadata and controls
45 lines (22 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Install-Module PSWindowsUpdate
Import-Module PSWindowsUpdate
Get-WindowsUpdate -Install -AcceptAll -AutoReboot
usoclient StartScan
winget upgrade --all
sfc /scannow
Dism /Online /Cleanup-Image /ScanHealth
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Start ms-settings:windowsupdate
(Opens Windows Update settings)
UsoClient StartScan
(Forces Windows Update to start checking for updates)
Get-HotFix | Sort-Object InstalledOn -Descending
(Shows installed updates/hotfixes, sorted from newest to oldest)
sfc /scannow
(Checks Windows system files and attempts to repair any corrupted files)
DISM /Online /Cleanup-Image /RestoreHealth
(Repairs the Windows system image. This is often run before or after the command "sfc /scannow", if the system has errors.)
Install-Module -Name PSWindowsUpdate -Force
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Get-ComputerInfo | Select-Object WindowsProductName, OsVersion, CsProcessors
Get-CimInstance