Monday 17 March 2014

Alternatif Windows Update via WindowsPowerShell



Hai sobat jufrikablog, windows update yang biasa sering kita lakukan adalah menggunakan proses update melalui GUI , Namun apabila sobat mengalami masalah update seperti gagal update, bahkan parahnya cek update saja tidak bisa , Maka cara ini mungkin dapat menjadi solusi buat sobat yang mengalami gagal update Yaitu dengan menggunakan WindowsPowerShell. Langsung saja simak tutorialnya


Sebelum menggunakan powershell, mungkin sobat bisa mencoba cara Standar Penanganan Masalah Windows Update berikut :


  • Jalankan Disk Clean Up.

  • Klick Clean Up System File, dan OK

  • Reboot Komputer

  • Lalu cek update lagi


Apabila masih gagal maka berikut langkah update via WindowsPowerShell


  • Koneksikan Internet

  • Download PS Script (Download Disini)

  • Extract module file nya lalu pindahkan folder PSWindowsUpdate ke
    %WINDIR%\System32\WindowsPowerShell\v1.0\Modules (tulis di eksplorer).

  • Buka PowerShell as Admin (Start->Search->ketik PowerShell->Klick Kanan Windows PowerShell - run as administrator)

  • Ketik ini
    Set-ExecutionPolicy RemoteSigned
    Import-Module PSWindowsUpdate

  • Lalu cek update dengan menulis ini
    Get-WUList

  • Lalu install update dengan menulis ini
    Get-WUInstall
    contoh lengkapnya seperti ini
Code:
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
Windows PowerShell
Copyright (C) 2013 Microsoft Corporation. All rights reserved.
;(* Daftarkan Module *)
PS C:\Windows\system32> Set-ExecutionPolicy RemoteSigned

Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy
might expose
you to the security risks described in the about_Execution_Policies help topic at
http://go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"):
PS C:\Windows\system32> Import-Module PSWindowsUpdate

;(* Periksa Update *)
PS C:\Windows\system32>Get-WUList

;(* Install Update *)
PS C:\Windows\system32> Get-WUInstall

Confirm
Are you sure you want to perform this action?
Performing the operation "Definition Update for Windows Defender - KB2267602 (Definition 1.165.351.0)
[108 MB]?" on
target "XXXX".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

X Status KB Size Title
- ------ -- ---- -----
2 Accepted KB2267602 108 MB Definition Update for Windows Defender - KB2267602 (Definition 1.165.351.0)
3 Downloaded KB2267602 108 MB Definition Update for Windows Defender - KB2267602 (Definition 1.165.351.0)
4 Installed KB2267602 108 MB Definition Update for Windows Defender - KB2267602 (Definition 1.165.351.0)

PS C:\Windows\system32>

(* Selesai *)


  • Terakir Periksa Update History


  • tadaa anda telah berhasil melakukan windows updarte memalui powershell gmna gampang kan sobat jufrikablog? :D

No comments:

Post a Comment