We have a requirement to automatically open a website when the user logs in to the device. Wondering if anyone has remotely set this up on their Windows endpoints, supposedly via scripts?
We have a requirement to automatically open a website when the user logs in to the device. Wondering if anyone has remotely set this up on their Windows endpoints, supposedly via scripts?
We have a similar requirement in our organization. Here’s the PowerShell script that we deployed:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
param( [string]$Name = "enter_name_for_the_website_shortcut", [string]$URL = "enter_url_here", [string]$IconLocation = "enter_icon_location_for_shortcut" ) $WScriptShell = New-Object -ComObject WScript.Shell $Shortcut = $WScriptShell.CreateShortcut("$env:ALLUSERSPROFILE\Microsoft\Windows\Start Menu\Programs\Startup\$Name.lnk") $Shortcut.TargetPath = $URL if ($IconLocation) { $Shortcut.IconLocation = $IconLocation } $Shortcut.Save() |
When deploying the script via Hexnode, you can pass the shortcut name, url and icon location as parameters in the ‘Arguments’ field.
Don't have an account? Sign up