adjusted for removal of Remove-File cmdlet

This commit is contained in:
2023-10-06 14:16:19 -04:00
parent 7f98291e12
commit 8fa1f1ef61
6 changed files with 9 additions and 14 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ If ( IsAdmin )
## Create shortcut on Public desktop
If ( $CreateDesktopShortcut ) {
Create-Shortcut -Path "${Env:Public}\Desktop\WireGuard VPN.LNK" -TargetPath "${Env:ProgramFiles}\WireGuard\wireguard.exe" -Description "WireGuard: Fast, Modern, Secure VPN Tunnel"
New-Shortcut -Path "${Env:Public}\Desktop\WireGuard VPN.LNK" -TargetPath "${Env:ProgramFiles}\WireGuard\wireguard.exe" -Description "WireGuard: Fast, Modern, Secure VPN Tunnel"
}
}
Else { Write-Output "Must be an administrator to install WireGuard" }