Commit 5a42da4a by César Galvis

feat: added wireguard shortcut

parent 13bba607
......@@ -66,3 +66,18 @@ New-NetFirewallRule -DisplayName "WireGuard VPN" -Direction Inbound -Action Allo
# Output server info
Write-Host "WireGuard server has been configured and started."
Write-Host "Keys saved to: $outputPath\generated-keys.json"
# Add shortcuts
## Get the desktop path for the current user
$desktopPath = [Environment]::GetFolderPath("Desktop")
## PowerShell
### Create the shortcut path
$shortcutPath = Join-Path $desktopPath "WireGuard.lnk"
### Create the WScript.Shell COM object
$WshShell = New-Object -ComObject WScript.Shell
### Create the shortcut
$shortcut = $WshShell.CreateShortcut($shortcutPath)
### Set the target path to PowerShell
$shortcut.TargetPath = "C:\Program Files\WireGuard\wireguard.exe"
### Save the shortcut
$shortcut.Save()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment