Skip to content

Commit 28a59fe

Browse files
committed
Fix readme example
1 parent 304a9b8 commit 28a59fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ create a session to the computer for the cmdlet to check the validity.
5555
$lock = Get-LockFile -Path \\scripts\myscript.lock
5656
5757
$results = if ($env:ComputerName -ne $lock.ComputerName) {
58-
$session = New-PSSession -ComputerName TestDC2
58+
$session = New-PSSession -ComputerName $lock.ComputerName
5959
$lock | Test-LockFile -Session $session
6060
} else {
6161
$lock | Test-LockFile

0 commit comments

Comments
 (0)