Are there any implicit assumptions in Import-Clixml when importing credentials?
问题 I wonder if there are any implicit assumptions that I've taken that may make the code malfunction? There is a reason I want to avoid using Import-Clixml cmdlet? Hence, I've developed an alternative, i.e. a sequence of command that is aimed to extract username and password from CliXml file created with Export-Clixml. It works by now but I'm not sure if for instance the splitting solution is reliable. $credFileUriBld = [UriBuilder]::New('file','localhost',-1,"MyCredentials.xml")) $credFile =