You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set-Date : The parameter is incorrect
At line:1 char:1
+ Set-Date -Date (Get-Date).AddDays(3)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Set-Date], Win32Exception
+ FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.SetDateCommand
Environment data
>$PSVersionTable
Name Value
---------
PSVersion 6.0.0-beta
PSEdition Core
GitCommitId v6.0.0-beta.6
OS Microsoft Windows 10.0.10586
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
I also checked the issue list, and find another issue about set-date test. I am not sure if they are the same issue.
Maximo Trinidad (@MaximoTrinidad) I have checked the release list, the latest version is released five days ago with sha-1 2f81861.
I will wait for next release version, thanks.
Activity
SteveL-MSFT commentedon Jan 24, 2018
This works on Ubuntu, but fails on Windows 10 for me
stknohg commentedon Jan 24, 2018
I reproduced this problem on Windows 10.
Microsoft.PowerShell.Commands.SetDateCommand.SystemTimeshould bestruct.PowerShell/src/Microsoft.PowerShell.Commands.Utility/commands/utility/SetDateCommand.cs
Lines 117 to 134 in 2f81861
MaximoTrinidad commentedon Jan 24, 2018
Confirmed!
Works in Ubuntu but not Windows 10.
chucklu commentedon Jan 25, 2018
Maximo Trinidad (@MaximoTrinidad) I have checked the release list, the latest version is released five days ago with sha-1 2f81861.
I will wait for next release version, thanks.