From 81ffa0dcd915cbd4b00f1af43bd57cce16ad3020 Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Tue, 15 Oct 2024 08:36:51 -0500 Subject: [PATCH] Must be an admin to start a service (#11472) --- .../5.1/Microsoft.PowerShell.Management/Start-Service.md | 7 ++++--- .../7.2/Microsoft.PowerShell.Management/Start-Service.md | 7 ++++--- .../7.4/Microsoft.PowerShell.Management/Start-Service.md | 7 ++++--- .../7.5/Microsoft.PowerShell.Management/Start-Service.md | 7 ++++--- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/reference/5.1/Microsoft.PowerShell.Management/Start-Service.md b/reference/5.1/Microsoft.PowerShell.Management/Start-Service.md index 5f9769fdfd0b..94b89ba66182 100644 --- a/reference/5.1/Microsoft.PowerShell.Management/Start-Service.md +++ b/reference/5.1/Microsoft.PowerShell.Management/Start-Service.md @@ -2,7 +2,7 @@ external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml Locale: en-US Module Name: Microsoft.PowerShell.Management -ms.date: 01/27/2023 +ms.date: 10/15/2024 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/start-service?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 title: Start-Service @@ -281,8 +281,9 @@ Windows PowerShell includes the following aliases for `Start-Service`: - `sasv` -- `Start-Service` can control services only if the current user has permission to do this. If a - command does not work correctly, you might not have the required permissions. +- By default, only members of the Administrators group can start, stop, pause, resume, or restart a + service. If you are a member of the Administrators group, you need to run `Start-Service` from an + elevated PowerShell session. Use the **Run as Administrator** option to start PowerShell. - To find the service names and display names of the services on your system, type `Get-Service`. The service names appear in the **Name** column, and the display names appear in the **DisplayName** column. diff --git a/reference/7.2/Microsoft.PowerShell.Management/Start-Service.md b/reference/7.2/Microsoft.PowerShell.Management/Start-Service.md index e03cde8ad35b..4c2369ad536c 100644 --- a/reference/7.2/Microsoft.PowerShell.Management/Start-Service.md +++ b/reference/7.2/Microsoft.PowerShell.Management/Start-Service.md @@ -2,7 +2,7 @@ external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml Locale: en-US Module Name: Microsoft.PowerShell.Management -ms.date: 01/27/2023 +ms.date: 10/15/2024 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/start-service?view=powershell-7.2&WT.mc_id=ps-gethelp schema: 2.0.0 title: Start-Service @@ -286,8 +286,9 @@ PowerShell includes the following aliases for `Start-Service`: This cmdlet is only available on Windows platforms. -- `Start-Service` can control services only if the current user has permission to do this. If a - command does not work correctly, you might not have the required permissions. +- By default, only members of the Administrators group can start, stop, pause, resume, or restart a + service. If you are a member of the Administrators group, you need to run `Start-Service` from an + elevated PowerShell session. Use the **Run as Administrator** option to start PowerShell. - To find the service names and display names of the services on your system, type `Get-Service`. The service names appear in the **Name** column, and the display names appear in the **DisplayName** column. diff --git a/reference/7.4/Microsoft.PowerShell.Management/Start-Service.md b/reference/7.4/Microsoft.PowerShell.Management/Start-Service.md index b5987aed82d5..26207223353d 100644 --- a/reference/7.4/Microsoft.PowerShell.Management/Start-Service.md +++ b/reference/7.4/Microsoft.PowerShell.Management/Start-Service.md @@ -2,7 +2,7 @@ external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml Locale: en-US Module Name: Microsoft.PowerShell.Management -ms.date: 01/27/2023 +ms.date: 10/15/2024 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/start-service?view=powershell-7.4&WT.mc_id=ps-gethelp schema: 2.0.0 title: Start-Service @@ -286,8 +286,9 @@ PowerShell includes the following aliases for `Start-Service`: This cmdlet is only available on Windows platforms. -- `Start-Service` can control services only if the current user has permission to do this. If a - command does not work correctly, you might not have the required permissions. +- By default, only members of the Administrators group can start, stop, pause, resume, or restart a + service. If you are a member of the Administrators group, you need to run `Start-Service` from an + elevated PowerShell session. Use the **Run as Administrator** option to start PowerShell. - To find the service names and display names of the services on your system, type `Get-Service`. The service names appear in the **Name** column, and the display names appear in the **DisplayName** column. diff --git a/reference/7.5/Microsoft.PowerShell.Management/Start-Service.md b/reference/7.5/Microsoft.PowerShell.Management/Start-Service.md index 2d952bd6e1d4..91c2d93bebd4 100644 --- a/reference/7.5/Microsoft.PowerShell.Management/Start-Service.md +++ b/reference/7.5/Microsoft.PowerShell.Management/Start-Service.md @@ -2,7 +2,7 @@ external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml Locale: en-US Module Name: Microsoft.PowerShell.Management -ms.date: 01/27/2023 +ms.date: 10/15/2024 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.management/start-service?view=powershell-7.5&WT.mc_id=ps-gethelp schema: 2.0.0 title: Start-Service @@ -286,8 +286,9 @@ PowerShell includes the following aliases for `Start-Service`: This cmdlet is only available on Windows platforms. -- `Start-Service` can control services only if the current user has permission to do this. If a - command does not work correctly, you might not have the required permissions. +- By default, only members of the Administrators group can start, stop, pause, resume, or restart a + service. If you are a member of the Administrators group, you need to run `Start-Service` from an + elevated PowerShell session. Use the **Run as Administrator** option to start PowerShell. - To find the service names and display names of the services on your system, type `Get-Service`. The service names appear in the **Name** column, and the display names appear in the **DisplayName** column.