[solved] How to change the WindowTitle of Get-Credential? PS v 5.1

Hello,
If I run “Get-Credential” get a Window with Title: Login at PowerShell
How to change the Title to “Login at Server A” for example ?

Have PowerShell 5.1 not 6.x ! (Parameter -Title did not exists)

Thanks

Found it:

$Credential = $host.ui.PromptForCredential("Need credentials", "Please enter your user name and password.", "", "NetBiosUserName")

Source: Get-Credential (Microsoft.PowerShell.Security) - PowerShell | Microsoft Docs

dennis,
Welcome to the forum. :wave:t4:

Hey … I’m glad to hear that you’ve found your solution. And thanks for sharing it. :+1:t4: :slightly_smiling_face: