-
-
Notifications
You must be signed in to change notification settings - Fork 811
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
function Start-SqlAgent in "allcommands.ps1" at line 77188 #5210
Labels
Comments
Is de what the culture is set to on the server as well? |
PS C:\WINDOWS\system32> $Culture = Get-Culture
PS C:\WINDOWS\system32> $Culture | Format-List -Property *
Parent : de
LCID : 1031
KeyboardLayoutId : 1031
Name : de-DE
IetfLanguageTag : de-DE
DisplayName : Deutsch (Deutschland)
NativeName : Deutsch (Deutschland)
EnglishName : German (Germany)
TwoLetterISOLanguageName : de
ThreeLetterISOLanguageName : deu
ThreeLetterWindowsLanguageName : DEU
CompareInfo : CompareInfo - de-DE
TextInfo : TextInfo - de-DE
IsNeutralCulture : False
CultureTypes : SpecificCultures, InstalledWin32Cultures, FrameworkCultures
NumberFormat : System.Globalization.NumberFormatInfo
DateTimeFormat : System.Globalization.DateTimeFormatInfo
Calendar : System.Globalization.GregorianCalendar
OptionalCalendars : {System.Globalization.GregorianCalendar}
UseUserOverride : True
IsReadOnly : False
|
I guess it would be better to use "Name" instead of "Display Name" as the parameter for "Get-Service". |
look at all those dashes! that's wild |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On a german (DE-de) system there is no service like "SQL Server Agent", it is instead "SQL Server-Agent". Notice the f*cking hyphen.
Steps to Reproduce
Expected Behavior
Get service state of service named "SQL Server Agent"
Actual Behavior
There is no service named "SQL Server Agent"
Output from Get-Service SQL*
Status : Running
Name : SQLAgent$SQL2017
DisplayName : SQL Server-Agent (SQL2017)
Status : Stopped
Name : SQLBrowser
DisplayName : SQL Server-Browser
Status : Running
Name : SQLSERVERAGENT
DisplayName : SQL Server-Agent (MSSQLSERVER)
Status : Stopped
Name : SQLTELEMETRY
DisplayName : SQL Server CEIP service (MSSQLSERVER)
Status : Stopped
Name : SQLTELEMETRY$SQL2017
DisplayName : SQL Server CEIP service (SQL2017)
Status : Running
Name : SQLWriter
DisplayName : SQL Server VSS Writer
Environmental data
Output from $host
Name : Windows PowerShell ISE Host
Version : 5.1.17763.316
InstanceId : b09c5fab-1339-4a8e-9660-a276bf9a86e8
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : de-DE
CurrentUICulture : de-DE
PrivateData : Microsoft.PowerShell.Host.ISE.ISEOptions
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
Output dbatools module version
Major : 0
Minor : 9
Build : 784
Revision : -1
MajorRevision : -1
MinorRevision : -1
Output SQL Instance details (Version and language)
$Instance=Get-DbaInstance -SqlInstance .
$Instance.Version
Major Minor Build Revision
13 0 4522 -1
$Instance.Language
Deutsch (Deutschland)
The text was updated successfully, but these errors were encountered: