Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 3.0 » Set-Date

Set-Date - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Set-Date

Short description
Changes the system time on the computer to a time that you specify.

Syntax
Set-Date [-Date] <DateTime> [-DisplayHint <DisplayHintType>] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-Date [-Adjust] <TimeSpan> [-DisplayHint <DisplayHintType>] [-Confirm] [-WhatIf] [<CommonParameters>]





Description
The Set-Date cmdlet changes the system date and time on the computer to a date and time that you specify. You can speci
fy a new date and/or time by typing a string or by passing a DateTime or TimeSpan object to Set-Date. To specify a new 
date or time, use the Date parameter. To specify a change interval, use the Adjust parameter.