We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 304a9b8 commit 28a59feCopy full SHA for 28a59fe
README.md
@@ -55,7 +55,7 @@ create a session to the computer for the cmdlet to check the validity.
55
$lock = Get-LockFile -Path \\scripts\myscript.lock
56
57
$results = if ($env:ComputerName -ne $lock.ComputerName) {
58
- $session = New-PSSession -ComputerName TestDC2
+ $session = New-PSSession -ComputerName $lock.ComputerName
59
$lock | Test-LockFile -Session $session
60
} else {
61
$lock | Test-LockFile
0 commit comments