-
Notifications
You must be signed in to change notification settings - Fork 40
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
fail to get SmbLocalization.psd1 when Culture not en-US #157
Comments
Sounds like an SMB module localization bug. Can you cut/paste the exact error message you received, and does this prevent generating the triage package entirely or is it limited to the SMB data within it?
Viswanath, can you confirm/redirect? Workaround?
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
From: fmata-afk<mailto:[email protected]>
Sent: Tuesday, August 4, 2020 02:48
To: PowerShell/PrivateCloud.DiagnosticInfo<mailto:[email protected]>
Cc: Subscribed<mailto:[email protected]>
Subject: [PowerShell/PrivateCloud.DiagnosticInfo] fail to get SmbLocalization.psd1 when Culture not en-US (#157)
When running the module on a environment with culture en-GB (can be checked with Get-Culture) the script fails to get SMB info on SmbLocalization.psd1
The path C:\Windows\system32\WindowsPowerShell\v1.0\Modules\SmbShare\en-GB doens´t exist under module only the en-US.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FPowerShell%2FPrivateCloud.DiagnosticInfo%2Fissues%2F157&data=02%7C01%7C%7C686b96d013df4229703808d8385b88d2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637321313065072163&sdata=N%2BiIYpL8dcBLfhP4K%2BKD6hJFjnXkj6%2BSarb1pBdhXD4%3D&reserved=0>, or unsubscribe<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACCWSKIMXEBRCERL27IWBADR67KOTANCNFSM4PUG4YLQ&data=02%7C01%7C%7C686b96d013df4229703808d8385b88d2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637321313065082157&sdata=2yhbu2vxGGvwvZZRJ3sp7dECVziD7q8cqo%2FEiabrye4%3D&reserved=0>.
|
Sure Dan. @fmata-afk Can you please detail on the error? |
Hello,
What we get below.
We fail because the path 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\SmbShare\en-GB don’t exist. Only the en-US folder is present on this module.
28 2020-08-04T10:27:06 : Start gather of verifier ...
29 Cannot find the Windows PowerShell data file 'SmbLocalization.psd1' in directory
30 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\SmbShare\en-GB\', or in any parent culture directories.
31 + CategoryInfo : ObjectNotFound: (C:\Windows\syst...calization.psd1:String) [Import-LocalizedData],
32 PSInvalidOperationException
33 + FullyQualifiedErrorId : ImportLocalizedData,Microsoft.PowerShell.Commands.ImportLocalizedData
34 + PSComputerName : HS2DENGSTO107
35 Cannot find the Windows PowerShell data file 'SmbLocalization.psd1' in directory
Best Regards,
Fernando Mata
Support Escalation Engineer
Windows Core
Customer Service and Support
Phone : +351 210 602 149
24 x 7 Support: +351 808 22 32 42
Working Hours: Mon-Fri 09/18h GMT+1
[cid:[email protected]]
If you have any feedback about my work, please let either myself or my manager Mihaela Diana available at [email protected]<mailto:[email protected]>
From: visvel <[email protected]>
Sent: Tuesday, August 4, 2020 10:53 PM
To: PowerShell/PrivateCloud.DiagnosticInfo <[email protected]>
Cc: Fernando Mata <[email protected]>; Mention <[email protected]>
Subject: Re: [PowerShell/PrivateCloud.DiagnosticInfo] fail to get SmbLocalization.psd1 when Culture not en-US (#157)
Sure Dan. @fmata-afk<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffmata-afk&data=02%7C01%7CFernando.Mata%40microsoft.com%7C06edfd1af242474ba1cb08d838c0c5bf%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637321747889517475&sdata=f85LNUKOFI09DFkJ0hNuvlzFc%2Bxt0ShUdeZj%2FLpeD8s%3D&reserved=0> Can you please detail on the error?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FPowerShell%2FPrivateCloud.DiagnosticInfo%2Fissues%2F157%23issuecomment-668843261&data=02%7C01%7CFernando.Mata%40microsoft.com%7C06edfd1af242474ba1cb08d838c0c5bf%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637321747889517475&sdata=6arvZBlgO6L9QR1w8eLPFN6DHFaH6kjOG5v0wmdYvWI%3D&reserved=0>, or unsubscribe<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAOK6D2XJYXUFI4H6XXJGACDR7B7MHANCNFSM4PUG4YLQ&data=02%7C01%7CFernando.Mata%40microsoft.com%7C06edfd1af242474ba1cb08d838c0c5bf%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637321747889527469&sdata=N%2FxTmYCXJJdLxnpNo8DVhFISwLgnP8w2vVMYY7RDZkQ%3D&reserved=0>.
|
Upon reaching out to SMB team they seem to believes the issue is due to the en-GB langpack not installed. |
This will fail even when running on an en-US combo of Windows 10 getting the module from Windows 2019 Server using WinRM.
For now, I just duplicated the folder en-US to en-GB on the server as a workaround... |
Still getting this issue 4 years later. What's weird is that on two different machines I've had no issues when initially using SmbShare cmdlets, then this bug started happening after a reboot. ¯_(ツ)_/¯ I don't consider changing |
When running the module on a environment with culture en-GB (can be checked with Get-Culture) the script fails to get SMB info on SmbLocalization.psd1
The path C:\Windows\system32\WindowsPowerShell\v1.0\Modules\SmbShare\en-GB doens´t exist under module only the en-US.
The text was updated successfully, but these errors were encountered: