Sets the system time on the host system.
Snap-In: Microsoft.PowerShell.Utility
Syntax:
Set-Date
[-Date] <DateTime> [-DisplayHint <DisplayHintType>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>] [-WhatIf] [-Confirm]
Set-Date
[-Adjust] <TimeSpan> [-DisplayHint <DisplayHintType>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>] [-WhatIf] [-Confirm]
Description:
The set-date Cmdlet sets the system date and time and creates a DateTime object that can be passed down the pipeline.