Hi All,
Kindly help on the below error while configuring clock drift template.
Output: ==============================================
Message: Unable to Get-WmiObject Win32_UTCTime on remote client. Missing an argument for parameter 'Credential'. Specify a parameter of type 'System.Management.Automation.PSCredential' and try again.
Errors: ==============================================
Exception calling "Connect" with "2" argument(s): "No connection could be made because the target machine actively refused it 10.0.0.0:13"
At line:5 char:2
+ $TcpClient.Connect($time_server, 13)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : SocketException
Exception calling "GetStream" with "0" argument(s): "The operation is not allowed on non-connected sockets."
At line:6 char:2
+ $TcpStream = $TcpClient.GetStream()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : InvalidOperationException
You cannot call a method on a null-valued expression.
At line:7 char:2
+ $length = $TcpStream.Read($buffer, 0, $buffer.Length);
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."
At line:10 char:2
+ [DateTime]::ParseExact($raw.SubString(7,17), 'yy-MM-dd HH:mm:ss', $null)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : FormatException