Repository navigation
Closed
Labels
BVT/DRTAn issue affecting or exposed by tests that have not been open sourcedAn issue affecting or exposed by tests that have not been open sourcedResolution-FixedThe issue is fixed.The issue is fixed.WG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues
Milestone
Description
Steps to reproduce
10.123.172.176]: PS C:\Users\LocalAdmin\Documents> Set-TimeZone -id 'Pacific Standard Time'
Expected behavior
Sets the timezone
Actual behavior
Unable to load DLL 'api-ms-win-downlevel-kernel32-l1.dll': The specified module could not be found. (Exception from
HRESULT: 0x8007007E)
+ CategoryInfo : NotSpecified: (:) [Set-TimeZone], DllNotFoundException
+ FullyQualifiedErrorId : System.DllNotFoundException,Microsoft.PowerShell.Commands.SetTimeZoneCommand
Environment data
Running on nano using script from nano team
v0.4.0
> $PSVersionTable
Name Value
---- -----
WSManStackVersion 3.0
PSVersion 5.1.14361.1000
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSEdition Core
PSRemotingProtocolVersion 2.3
CLRVersion
SerializationVersion 1.1.0.1
BuildVersion 10.0.14361.1000$ dotnet --info
.NET Command Line Tools (1.0.0-preview2-003096)
Product Information:
Version: 1.0.0-preview2-003096
Commit SHA-1 hash: 191812690d
Runtime Environment:
OS Name: Windows
OS Version: 10.0.14353
OS Platform: Windows
RID: win10-x64
$ git rev-parse HEAD; git status
D:\git\PowerShell [master ≡ +2 ~0 -3 !]> git rev-parse HEAD; git status
ebd28ec6651347e11a4efef492817565e6c6b49d
On branch master
Your branch is up-to-date with 'PowerShell/master'.
nothing to commit, working directory clean
Metadata
Metadata
Assignees
Labels
BVT/DRTAn issue affecting or exposed by tests that have not been open sourcedAn issue affecting or exposed by tests that have not been open sourcedResolution-FixedThe issue is fixed.The issue is fixed.WG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues
Activity
andyleejordan commentedon Jun 15, 2016
This is not how setting the timezone on Linux works. We should probably make this throw a platform unsupported exception.
TravisEz13 commentedon Jun 29, 2016
Per Dongbo Wang (@daxian-dbw) timezone.cs is missing in Management.dll
[-]Set-TimeZone fails with unable to load dll[/-][+]Set-TimeZone is missing[/+]daxian-dbw commentedon Jul 7, 2016
The PR #1285 add the TimeZone cmdlets back to OSPS Travis Plunk (@TravisEz13)
However, the TimeZone cmdlets are excluded for Linux build.
TravisEz13 commentedon Jul 8, 2016
Verified fixed