Skip to content

Commit

Permalink
Fix readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasNieto committed Apr 15, 2024
1 parent 304a9b8 commit 28a59fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ create a session to the computer for the cmdlet to check the validity.
$lock = Get-LockFile -Path \\scripts\myscript.lock
$results = if ($env:ComputerName -ne $lock.ComputerName) {
$session = New-PSSession -ComputerName TestDC2
$session = New-PSSession -ComputerName $lock.ComputerName
$lock | Test-LockFile -Session $session
} else {
$lock | Test-LockFile
Expand Down

0 comments on commit 28a59fe

Please sign in to comment.