WebApp issues - Deploying URLs on the Public Desktop

In Notepad - Create a file updated with the details of the Company Website URLs.
Update the red sections with the name of the shortcut and URL path

$Shell = New-Object -ComObject ("WScript.Shell")
$Favorite = $Shell.CreateShortcut("C:\Users\Public\Desktop\Google.url")
$Favorite.TargetPath = "http://www.google.com.au";

$Shell = New-Object -ComObject ("WScript.Shell")
$Favorite = $Shell.CreateShortcut("C:\Users\Public\Desktop\My Account.url")
$Favorite.TargetPath = "https://myaccount.microsoft.com";

$Shell = New-Object -ComObject ("WScript.Shell")
$Favorite = $Shell.CreateShortcut("C:\Users\Public\Desktop\Outlook Email.url")
$Favorite.TargetPath = "https://outlook.office.com/mail/inbox";

Save the file as - WebApps.ps1


Endpoint Manager - Devices - Scripts

Add - Windows 10


Name - Shared Devices - Create shortcuts to Company Websites on Public Desktop
Description - Shared Devices - Creates shortcuts to Company Websites on the desktop of all users

Script Settings -

Script location - Browse to and upload the PowerShell script you just created.

Run this script using the logged on credentials - No
Enforce script signature check - No
Run script in 64 bit PowerShell host - Yes

Assignments -

Add groups -

Search and select the group(s) to be targeted
- In this instance I am targeting the group for Shared Devices
Click - Select

Assignments will update

Review and Add



Testing -

Shortcuts will appear on the desktop of the current user

You can confirm creation of the shortcuts - Note - Enable viewing hidden items in Explorer

If a standard user tries to delete the folder they will be prompted for Administrator rights



About the author -

Terry Munro is an IT specialist based in Brisbane, Australia.
He draws upon over 20 years experience designing and delivering technical solutions to a variety of enterprise clients in the private, Government and Education sectors, to revolutionise client businesses through collaboration and getting the most value from a variety of cloud solutions.
He is passionate about learning new technologies and is a firm believer in sharing knowledge to provide a better experience for all.
You can connect with Terry on LinkedIn - https://www.linkedin.com/in/terry-munro/

No comments:

Post a Comment