首页 > 系统服务 > 详细

使用powershell来设置时间

时间:2018-04-17 10:36:15      阅读:754      评论:0      收藏:0      [点我收藏+]

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/set-date?view=powershell-6

Set-Date "2018-04-17 09:20:28"

 

Set-Date "2018-04-17 09:27:20+08:00"

 

Get-Date

 

https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Management/Set-TimeZone?view=powershell-6

PS C:\Users\clu\Desktop> Get-TimeZone


Id : China Standard Time
DisplayName : (UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi
StandardName : China Standard Time
DaylightName : China Daylight Time
BaseUtcOffset : 08:00:00
SupportsDaylightSavingTime : False

 

列出所有的时区

Get-TimeZone -ListAvailable

 

使用powershell来设置时间

原文:https://www.cnblogs.com/chucklu/p/8861845.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!