A requirement for almost all organisations looking to manage their Windows 10 estate is to push out desktop shortcuts.

After enrolling your device into Workspace One UEM you can push a script out that will create your shortcut. Here’s an example of mine:

Open notepad and copy the following, edit your URL’s and the location of your .ico file.

@echo off

echo Set oWS = WScript.CreateObject(“WScript.Shell”) > CreateShortcut.vbs

echo sLinkFile = “%HOMEDRIVE%%HOMEPATH%\Desktop\WorkspaceOne.lnk” >> CreateShortcut.vbs

echo Set oLink = oWS.CreateShortcut(sLinkFile) >> CreateShortcut.vbs

echo oLink.TargetPath = “https://eucse.vmwareidentity.eu” >> CreateShortcut.vbs

echo oLink.IconLocation = “c:\EUCSE\WorkspaceOne\WS1.ico” >> CreateShortcut.vbs

echo oLink.Save >> CreateShortcut.vbs

cscript CreateShortcut.vbs

del CreateShortcut.vbs

This script will create a .vbs script that creates the shortcut.

Save the document as a .bat file.

Now we can upload the .bat file as a ‘Product’ into the Workspace One portal and push it out to our managed Windows 10 machines by following the below steps:

Click on Devices->Staging&Provisioning->Files/Actions

This is where we’re going to upload the script and the .ico file.

Click ‘Add Files/Actions’

Select Windows and choose Windows Desktop

Name the ‘Files/Actions’

Add your files, specifying the path you wish to download the files to.

No we need to set the manifest, this is the command that the Agent, on the device, will execute

Hit save.

Now we need to add this ‘Files/Actions’ into a product. The product will be assigned to the end devices and executed

Create a new product and select Windows again. Name the product and assign it to the relevant group

On the manifest tab, select the ‘File/Actions’ that will now be listed and save and activate the product.

Your end devices will now receive the specified files and execute them, all from the Workspace One UEM console.

Spread the love