shorten windowtitle of fsh to just the computername

master
lub 5 년 전
부모 d88e136351
커밋 d31d612e78

@ -40,12 +40,10 @@ function Get-BetterADUser {
}
function fsh {
param (
[string]$ComputerName,
[pscredential]$Credential
[string]$ComputerName
)
$usr = ($Credential.UserName -split '@')[0]
$host.UI.RawUI.WindowTitle = '{0}@{1}' -f $usr,$ComputerName
$host.UI.RawUI.WindowTitle = $ComputerName
Enter-PSSession @PSBoundParameters @args
}

불러오는 중...
취소
저장