NAME
Get-DcsServerTime
SYNOPSIS
Returns the UTC time of a specified server.
SYNTAX
Get-DcsServerTime -Server <Object> [ -Connection <String> ] [ -PipelineVariable <String> ]
DESCRIPTION
Returns the UTC (Coordinated Universal Time) time of a specified server.
PARAMETERS
- -Server<Object>
- ServerHostData object, computer name or ID that identifies the server. The computer name must be unique or the name must be fully qualified.
-
- Required: true
- Position: named
- Default value:
- Accept pipeline input: true (ByValue)
- Accept wildcard characters: false
-
- -Connection<String>
- Alias of the connection to the server group. If not specified, the default connection is used.
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -PipelineVariable<String>
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
INPUTS
ServerHostData : Object that identifies and describes the system and product information for a server.
OUTPUTS
System.DateTime : Object that contains the date and time of the server.
NOTES
Also see Get-DcsServer.
EXAMPLES
Get-DcsServerTime -Server SSV1
The cmdlet Get-DcsServerTime is invoked to retrieve the date and time for the server named "SSV1".
Thursday, June 07, 2012 1:52:36 PM
Get-DcsServer -ServerGroup "Group LOCAL" | Get-DcsServerTime
The cmdlet Get-DcsServer is invoked to return all ServerHost objects for the server group named "Group LOCAL". Those objects are piped to the cmdlet Get-DcsServerTime to return the date and time for both servers in the group.
Thursday, June 07, 2012 2:02:03 PM Thursday, June 07, 2012 2:02:03 PM