I need to use Get-VMGuestNetworkInterface on about 100 VMs. They are non-domain members created from the same template with the same local administrator account. Unfortunately, the local administrator password uses the ` character. The ` character is the PowerShell Escape Character. The Escape Character will not allow itself to be included with a string value, so when I try to pass the -GuestPassword paramter, it does not include the ` character, the password is wrong, and authentication fails. Does anyone know who to use the ` character as part of a string literal?
Depends hwo you pass the string, in single quotes the backtick doesn't need to be escaped ('pass`word').
In double quotes, use the back-slash ("pass\`word")
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Depends hwo you pass the string, in single quotes the backtick doesn't need to be escaped ('pass`word').
In double quotes, use the back-slash ("pass\`word")
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thank you, that's it exactly.