Jump to content

How to install Service Pack for Windows whit PS


Recommended Posts

Hi, I'm trying to install service pack for Windows from PS. For example I created a task:

powershell -command "& {(New-Object System.Net.WebClient).DownloadFile('hxxp://download.windowsupdate.com/msdownload/update/software/svpk/2011/02/windows6.1-kb976932-x86_c3516bc5c9e69fee6d9ac4f981f5b95977a8a2fa.exe', '%temp%\windows6.1-kb976932-x86_c3516bc5c9e69fee6d9ac4f981f5b95977a8a2fa.exe');(Start-process -ArgumentList '%temp%\windows6.1-kb976932-x86_c3516bc5c9e69fee6d9ac4f981f5b95977a8a2fa.exe -NoNewWindow')}" >c:\SP1.log

 

It's Downloaded it, but SP1.log is empty and SP1 not installed.

Any idea?

 

Thanks

Link to comment
Share on other sites

27 minutes ago, Pcyber said:

Hi, I'm trying to install service pack for Windows from PS.

Check your Windows PowerShell Event log for entries related to non-execution.

If you have AppLocker configured on the device running the script, it will by default block use of any PowerShell sub-assemblies executed this way. Ditto if a policy was configured to block execution of scripts.

Link to comment
Share on other sites

  • Administrators

Does it install when executed via "psexec -s windows6.1-kb976932-x86_c3516bc5c9e69fee6d9ac4f981f5b95977a8a2fa.exe" ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...