Skip to content
This repository was archived by the owner on Jun 16, 2021. It is now read-only.

Commit d12b112

Browse files
committed
Change name of the session being created to include 'wincompat' and Computer Name it connects to.
1 parent 779efdb commit d12b112

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

WindowsCompatibility/WindowsCompatibility.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ function Initialize-WinSession
135135
Write-Verbose -Verbose:$verboseFlag "Initializing the compatibility session on host '$ComputerName'."
136136
if ($Credential)
137137
{
138-
$script:SessionName = "win-$($Credential.UserName)"
138+
$script:SessionName = "wincompat-$ComputerName-$($Credential.UserName)"
139139
}
140140
else
141141
{
142-
$script:SessionName = "win-$([environment]::UserName)"
142+
$script:SessionName = "wincompat-$ComputerName-$([environment]::UserName)"
143143
}
144144
Write-Verbose -Verbose:$verboseFlag "The compatibility session name is '$script:SessionName'."
145145

0 commit comments

Comments
 (0)