Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hashtable in example #10436

Merged
merged 1 commit into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions reference/5.1/Microsoft.WSMan.Management/Remove-WSManInstance.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -19,9 +19,9 @@ Deletes a management resource instance.

```
Remove-WSManInstance [-ApplicationName <String>] [-ComputerName <String>] [-OptionSet <Hashtable>]
[-Port <Int32>] [-ResourceURI] <Uri> [-SelectorSet] <Hashtable> [-SessionOption <SessionOption>] [-UseSSL]
[-Credential <PSCredential>] [-Authentication <AuthenticationMechanism>] [-CertificateThumbprint <String>]
[<CommonParameters>]
[-Port <Int32>] [-ResourceURI] <Uri> [-SelectorSet] <Hashtable> [-SessionOption <SessionOption>]
[-UseSSL] [-Credential <PSCredential>] [-Authentication <AuthenticationMechanism>]
[-CertificateThumbprint <String>] [<CommonParameters>]
```

### URI
Expand All @@ -34,17 +34,20 @@ Remove-WSManInstance [-ConnectionURI <Uri>] [-OptionSet <Hashtable>] [-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.
Expand Down Expand Up @@ -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
Expand Down
23 changes: 13 additions & 10 deletions reference/7.2/Microsoft.WSMan.Management/Remove-WSManInstance.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -19,9 +19,9 @@ Deletes a management resource instance.

```
Remove-WSManInstance [-ApplicationName <String>] [-ComputerName <String>] [-OptionSet <Hashtable>]
[-Port <Int32>] [-ResourceURI] <Uri> [-SelectorSet] <Hashtable> [-SessionOption <SessionOption>] [-UseSSL]
[-Credential <PSCredential>] [-Authentication <AuthenticationMechanism>] [-CertificateThumbprint <String>]
[<CommonParameters>]
[-Port <Int32>] [-ResourceURI] <Uri> [-SelectorSet] <Hashtable> [-SessionOption <SessionOption>]
[-UseSSL] [-Credential <PSCredential>] [-Authentication <AuthenticationMechanism>]
[-CertificateThumbprint <String>] [<CommonParameters>]
```

### URI
Expand All @@ -36,17 +36,20 @@ Remove-WSManInstance [-ConnectionURI <Uri>] [-OptionSet <Hashtable>] [-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.
Expand Down Expand Up @@ -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
Expand Down
23 changes: 13 additions & 10 deletions reference/7.3/Microsoft.WSMan.Management/Remove-WSManInstance.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -19,9 +19,9 @@ Deletes a management resource instance.

```
Remove-WSManInstance [-ApplicationName <String>] [-ComputerName <String>] [-OptionSet <Hashtable>]
[-Port <Int32>] [-ResourceURI] <Uri> [-SelectorSet] <Hashtable> [-SessionOption <SessionOption>] [-UseSSL]
[-Credential <PSCredential>] [-Authentication <AuthenticationMechanism>] [-CertificateThumbprint <String>]
[<CommonParameters>]
[-Port <Int32>] [-ResourceURI] <Uri> [-SelectorSet] <Hashtable> [-SessionOption <SessionOption>]
[-UseSSL] [-Credential <PSCredential>] [-Authentication <AuthenticationMechanism>]
[-CertificateThumbprint <String>] [<CommonParameters>]
```

### URI
Expand All @@ -36,17 +36,20 @@ Remove-WSManInstance [-ConnectionURI <Uri>] [-OptionSet <Hashtable>] [-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.
Expand Down Expand Up @@ -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
Expand Down
23 changes: 13 additions & 10 deletions reference/7.4/Microsoft.WSMan.Management/Remove-WSManInstance.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -19,9 +19,9 @@ Deletes a management resource instance.

```
Remove-WSManInstance [-ApplicationName <String>] [-ComputerName <String>] [-OptionSet <Hashtable>]
[-Port <Int32>] [-ResourceURI] <Uri> [-SelectorSet] <Hashtable> [-SessionOption <SessionOption>] [-UseSSL]
[-Credential <PSCredential>] [-Authentication <AuthenticationMechanism>] [-CertificateThumbprint <String>]
[<CommonParameters>]
[-Port <Int32>] [-ResourceURI] <Uri> [-SelectorSet] <Hashtable> [-SessionOption <SessionOption>]
[-UseSSL] [-Credential <PSCredential>] [-Authentication <AuthenticationMechanism>]
[-CertificateThumbprint <String>] [<CommonParameters>]
```

### URI
Expand All @@ -36,17 +36,20 @@ Remove-WSManInstance [-ConnectionURI <Uri>] [-OptionSet <Hashtable>] [-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.
Expand Down Expand Up @@ -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
Expand Down