diff --git a/reference/5.1/Microsoft.WSMan.Management/Remove-WSManInstance.md b/reference/5.1/Microsoft.WSMan.Management/Remove-WSManInstance.md index c3764e941a23..233ce45dc494 100644 --- a/reference/5.1/Microsoft.WSMan.Management/Remove-WSManInstance.md +++ b/reference/5.1/Microsoft.WSMan.Management/Remove-WSManInstance.md @@ -2,7 +2,7 @@ external help file: Microsoft.WSMan.Management.dll-Help.xml Locale: en-US Module Name: Microsoft.WSMan.Management -ms.date: 12/12/2022 +ms.date: 09/20/2023 online version: https://learn.microsoft.com/powershell/module/microsoft.wsman.management/remove-wsmaninstance?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 title: Remove-WSManInstance @@ -19,9 +19,9 @@ Deletes a management resource instance. ``` Remove-WSManInstance [-ApplicationName ] [-ComputerName ] [-OptionSet ] - [-Port ] [-ResourceURI] [-SelectorSet] [-SessionOption ] [-UseSSL] - [-Credential ] [-Authentication ] [-CertificateThumbprint ] - [] + [-Port ] [-ResourceURI] [-SelectorSet] [-SessionOption ] + [-UseSSL] [-Credential ] [-Authentication ] + [-CertificateThumbprint ] [] ``` ### URI @@ -34,17 +34,20 @@ Remove-WSManInstance [-ConnectionURI ] [-OptionSet ] [-ResourceU ## DESCRIPTION -The `Remove-WSManInstance` cmdlet deletes an instance of a management resource that is specified in +The `Remove-WSManInstance` cmdlet deletes an instance of a management resource that's specified in the **ResourceURI** and **SelectorSet** parameters. -This cmdlet uses the WinRM connection/transport layer to delete the management resource instance. +This cmdlet uses the WinRM connection transport layer to delete the management resource instance. ## EXAMPLES ### Example 1: Delete a listener ```powershell -Remove-WSManInstance -ResourceUri winrm/config/Listener -SelectorSet Address=test.fabrikam.com;Transport=http +Remove-WSManInstance -ResourceUri winrm/config/Listener -SelectorSet @{ + Address = 'test.fabrikam.com' + Transport = 'http' +} ``` This command deletes the WS-Management HTTP listener on a computer. @@ -122,10 +125,10 @@ Specifies the digital public key certificate (X509) of a user account that has p this action. Enter the certificate thumbprint of the certificate. Certificates are used in client certificate-based authentication. They can be mapped only to local -user accounts; they do not work with domain accounts. +user accounts. Certificates don't work with domain accounts. -To get a certificate thumbprint, use the Get-Item or Get-ChildItem command in the Windows PowerShell -Cert: drive. +To get a certificate thumbprint, use the `Get-Item` or `Get-ChildItem` command in the PowerShell +`Cert:` drive. ```yaml Type: System.String diff --git a/reference/7.2/Microsoft.WSMan.Management/Remove-WSManInstance.md b/reference/7.2/Microsoft.WSMan.Management/Remove-WSManInstance.md index fabb0b4e4402..019f4f776570 100644 --- a/reference/7.2/Microsoft.WSMan.Management/Remove-WSManInstance.md +++ b/reference/7.2/Microsoft.WSMan.Management/Remove-WSManInstance.md @@ -2,7 +2,7 @@ external help file: Microsoft.WSMan.Management.dll-Help.xml Locale: en-US Module Name: Microsoft.WSMan.Management -ms.date: 12/12/2022 +ms.date: 09/20/2023 online version: https://learn.microsoft.com/powershell/module/microsoft.wsman.management/remove-wsmaninstance?view=powershell-7.2&WT.mc_id=ps-gethelp schema: 2.0.0 title: Remove-WSManInstance @@ -19,9 +19,9 @@ Deletes a management resource instance. ``` Remove-WSManInstance [-ApplicationName ] [-ComputerName ] [-OptionSet ] - [-Port ] [-ResourceURI] [-SelectorSet] [-SessionOption ] [-UseSSL] - [-Credential ] [-Authentication ] [-CertificateThumbprint ] - [] + [-Port ] [-ResourceURI] [-SelectorSet] [-SessionOption ] + [-UseSSL] [-Credential ] [-Authentication ] + [-CertificateThumbprint ] [] ``` ### URI @@ -36,17 +36,20 @@ Remove-WSManInstance [-ConnectionURI ] [-OptionSet ] [-ResourceU > **This cmdlet is only available on the Windows platform.** -The `Remove-WSManInstance` cmdlet deletes an instance of a management resource that is specified in +The `Remove-WSManInstance` cmdlet deletes an instance of a management resource that's specified in the **ResourceURI** and **SelectorSet** parameters. -This cmdlet uses the WinRM connection/transport layer to delete the management resource instance. +This cmdlet uses the WinRM connection transport layer to delete the management resource instance. ## EXAMPLES ### Example 1: Delete a listener ```powershell -Remove-WSManInstance -ResourceUri winrm/config/Listener -SelectorSet Address=test.fabrikam.com;Transport=http +Remove-WSManInstance -ResourceUri winrm/config/Listener -SelectorSet @{ + Address = 'test.fabrikam.com' + Transport = 'http' +} ``` This command deletes the WS-Management HTTP listener on a computer. @@ -124,10 +127,10 @@ Specifies the digital public key certificate (X509) of a user account that has p this action. Enter the certificate thumbprint of the certificate. Certificates are used in client certificate-based authentication. They can be mapped only to local -user accounts; they do not work with domain accounts. +user accounts. Certificates don't work with domain accounts. -To get a certificate thumbprint, use the Get-Item or Get-ChildItem command in the Windows PowerShell -Cert: drive. +To get a certificate thumbprint, use the `Get-Item` or `Get-ChildItem` command in the PowerShell +`Cert:` drive. ```yaml Type: System.String diff --git a/reference/7.3/Microsoft.WSMan.Management/Remove-WSManInstance.md b/reference/7.3/Microsoft.WSMan.Management/Remove-WSManInstance.md index 59390c5032a0..c2bbca211128 100644 --- a/reference/7.3/Microsoft.WSMan.Management/Remove-WSManInstance.md +++ b/reference/7.3/Microsoft.WSMan.Management/Remove-WSManInstance.md @@ -2,7 +2,7 @@ external help file: Microsoft.WSMan.Management.dll-Help.xml Locale: en-US Module Name: Microsoft.WSMan.Management -ms.date: 12/12/2022 +ms.date: 09/20/2023 online version: https://learn.microsoft.com/powershell/module/microsoft.wsman.management/remove-wsmaninstance?view=powershell-7.3&WT.mc_id=ps-gethelp schema: 2.0.0 title: Remove-WSManInstance @@ -19,9 +19,9 @@ Deletes a management resource instance. ``` Remove-WSManInstance [-ApplicationName ] [-ComputerName ] [-OptionSet ] - [-Port ] [-ResourceURI] [-SelectorSet] [-SessionOption ] [-UseSSL] - [-Credential ] [-Authentication ] [-CertificateThumbprint ] - [] + [-Port ] [-ResourceURI] [-SelectorSet] [-SessionOption ] + [-UseSSL] [-Credential ] [-Authentication ] + [-CertificateThumbprint ] [] ``` ### URI @@ -36,17 +36,20 @@ Remove-WSManInstance [-ConnectionURI ] [-OptionSet ] [-ResourceU > **This cmdlet is only available on the Windows platform.** -The `Remove-WSManInstance` cmdlet deletes an instance of a management resource that is specified in +The `Remove-WSManInstance` cmdlet deletes an instance of a management resource that's specified in the **ResourceURI** and **SelectorSet** parameters. -This cmdlet uses the WinRM connection/transport layer to delete the management resource instance. +This cmdlet uses the WinRM connection transport layer to delete the management resource instance. ## EXAMPLES ### Example 1: Delete a listener ```powershell -Remove-WSManInstance -ResourceUri winrm/config/Listener -SelectorSet Address=test.fabrikam.com;Transport=http +Remove-WSManInstance -ResourceUri winrm/config/Listener -SelectorSet @{ + Address = 'test.fabrikam.com' + Transport = 'http' +} ``` This command deletes the WS-Management HTTP listener on a computer. @@ -124,10 +127,10 @@ Specifies the digital public key certificate (X509) of a user account that has p this action. Enter the certificate thumbprint of the certificate. Certificates are used in client certificate-based authentication. They can be mapped only to local -user accounts; they do not work with domain accounts. +user accounts. Certificates don't work with domain accounts. -To get a certificate thumbprint, use the Get-Item or Get-ChildItem command in the Windows PowerShell -Cert: drive. +To get a certificate thumbprint, use the `Get-Item` or `Get-ChildItem` command in the PowerShell +`Cert:` drive. ```yaml Type: System.String diff --git a/reference/7.4/Microsoft.WSMan.Management/Remove-WSManInstance.md b/reference/7.4/Microsoft.WSMan.Management/Remove-WSManInstance.md index 8663ca30f745..20fe7794814a 100644 --- a/reference/7.4/Microsoft.WSMan.Management/Remove-WSManInstance.md +++ b/reference/7.4/Microsoft.WSMan.Management/Remove-WSManInstance.md @@ -2,7 +2,7 @@ external help file: Microsoft.WSMan.Management.dll-Help.xml Locale: en-US Module Name: Microsoft.WSMan.Management -ms.date: 12/12/2022 +ms.date: 09/20/2023 online version: https://learn.microsoft.com/powershell/module/microsoft.wsman.management/remove-wsmaninstance?view=powershell-7.4&WT.mc_id=ps-gethelp schema: 2.0.0 title: Remove-WSManInstance @@ -19,9 +19,9 @@ Deletes a management resource instance. ``` Remove-WSManInstance [-ApplicationName ] [-ComputerName ] [-OptionSet ] - [-Port ] [-ResourceURI] [-SelectorSet] [-SessionOption ] [-UseSSL] - [-Credential ] [-Authentication ] [-CertificateThumbprint ] - [] + [-Port ] [-ResourceURI] [-SelectorSet] [-SessionOption ] + [-UseSSL] [-Credential ] [-Authentication ] + [-CertificateThumbprint ] [] ``` ### URI @@ -36,17 +36,20 @@ Remove-WSManInstance [-ConnectionURI ] [-OptionSet ] [-ResourceU > **This cmdlet is only available on the Windows platform.** -The `Remove-WSManInstance` cmdlet deletes an instance of a management resource that is specified in +The `Remove-WSManInstance` cmdlet deletes an instance of a management resource that's specified in the **ResourceURI** and **SelectorSet** parameters. -This cmdlet uses the WinRM connection/transport layer to delete the management resource instance. +This cmdlet uses the WinRM connection transport layer to delete the management resource instance. ## EXAMPLES ### Example 1: Delete a listener ```powershell -Remove-WSManInstance -ResourceUri winrm/config/Listener -SelectorSet Address=test.fabrikam.com;Transport=http +Remove-WSManInstance -ResourceUri winrm/config/Listener -SelectorSet @{ + Address = 'test.fabrikam.com' + Transport = 'http' +} ``` This command deletes the WS-Management HTTP listener on a computer. @@ -124,10 +127,10 @@ Specifies the digital public key certificate (X509) of a user account that has p this action. Enter the certificate thumbprint of the certificate. Certificates are used in client certificate-based authentication. They can be mapped only to local -user accounts; they do not work with domain accounts. +user accounts. Certificates don't work with domain accounts. -To get a certificate thumbprint, use the Get-Item or Get-ChildItem command in the Windows PowerShell -Cert: drive. +To get a certificate thumbprint, use the `Get-Item` or `Get-ChildItem` command in the PowerShell +`Cert:` drive. ```yaml Type: System.String