Create Web shortcuts for Allowed website(s).
  • 26 Feb 2024
  • 1 読む分
  • PDF

Create Web shortcuts for Allowed website(s).

  • PDF

The content is currently unavailable in Ja - 日本語. You are viewing the default English version.
記事の要約

The following PowerShell script helps IT Admins to create a web shortcut for the Allowed Websites on the desktop of their managed Windows devices with Skip Application Policy.

  1. Create a file on your desktop, for example, create_web_shorcut.ps1 and open it in a text editor like notepad++

  2. Copy the contents as shown above to the file or click here to download the file.

    $webUrl = "website_url"
    $shortcutPath = "$env:USERPROFILE\Desktop\Google.lnk"
    
    $shell = New-Object -ComObject WScript.Shell
    $shortcut = $shell.CreateShortcut($shortcutPath)
    $shortcut.TargetPath = $webUrl
    $shortcut.Save()
    
  3. Add the website URL in line (as shown below) for which you want to create the shortcut.

    $webUrl = "https://www.google.com"
  4. While uploading the script on the dashboard please select the Execution level as User and Execution Context as All users.

  5. Follow our guide to upload & publish the PowerShell script using Scalefusion Dashboard.

Note:

To use this PowerShell scripts, the latest Scalefusion MDM Agent Application must be installed on the device(s). Please follow our guide to publish and install the Scalefusion MDM Agent Application.

Notes:

  1. The scripts and their contents are sourced from various albeit authenticated Microsoft sources and forums.

  2. Please validate the scripts on a test machine before deploying them on all your managed devices.

  3. Scalefusion has tested these scripts, however, Scalefusion will not be responsible for any loss of data or system malfunction that may arise due to the incorrect usage of these scripts.


この記事は役に立ちましたか?