diff --git a/scripts_wip/Win_Shortcut_Creator.ps1 b/scripts_wip/Win_Shortcut_Creator.ps1 new file mode 100644 index 00000000..42da2467 --- /dev/null +++ b/scripts_wip/Win_Shortcut_Creator.ps1 @@ -0,0 +1,16 @@ +md -Path 'C:\agent' -Force +wget "http://www.yourwebsite.com/logos/yourico.ico" -outfile "c:\agent\yourico.ico" +$WshShell = New-Object -comObject WScript.Shell +$path = "C:\Users\All Users\desktop\Jaxsupport.url" +$targetpath = "https://yourwebsite.com" +$iconlocation = "c:\agent\yourico.ico" +$iconfile = "IconFile=" + $iconlocation +$Shortcut = $WshShell.CreateShortcut($path) +$Shortcut.TargetPath = $targetpath +$Shortcut.Save() +Add-Content $path "HotKey=0" +Add-Content $path "$iconfile" +Add-Content $path "IconIndex=0" + +# This will create and agent directory then download the ico file +# change ico file and location to download