These questions are impossible to answer without knowing how you're assigning the $computer variable, but do a $computer | get-member And make sure it's the string you think it is.
Thanks, Jeff Jerousek -----Original Message----- From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On Behalf Of Stuart Watret Sent: Tuesday, December 19, 2017 11:53 AM To: mssms@lists.myitforum.com Subject: [mssms] OT Powershell & Laps Anyone know why this happens? Laps has some commandlets If I try Get-AdmPwdPassword -Computername Sam1 its fine. if i use a variable for the comp name like this, Get-AdmPwdPassword -Computername $Computer I get ‘URI formats are not supported’ The computer name has no spaces - it’s very odd and google isn’t helping. Ta Stuart