Service | Microsoft Docs article | Related commit history on GitHub | Change details |
---|---|---|---|
Microsoft.PowerShell.Core | About Format.Ps1xml (5.1) | https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/5.1/Microsoft.PowerShell.Core/About/about_Format.ps1xml.md | --- description: The `Format.ps1xml` files in PowerShell define the default display of objects in the PowerShell console. You can create your own `Format.ps1xml` files to change the display of objects or to define default displays for new object types that you create in PowerShell. Locale: en-US Previously updated : 11/27/2019 Last updated : 04/25/2022 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_format.ps1xml?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about Format.ps1xml that the `<ListControl>` tag is intended to display. ### WideControl tag The `<WideControl>` tag typically contains a `<WideEntries>` tag. The-`<WideEntries>` tag contains one or more `<WideEntry>` tags. A `<WideEntry>` -tag typically contains a `<PropertyName>` tag that specifies the property to be -displayed at the specified location in the view. The `<PropertyName>` tag can -contain a `<FormatString>` tag that specifies how the property is to be -displayed. +`<WideEntries>` tag contains one or more `<WideEntry>` tags. A `<WideEntry>` tag +contains one `<WideItem>` tag. ++A `<WideItem>` tag must include either a `<PropertyName>` tag or a +`<ScriptBlock>` tag. A `<PropertyName>` tag specifies the property to display at +the specified location in the view. A `<ScriptBlock>` tag specifies a script to +evaluate and display at the specified location in the view. ++A `<WideItem>` tag can contain a `<FormatString>` tag that specifies how to +display the property. ### CustomControl tag |
PSReadLine | Psconsolehostreadline (5.1) | https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/5.1/PSReadLine/PSConsoleHostReadLine.md | external help file: PSReadLine-help.xml Locale: en-US Module Name: PSReadLine Previously updated : 12/07/2018 Last updated : 04/25/2022 online version: https://docs.microsoft.com/powershell/module/psreadline/psconsolehostreadline?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 Title: PSConsoleHostReadLine Title: PSConsoleHostReadLine # PSConsoleHostReadLine -## Synopsis +## SYNOPSIS This function is the main entry point for PSReadLine. -## Syntax +## SYNTAX ``` PSConsoleHostReadLine ``` -## Description +## DESCRIPTION `PSConsoleHostReadLine` is the main entry point for the PSReadLine module. The PowerShell console host automatically loads the PSReadLine module and calls this function. Under normal operating The extension point `PSConsoleHostReadLine` is special to the console host. The alias, function, or script with this name. PSReadLine defines this function so that it is called from the console host. -## Examples +## EXAMPLES ### Example 1 This function is not intended to be used from the command line. -## Parameters +## PARAMETERS -## Inputs +## INPUTS ### None -## Outputs +## OUTPUTS ### None -## Notes +## NOTES -## Related links +## RELATED LINKS [about_PSReadLine](./About/about_PSReadLine.md) |
Microsoft.PowerShell.Core | About Format.Ps1xml (7.0) | https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.0/Microsoft.PowerShell.Core/About/about_Format.ps1xml.md | --- description: Beginning in PowerShell 6, the default views for objects are defined in PowerShell source code. You can create your own `Format.ps1xml` files to change the display of objects or to define default displays for new object types that you create in PowerShell. Locale: en-US Previously updated : 11/27/2019 Last updated : 04/25/2022 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_format.ps1xml?view=powershell-7&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about Format.ps1xml that the `<ListControl>` tag is intended to display. ### WideControl tag The `<WideControl>` tag typically contains a `<WideEntries>` tag. The-`<WideEntries>` tag contains one or more `<WideEntry>` tags. A `<WideEntry>` -tag typically contains a `<PropertyName>` tag that specifies the property to be -displayed at the specified location in the view. The `<PropertyName>` tag can -contain a `<FormatString>` tag that specifies how the property is to be -displayed. +`<WideEntries>` tag contains one or more `<WideEntry>` tags. A `<WideEntry>` tag +contains one `<WideItem>` tag. ++A `<WideItem>` tag must include either a `<PropertyName>` tag or a +`<ScriptBlock>` tag. A `<PropertyName>` tag specifies the property to display at +the specified location in the view. A `<ScriptBlock>` tag specifies a script to +evaluate and display at the specified location in the view. ++A `<WideItem>` tag can contain a `<FormatString>` tag that specifies how to +display the property. ### CustomControl tag |
PSReadLine | Psconsolehostreadline (7.0) | https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.0/PSReadLine/PSConsoleHostReadLine.md | external help file: PSReadLine-help.xml Locale: en-US Module Name: PSReadLine Previously updated : 12/07/2018 Last updated : 04/25/2022 online version: https://docs.microsoft.com/powershell/module/psreadline/psconsolehostreadline?view=powershell-7&WT.mc_id=ps-gethelp schema: 2.0.0 Title: PSConsoleHostReadLine Title: PSConsoleHostReadLine # PSConsoleHostReadLine -## Synopsis +## SYNOPSIS This function is the main entry point for PSReadLine. -## Syntax +## SYNTAX ``` PSConsoleHostReadLine ``` -## Description +## DESCRIPTION `PSConsoleHostReadLine` is the main entry point for the PSReadLine module. The PowerShell console host automatically loads the PSReadLine module and calls this function. Under normal operating The extension point `PSConsoleHostReadLine` is special to the console host. The alias, function, or script with this name. PSReadLine defines this function so that it is called from the console host. -## Examples +## EXAMPLES ### Example 1 This function is not intended to be used from the command line. -## Parameters +## PARAMETERS -## Inputs +## INPUTS ### None -## Outputs +## OUTPUTS ### None -## Notes +## NOTES -## Related links +## RELATED LINKS [about_PSReadLine](./About/about_PSReadLine.md) |
Microsoft.PowerShell.Core | About Format.Ps1xml (7.1) | https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.1/Microsoft.PowerShell.Core/About/about_Format.ps1xml.md | --- description: Beginning in PowerShell 6, the default views for objects are defined in PowerShell source code. You can create your own `Format.ps1xml` files to change the display of objects or to define default displays for new object types that you create in PowerShell. Locale: en-US Previously updated : 11/27/2019 Last updated : 04/25/2022 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_format.ps1xml?view=powershell-7.1&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about Format.ps1xml that the `<ListControl>` tag is intended to display. ### WideControl tag The `<WideControl>` tag typically contains a `<WideEntries>` tag. The-`<WideEntries>` tag contains one or more `<WideEntry>` tags. A `<WideEntry>` -tag typically contains a `<PropertyName>` tag that specifies the property to be -displayed at the specified location in the view. The `<PropertyName>` tag can -contain a `<FormatString>` tag that specifies how the property is to be -displayed. +`<WideEntries>` tag contains one or more `<WideEntry>` tags. A `<WideEntry>` tag +contains one `<WideItem>` tag. ++A `<WideItem>` tag must include either a `<PropertyName>` tag or a +`<ScriptBlock>` tag. A `<PropertyName>` tag specifies the property to display at +the specified location in the view. A `<ScriptBlock>` tag specifies a script to +evaluate and display at the specified location in the view. ++A `<WideItem>` tag can contain a `<FormatString>` tag that specifies how to +display the property. ### CustomControl tag |
PSReadLine | Psconsolehostreadline (7.1) | https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.1/PSReadLine/PSConsoleHostReadLine.md | external help file: PSReadLine-help.xml Locale: en-US Module Name: PSReadLine Previously updated : 12/07/2018 Last updated : 04/25/2022 online version: https://docs.microsoft.com/powershell/module/psreadline/psconsolehostreadline?view=powershell-7.1&WT.mc_id=ps-gethelp schema: 2.0.0 Title: PSConsoleHostReadLine Title: PSConsoleHostReadLine # PSConsoleHostReadLine -## Synopsis +## SYNOPSIS This function is the main entry point for PSReadLine. -## Syntax +## SYNTAX ``` PSConsoleHostReadLine ``` -## Description +## DESCRIPTION `PSConsoleHostReadLine` is the main entry point for the PSReadLine module. The PowerShell console host automatically loads the PSReadLine module and calls this function. Under normal operating The extension point `PSConsoleHostReadLine` is special to the console host. The alias, function, or script with this name. PSReadLine defines this function so that it is called from the console host. -## Examples +## EXAMPLES ### Example 1 This function is not intended to be used from the command line. -## Parameters +## PARAMETERS -## Inputs +## INPUTS ### None -## Outputs +## OUTPUTS ### None -## Notes +## NOTES -## Related links +## RELATED LINKS [about_PSReadLine](./About/about_PSReadLine.md)- |
Microsoft.PowerShell.Core | About Format.Ps1xml (7.2) | https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.2/Microsoft.PowerShell.Core/About/about_Format.ps1xml.md | --- description: Beginning in PowerShell 6, the default views for objects are defined in PowerShell source code. You can create your own `Format.ps1xml` files to change the display of objects or to define default displays for new object types that you create in PowerShell. Locale: en-US Previously updated : 11/27/2019 Last updated : 04/25/2022 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_format.ps1xml?view=powershell-7.2&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about Format.ps1xml that the `<ListControl>` tag is intended to display. ### WideControl tag The `<WideControl>` tag typically contains a `<WideEntries>` tag. The-`<WideEntries>` tag contains one or more `<WideEntry>` tags. A `<WideEntry>` -tag typically contains a `<PropertyName>` tag that specifies the property to be -displayed at the specified location in the view. The `<PropertyName>` tag can -contain a `<FormatString>` tag that specifies how the property is to be -displayed. +`<WideEntries>` tag contains one or more `<WideEntry>` tags. A `<WideEntry>` tag +contains one `<WideItem>` tag. ++A `<WideItem>` tag must include either a `<PropertyName>` tag or a +`<ScriptBlock>` tag. A `<PropertyName>` tag specifies the property to display at +the specified location in the view. A `<ScriptBlock>` tag specifies a script to +evaluate and display at the specified location in the view. ++A `<WideItem>` tag can contain a `<FormatString>` tag that specifies how to +display the property. ### CustomControl tag |
PSReadLine | Psconsolehostreadline (7.2) | https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.2/PSReadLine/PSConsoleHostReadLine.md | external help file: PSReadLine-help.xml Locale: en-US Module Name: PSReadLine Previously updated : 12/07/2018 Last updated : 04/25/2022 online version: https://docs.microsoft.com/powershell/module/psreadline/psconsolehostreadline?view=powershell-7.2&WT.mc_id=ps-gethelp schema: 2.0.0 Title: PSConsoleHostReadLine Title: PSConsoleHostReadLine # PSConsoleHostReadLine -## Synopsis +## SYNOPSIS This function is the main entry point for PSReadLine. -## Syntax +## SYNTAX ``` PSConsoleHostReadLine ``` -## Description +## DESCRIPTION `PSConsoleHostReadLine` is the main entry point for the PSReadLine module. The PowerShell console host automatically loads the PSReadLine module and calls this function. Under normal operating The extension point `PSConsoleHostReadLine` is special to the console host. The alias, function, or script with this name. PSReadLine defines this function so that it is called from the console host. -## Examples +## EXAMPLES ### Example 1 This function is not intended to be used from the command line. -## Parameters +## PARAMETERS -## Inputs +## INPUTS ### None -## Outputs +## OUTPUTS ### None -## Notes +## NOTES -## Related links +## RELATED LINKS [about_PSReadLine](./About/about_PSReadLine.md)- |
Microsoft.PowerShell.Core | About Format.Ps1xml (7.3) | https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.3/Microsoft.PowerShell.Core/About/about_Format.ps1xml.md | --- description: Beginning in PowerShell 6, the default views for objects are defined in PowerShell source code. You can create your own `Format.ps1xml` files to change the display of objects or to define default displays for new object types that you create in PowerShell. Locale: en-US Previously updated : 11/27/2019 Last updated : 04/25/2022 online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_format.ps1xml?view=powershell-7.3&WT.mc_id=ps-gethelp schema: 2.0.0 Title: about Format.ps1xml that the `<ListControl>` tag is intended to display. ### WideControl tag The `<WideControl>` tag typically contains a `<WideEntries>` tag. The-`<WideEntries>` tag contains one or more `<WideEntry>` tags. A `<WideEntry>` -tag typically contains a `<PropertyName>` tag that specifies the property to be -displayed at the specified location in the view. The `<PropertyName>` tag can -contain a `<FormatString>` tag that specifies how the property is to be -displayed. +`<WideEntries>` tag contains one or more `<WideEntry>` tags. A `<WideEntry>` tag +contains one `<WideItem>` tag. ++A `<WideItem>` tag must include either a `<PropertyName>` tag or a +`<ScriptBlock>` tag. A `<PropertyName>` tag specifies the property to display at +the specified location in the view. A `<ScriptBlock>` tag specifies a script to +evaluate and display at the specified location in the view. ++A `<WideItem>` tag can contain a `<FormatString>` tag that specifies how to +display the property. ### CustomControl tag |
PSReadLine | Psconsolehostreadline (7.3) | https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.3/PSReadLine/PSConsoleHostReadLine.md | external help file: PSReadLine-help.xml Locale: en-US Module Name: PSReadLine Previously updated : 12/07/2018 Last updated : 04/25/2022 online version: https://docs.microsoft.com/powershell/module/psreadline/psconsolehostreadline?view=powershell-7.3&WT.mc_id=ps-gethelp schema: 2.0.0 Title: PSConsoleHostReadLine Title: PSConsoleHostReadLine # PSConsoleHostReadLine -## Synopsis +## SYNOPSIS This function is the main entry point for PSReadLine. -## Syntax +## SYNTAX ``` PSConsoleHostReadLine ``` -## Description +## DESCRIPTION `PSConsoleHostReadLine` is the main entry point for the PSReadLine module. The PowerShell console host automatically loads the PSReadLine module and calls this function. Under normal operating The extension point `PSConsoleHostReadLine` is special to the console host. The alias, function, or script with this name. PSReadLine defines this function so that it is called from the console host. -## Examples +## EXAMPLES ### Example 1 This function is not intended to be used from the command line. -## Parameters +## PARAMETERS -## Inputs +## INPUTS ### None -## Outputs +## OUTPUTS ### None -## Notes +## NOTES -## Related links +## RELATED LINKS [about_PSReadLine](./About/about_PSReadLine.md)- |
samples | Managing Services | https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/docs-conceptual/samples/Managing-Services.md | Running lanmanserver Server Stopped ServiceLayer ServiceLayer ``` -You can use the ComputerName parameter of the Get-Service cmdlet to get the services on remote -computers. The ComputerName parameter accepts multiple values and wildcard characters, so you can -get the services on multiple computers with a single command. For example, the following command -gets the services on the Server01 remote computer. +## Getting Remote Services ++With Windows PowerShell, you can use the **ComputerName** parameter of the `Get-Service` cmdlet to +get the services on remote computers. The **ComputerName** parameter accepts multiple values and +wildcard characters, so you can get the services on multiple computers with a single command. For +example, the following command gets the services on the Server01 remote computer. ```powershell Get-Service -ComputerName Server01 ``` +Starting in PowerShell 6.0, the `*-Service` cmdlets do not have the **ComputerName** parameter. You +can still get services on remote computers with PowerShell remoting. For example, the following +command gets the services on the Server02 remote computer. ++```powershell +Invoke-Command -ComputerName Server02 -ScriptBlock { Get-Service } +``` ++You can also manage services with the other `*-Service` cmdlets. For more information on PowerShell +remoting, see [about_Remote](/powershell/module/Microsoft.PowerShell.Core/about_Remote). + ## Getting Required and Dependent Services The Get-Service cmdlet has two parameters that are very useful in service administration. The For more information, see [Set-Service](/powershell/module/Microsoft.PowerShell. ## See Also +- [about_Remote](/powershell/module/Microsoft.PowerShell.Core/about_Remote) - [Get-Service](/powershell/module/Microsoft.PowerShell.Management/get-service) - [Set-Service](/powershell/module/Microsoft.PowerShell.Management/set-service) - [Restart-Service](/powershell/module/Microsoft.PowerShell.Management/restart-service) |