WebApp issues - Deploying a folder with multiple 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 folder, shortcuts and URL paths


New-Item -Path "C:\Users\Public\Desktop" -Name "Company Websites" -ItemType "directory"

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

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

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


Save the file as - WebAppsFolder.ps1



=======================================================================



Endpoint Manager - Devices - Scripts


Add - Windows 10


Basics

Name - Shared Devices - Create Folder with Company Websites on Public Desktop
Description - Shared Devices - Creates a folder with 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
Next


Review and Add


Add


=======================================================================

Testing -

Folder will appear on the desktop of the current user


You can confirm creation of the folder and items - 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