-
Notifications
You must be signed in to change notification settings - Fork 0
/
01. Maintenance_Commands.txt
338 lines (337 loc) · 19.2 KB
/
01. Maintenance_Commands.txt
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
Set-ExecutionPolicy RemoteSigned -Scope LocalMachine -Force
reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f
$ErrorActionPreference = 'SilentlyContinue'
Get-AppxPackage -AllUsers -name “Microsoft.ZuneMusic” | Remove-AppxPackage
Get-AppxPackage -AllUsers -name “Microsoft.Music.Preview” | Remove-AppxPackage
Get-AppxPackage -AllUsers -name “Microsoft.XboxIdentityProvider” | Remove-AppxPackage
Get-AppxPackage -AllUsers -name "Microsoft.XboxGameOverlay" | Remove-AppxPackage
Get-AppxPackage -AllUsers -name "Microsoft.Xbox.TCUI" | Remove-AppxPackage
Get-AppxPackage -AllUsers -name “Microsoft.BingTravel” | Remove-AppxPackage
Get-AppxPackage -AllUsers -name “Microsoft.BingHealthAndFitness” | Remove-AppxPackage
Get-AppxPackage -AllUsers -name “Microsoft.BingFoodAndDrink” | Remove-AppxPackage
Get-AppxPackage -AllUsers -name “Microsoft.People” | Remove-AppxPackage
Get-AppxPackage -AllUsers -name “Microsoft.BingFinance” | Remove-AppxPackage
Get-AppxPackage -AllUsers -name “Microsoft.3DBuilder” | Remove-AppxPackage
Get-AppxPackage -AllUsers -name “Microsoft.BingNews” | Remove-AppxPackage
Get-AppxPackage -AllUsers -name “Microsoft.XboxApp” | Remove-AppxPackage
Get-AppxPackage -AllUsers -name “Microsoft.BingSports” | Remove-AppxPackage
Get-AppxPackage -AllUsers -name “Microsoft.Getstarted” | Remove-AppxPackage
Get-AppxPackage -AllUsers -name “Microsoft.WindowsMaps” | Remove-AppxPackage
Get-AppxPackage -AllUsers -name “Microsoft.MicrosoftSolitaireCollection” | Remove-AppxPackage
Get-AppxPackage -AllUsers -name “Microsoft.MicrosoftOfficeHub” | Remove-AppxPackage
Get-AppxPackage -AllUsers -name “Microsoft.BingWeather” | Remove-AppxPackage
Get-AppxPackage -AllUsers -name “Microsoft.WindowsPhone” | Remove-AppxPackage
Get-AppxPackage -AllUsers -name “Microsoft.SkypeApp” | Remove-AppxPackage
Get-AppxPackage -AllUsers -name "Microsoft.YourPhone" | Remove-AppxPackage
Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection\AllowTelemetry /v 0 /f
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection\AllowTelemetry /v 0 /f
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent\DisableWindowsConsumerFeatures /v 1 /f
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection\DoNotShowFeedbackNotifications /v 1 /f
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo\DisabledByGroupPolicy /v 1 /f
reg add HKLM\SOFTWARE\Microsoft\Windows\Windows_Error_Reporting\Disabled /v 1 /f
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config\DODownloadMode /v 1 /f
reg add HKLM\SYSTEM\CurrentControlSet\Control\Remote_Assistance\fAllowToGetHelp /v 0 /f
reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled /v 1 /f
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching\SearchOrderConfig /v 1 /f
reg add HKLM\SOFTWARE\Microsoft\Windows_NT\CurrentVersion\Multimedia\SystemProfile\SystemResponsiveness /v 0 /f
reg add HKLM\SOFTWARE\Microsoft\Windows_NT\CurrentVersion\Multimedia\SystemProfile\NetworkThrottlingIndex /v 4294967295 /f
reg add HKLM\SYSTEM\CurrentControlSet\Control\Session_Manager\Memory_Management\ClearPageFileAtShutdown /v 0 /f
reg add HKLM\SYSTEM\ControlSet001\Services\Ndu\Start /v 2 /f
reg add HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\IRPStackSize /v 30 /f
reg add HKLM\SOFTWARE\Microsoft\Windows_NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games\GPU_Priority /v 8 /f
reg add HKLM\SOFTWARE\Microsoft\Windows_NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games\Priority /v 6 /f
reg add HKLM\SOFTWARE\Microsoft\Windows_NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games\Scheduling_Category /v High /f
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\System\EnableActivityFeed /v 0 /f
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\System\PublishUserActivities /v 0 /f
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\System\UploadUserActivities /v 0 /f
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location\Value /v Deny /f
reg add HKLM\SYSTEM\CurrentControlSet\Services\lfsvc\Service\Configuration\Status /v 0 /f
reg add HKLM\SYSTEM\Maps\AutoUpdateEnabled /v 0 /f
reg add HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting\Value /v 0 /f
reg add HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots\Value /v 0 /f
reg add HKLM\System\CurrentControlSet\Control\Session_Manager\Power\HibernateEnabled /v 0 /f
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings\ShowHibernateOption /v 0 /f
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\GameDVR\AllowGameDVR /v 0 /f
Set-Service -Name ALG -StartupType Manual
Set-Service -Name AppIDSvc -StartupType Manual
Set-Service -Name AppMgmt -StartupType Manual
Set-Service -Name AppReadiness -StartupType Manual
Set-Service -Name AppVClient -StartupType Disabled
Set-Service -Name AppXSvc -StartupType Manual
Set-Service -Name Appinfo -StartupType Manual
Set-Service -Name AudioEndpointBuilder -StartupType Automatic
Set-Service -Name AudioSrv -StartupType Automatic
Set-Service -Name Audiosrv -StartupType Automatic
Set-Service -Name AxInstSV -StartupType Manual
Set-Service -Name BDESVC -StartupType Manual
Set-Service -Name BFE -StartupType Automatic
Set-Service -Name BTAGService -StartupType Manual
Set-Service -Name BcastDVRUserService_* -StartupType Manual
Set-Service -Name BluetoothUserService_* -StartupType Manual
Set-Service -Name BrokerInfrastructure -StartupType Automatic
Set-Service -Name Browser -StartupType Manual
Set-Service -Name BthAvctpSvc -StartupType Automatic
Set-Service -Name BthHFSrv -StartupType Automatic
Set-Service -Name CDPUserSvc_* -StartupType Automatic
Set-Service -Name COMSysApp -StartupType Manual
Set-Service -Name CaptureService_* -StartupType Manual
Set-Service -Name CertPropSvc -StartupType Manual
Set-Service -Name ClipSVC -StartupType Manual
Set-Service -Name ConsentUxUserSvc_* -StartupType Manual
Set-Service -Name CoreMessagingRegistrar -StartupType Automatic
Set-Service -Name CredentialEnrollmentManagerUserSvc_* -StartupType Manual
Set-Service -Name CryptSvc -StartupType Automatic
Set-Service -Name CscService -StartupType Manual
Set-Service -Name DPS -StartupType Automatic
Set-Service -Name DcomLaunch -StartupType Automatic
Set-Service -Name DcpSvc -StartupType Manual
Set-Service -Name DevQueryBroker -StartupType Manual
Set-Service -Name DeviceAssociationBrokerSvc_* -StartupType Manual
Set-Service -Name DeviceInstall -StartupType Manual
Set-Service -Name DevicePickerUserSvc_* -StartupType Manual
Set-Service -Name DevicesFlowUserSvc_* -StartupType Manual
Set-Service -Name Dhcp -StartupType Automatic
Set-Service -Name DiagTrack -StartupType Disabled
Set-Service -Name DialogBlockingService -StartupType Disabled
Set-Service -Name DispBrokerDesktopSvc -StartupType Automatic
Set-Service -Name DisplayEnhancementService -StartupType Manual
Set-Service -Name DmEnrollmentSvc -StartupType Manual
Set-Service -Name Dnscache -StartupType Automatic
Set-Service -Name DsSvc -StartupType Manual
Set-Service -Name DsmSvc -StartupType Manual
Set-Service -Name DusmSvc -StartupType Automatic
Set-Service -Name EFS -StartupType Manual
Set-Service -Name EapHost -StartupType Manual
Set-Service -Name EntAppSvc -StartupType Manual
Set-Service -Name EventLog -StartupType Automatic
Set-Service -Name EventSystem -StartupType Automatic
Set-Service -Name FDResPub -StartupType Manual
Set-Service -Name Fax -StartupType Manual
Set-Service -Name FontCache -StartupType Automatic
Set-Service -Name FrameServer -StartupType Manual
Set-Service -Name FrameServerMonitor -StartupType Manual
Set-Service -Name GraphicsPerfSvc -StartupType Manual
Set-Service -Name HomeGroupListener -StartupType Manual
Set-Service -Name HomeGroupProvider -StartupType Manual
Set-Service -Name HvHost -StartupType Manual
Set-Service -Name IEEtwCollectorService -StartupType Manual
Set-Service -Name InstallService -StartupType Manual
Set-Service -Name InventorySvc -StartupType Manual
Set-Service -Name IpxlatCfgSvc -StartupType Manual
Set-Service -Name KeyIso -StartupType Automatic
Set-Service -Name KtmRm -StartupType Manual
Set-Service -Name LSM -StartupType Automatic
Set-Service -Name LanmanServer -StartupType Automatic
Set-Service -Name LanmanWorkstation -StartupType Automatic
Set-Service -Name LicenseManager -StartupType Manual
Set-Service -Name LxpSvc -StartupType Manual
Set-Service -Name MSDTC -StartupType Manual
Set-Service -Name MSiSCSI -StartupType Manual
Set-Service -Name McpManagementService -StartupType Manual
Set-Service -Name MessagingService_* -StartupType Manual
Set-Service -Name MicrosoftEdgeElevationService -StartupType Manual
Set-Service -Name MixedRealityOpenXRSvc -StartupType Manual
Set-Service -Name MpsSvc -StartupType Automatic
Set-Service -Name NPSMSvc_* -StartupType Manual
Set-Service -Name NaturalAuthentication -StartupType Manual
Set-Service -Name NcaSvc -StartupType Manual
Set-Service -Name NcbService -StartupType Manual
Set-Service -Name NcdAutoSetup -StartupType Manual
Set-Service -Name NetSetupSvc -StartupType Manual
Set-Service -Name NetTcpPortSharing -StartupType Disabled
Set-Service -Name Netlogon -StartupType Automatic
Set-Service -Name Netman -StartupType Manual
Set-Service -Name NgcCtnrSvc -StartupType Manual
Set-Service -Name NgcSvc -StartupType Manual
Set-Service -Name NlaSvc -StartupType Manual
Set-Service -Name OneSyncSvc_* -StartupType Automatic
Set-Service -Name P9RdrService_* -StartupType Manual
Set-Service -Name PNRPAutoReg -StartupType Manual
Set-Service -Name PNRPsvc -StartupType Manual
Set-Service -Name PeerDistSvc -StartupType Manual
Set-Service -Name PenService_* -StartupType Manual
Set-Service -Name PerfHost -StartupType Manual
Set-Service -Name PhoneSvc -StartupType Manual
Set-Service -Name PimIndexMaintenanceSvc_* -StartupType Manual
Set-Service -Name PlugPlay -StartupType Manual
Set-Service -Name PolicyAgent -StartupType Manual
Set-Service -Name Power -StartupType Automatic
Set-Service -Name PrintNotify -StartupType Manual
Set-Service -Name PrintWorkflowUserSvc_* -StartupType Manual
Set-Service -Name ProfSvc -StartupType Automatic
Set-Service -Name PushToInstall -StartupType Manual
Set-Service -Name QWAVE -StartupType Manual
Set-Service -Name RasAu-StartupType -StartupType Manual
Set-Service -Name RemoteAccess -StartupType Disabled
Set-Service -Name RemoteRegistry -StartupType Disabled
Set-Service -Name RetailDemo -StartupType Manual
Set-Service -Name RmSvc -StartupType Manual
Set-Service -Name RpcEptMapper -StartupType Automatic
Set-Service -Name RpcLocator -StartupType Manual
Set-Service -Name RpcSs -StartupType Automatic
Set-Service -Name SCPolicySvc -StartupType Manual
Set-Service -Name SCardSvr -StartupType Manual
Set-Service -Name SDRSVC -StartupType Manual
Set-Service -Name SEMgrSvc -StartupType Manual
Set-Service -Name SENS -StartupType Automatic
Set-Service -Name SNMPTRAP -StartupType Manual
Set-Service -Name SNMPTrap -StartupType Manual
Set-Service -Name SSDPSRV -StartupType Manual
Set-Service -Name SamSs -StartupType Automatic
Set-Service -Name ScDeviceEnum -StartupType Manual
Set-Service -Name Schedule -StartupType Automatic
Set-Service -Name SecurityHealthService -StartupType Manual
Set-Service -Name Sense -StartupType Manual
Set-Service -Name SensorDataService -StartupType Manual
Set-Service -Name SensorService -StartupType Manual
Set-Service -Name SensrSvc -StartupType Manual
Set-Service -Name SessionEnv -StartupType Manual
Set-Service -Name SgrmBroker -StartupType Automatic
Set-Service -Name SharedAccess -StartupType Manual
Set-Service -Name SharedRealitySvc -StartupType Manual
Set-Service -Name ShellHWDetection -StartupType Automatic
Set-Service -Name SmsRouter -StartupType Manual
Set-Service -Name Spooler -StartupType Automatic
Set-Service -Name SstpSvc -StartupType Manual
Set-Service -Name StiSvc -StartupType Manual
Set-Service -Name SysMain -StartupType Automatic
Set-Service -Name SystemEventsBroker -StartupType Automatic
Set-Service -Name TabletInputService -StartupType Manual
Set-Service -Name TapiSrv -StartupType Manual
Set-Service -Name TermService -StartupType Automatic
Set-Service -Name TextInputManagementService -StartupType Manual
Set-Service -Name Themes -StartupType Automatic
Set-Service -Name TieringEngineService -StartupType Manual
Set-Service -Name TimeBroker -StartupType Manual
Set-Service -Name TimeBrokerSvc -StartupType Manual
Set-Service -Name TokenBroker -StartupType Manual
Set-Service -Name TrkWks -StartupType Automatic
Set-Service -Name TroubleshootingSvc -StartupType Manual
Set-Service -Name TrustedInstaller -StartupType Manual
Set-Service -Name UI0Detect -StartupType Manual
Set-Service -Name UdkUserSvc_* -StartupType Manual
Set-Service -Name UevAgentService -StartupType Disabled
Set-Service -Name UmRdpService -StartupType Manual
Set-Service -Name UnistoreSvc_* -StartupType Manual
Set-Service -Name UserDataSvc_* -StartupType Manual
Set-Service -Name UserManager -StartupType Automatic
Set-Service -Name VGAuthService -StartupType Automatic
Set-Service -Name VMTools -StartupType Automatic
Set-Service -Name VSS -StartupType Manual
Set-Service -Name VacSvc -StartupType Manual
Set-Service -Name VaultSvc -StartupType Automatic
Set-Service -Name W32Time -StartupType Manual
Set-Service -Name WEPHOSTSVC -StartupType Manual
Set-Service -Name WFDSConMgrSvc -StartupType Manual
Set-Service -Name WMPNetworkSvc -StartupType Manual
Set-Service -Name WManSvc -StartupType Manual
Set-Service -Name WPDBusEnum -StartupType Manual
Set-Service -Name WSService -StartupType Manual
Set-Service -Name WSearch -StartupType AutomaticDelayedStart
Set-Service -Name WaaSMedicSvc -StartupType Manual
Set-Service -Name WalletService -StartupType Manual
Set-Service -Name WarpJITSvc -StartupType Manual
Set-Service -Name WbioSrvc -StartupType Manual
Set-Service -Name Wcmsvc -StartupType Automatic
Set-Service -Name WcsPlugInService -StartupType Manual
Set-Service -Name WdNisSvc -StartupType Manual
Set-Service -Name WdiServiceHost -StartupType Manual
Set-Service -Name WdiSystemHost -StartupType Manual
Set-Service -Name WebClient -StartupType Manual
Set-Service -Name Wecsvc -StartupType Manual
Set-Service -Name WerSvc -StartupType Manual
Set-Service -Name WiaRpc -StartupType Manual
Set-Service -Name WinHttpAutoProxySvc -StartupType Manual
Set-Service -Name WinRM -StartupType Manual
Set-Service -Name Winmgmt -StartupType Automatic
Set-Service -Name WlanSvc -StartupType Automatic
Set-Service -Name WpcMonSvc -StartupType Manual
Set-Service -Name WpnUserService_* -StartupType Automatic
Set-Service -Name WwanSvc -StartupType Manual
Set-Service -Name XblAuthManager -StartupType Manual
Set-Service -Name XblGameSave -StartupType Manual
Set-Service -Name XboxGipSvc -StartupType Manual
Set-Service -Name XboxNetApiSvc -StartupType Manual
Set-Service -Name autotimesvc -StartupType Manual
Set-Service -Name bthserv -StartupType Manual
Set-Service -Name camsvc -StartupType Manual
Set-Service -Name cloudidsvc -StartupType Manual
Set-Service -Name dcsvc -StartupType Manual
Set-Service -Name defragsvc -StartupType Manual
Set-Service -Name diagnosticshub.standardcollector.service -StartupType Manual
Set-Service -Name diagsvc -StartupType Manual
Set-Service -Name dot3svc -StartupType Manual
Set-Service -Name edgeupdate -StartupType Manual
Set-Service -Name edgeupdatem -StartupType Manual
Set-Service -Name embeddedmode -StartupType Manual
Set-Service -Name fdPHost -StartupType Manual
Set-Service -Name fhsvc -StartupType Manual
Set-Service -Name gpsvc -StartupType Automatic
Set-Service -Name hidserv -StartupType Manual
Set-Service -Name icssvc -StartupType Manual
Set-Service -Name iphlpsvc -StartupType Automatic
Set-Service -Name lfsvc -StartupType Manual
Set-Service -Name lltdsvc -StartupType Manual
Set-Service -Name lmhosts -StartupType Manual
Set-Service -Name mpssvc -StartupType Automatic
Set-Service -Name msiserver -StartupType Manual
Set-Service -Name netprofm -StartupType Manual
Set-Service -Name nsi -StartupType Automatic
Set-Service -Name p2pimsvc -StartupType Manual
Set-Service -Name p2psvc -StartupType Manual
Set-Service -Name perceptionsimulation -StartupType Manual
Set-Service -Name pla -StartupType Manual
Set-Service -Name seclogon -StartupType Manual
Set-Service -Name shpamsvc -StartupType Disabled
Set-Service -Name smphost -StartupType Manual
Set-Service -Name spectrum -StartupType Manual
Set-Service -Name sppsvc -StartupType AutomaticDelayedStart
Set-Service -Name ssh-agent -StartupType Disabled
Set-Service -Name svsvc -StartupType Manual
Set-Service -Name swprv -StartupType Manual
Set-Service -Name tiledatamodelsvc -StartupType Automatic
Set-Service -Name tzautoupdate -StartupType Disabled
Set-Service -Name uhssvc -StartupType Disabled
Set-Service -Name upnphost -StartupType Manual
Set-Service -Name vds -StartupType Manual
Set-Service -Name vm3dservice -StartupType Manual
Set-Service -Name vmicguestinterface -StartupType Manual
Set-Service -Name vmicheartbeat -StartupType Manual
Set-Service -Name vmickvpexchange -StartupType Manual
Set-Service -Name vmicrdv -StartupType Manual
Set-Service -Name vmicshutdown -StartupType Manual
Set-Service -Name vmictimesync -StartupType Manual
Set-Service -Name vmicvmsession -StartupType Manual
Set-Service -Name vmicvss -StartupType Manual
Set-Service -Name vmvss -StartupType Manual
Set-Service -Name wbengine -StartupType Manual
Set-Service -Name wcncsvc -StartupType Manual
Set-Service -Name webthreatdefsvc -StartupType Manual
Set-Service -Name webthreatdefusersvc_* -StartupType Automatic
Set-Service -Name wercplsupport -StartupType Manual
Set-Service -Name wisvc -StartupType Manual
Set-Service -Name wlidsvc -StartupType Manual
Set-Service -Name wlpasvc -StartupType Manual
Set-Service -Name wmiApSrv -StartupType Manual
Set-Service -Name workfolderssvc -StartupType Manual
Set-Service -Name wscsvc -StartupType AutomaticDelayedStart
Set-Service -Name wuauserv -StartupType Manual
Set-Service -Name wudfsvc -StartupType Manual
$ErrorActionPreference = 'Medium'
Install-PackageProvider -Name NuGet -Force
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted
Install-Module PSWindowsUpdate -Force
Import-Module PSWindowsUpdate
powershell "irm asheroto.com/winget | iex"
Install-Module -Name HPDrivers -Force
Winget Source Update
Winget Upgrade --all --silent --accept-source-agreements --accept-package-agreements --disable-interactivity --verbose-logs --include-unknown --include-pinned --force --scope machine
Winget Upgrade --all --silent --accept-source-agreements --accept-package-agreements --disable-interactivity --verbose-logs --include-unknown --include-pinned --force --scope user
cd "C:\Program Files\Common Files\Microsoft Shared\ClickToRun"
.\OfficeC2RClient.exe /update user
Remove-Item "$env:windir\system32\GroupPolicy" -Force -Recurse
GPUpdate /Force
Get-HPDrivers -NoPrompt -BIOS -DeleteInstallationFiles
Reset-WUComponents -Verbose
Get-WindowsUpdate -AcceptAll -Install -AutoReboot