Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » Set-Date

Set-Date - Powershell 2.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 »


Short description

Set-Date [-Adjust] <TimeSpan> [-DisplayHint {Date | Time | DateTime}] [-Confirm] [-WhatIf] [<CommonParameters>]

Set-Date [-Date] <DateTime> [-DisplayHint {Date | Time | DateTime}] [-Confirm] [-WhatIf] [<CommonParameters>]

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