PowerShell error “String was not recognized as a valid DateTime.”5 (1)
Views: 368 In some of my scripts, such as Get-AutoDiscoverRecords.ps1, I convert the string output of another command (such as an LDAP query) into a Date and Time variable by using the type cast [DateTime]. For example the following will…