Issues with credentials stored with Export-CliXml
Bojan Zivkovic
606
Reputation points
Hi, I am having issues with credentials stored with Export-CliXml:
$credxmlpath = "C:\Temp\mycredential.xml"
$cred = Import-Clixml -Path $credxmlpath
Enter-PSSession -ComputerName ServerName -Credential $cred
Enter-PSSession: Cannot process argument transformation on parameter 'Credential'. userName
What can be wrong here? I am not a local admin on my laptop just to note here if important.
Windows for business | Windows Server | User experience | PowerShell
8,330 questions
Sign in to answer