---
name: microsoft-ts-ms-sql-windows-server-updates
title: How can I manage Windows Server updates using PowerShell commands?
description: ''
last-updated: 2021-05-25
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/microsoft?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

{:tsSymptoms: .tsSymptoms}
{:tsCauses: .tsCauses}
{:tsResolve: .tsResolve}
{:shortdesc: .shortdesc}
{:screen: .screen}
{:support: data-reuse='support'}
{:codeblock: .codeblock}
{:pre: .pre}
{:note:.deprecated}
{:troubleshoot: data-hd-content-type='troubleshoot'}

# How can I manage Windows Server updates using PowerShell commands?
{: #mssql-trouble-update}
{: troubleshoot}
{: support}

The following PowerShell commands can be used to enable Windows Server updates to be managed by PowerShell commands:

```sh
Get-PackageProvider -Name nuget -Force
Install-Module PSWindowsUpdate -confirm:$false -Force
Get-WindowsUpdate -Install -acceptall -IgnoreReboot
```