Hey guys, this is probably something simple but I can't wrap my head around it.  What I'm trying to create is a shortcut to call chrome then launch the google apps website.  This is easy, it works using the configuration wizard.  The higher ups want it to have our custom icon like it's had in the past using another deployment product.

I figured I could simply create a script using it as a dependancy then a quick xcopy to the desktop.  The problem here is when I pick the shortcut as a dependancy it uploads chrome.exe :(.

I also was looking at using filesyncronization - how ever it requires a software title to be choosen even though all I'm making is a quick shortcut (several different ones).

I really appreciate any input!!!

1 Comment   [ + ] Show Comment

• So you need a shortcut with a custom Icon.
Cant you create the shortcut like your want on your desktop, with the icon change you would like then just xcopy that to where you need it. Of course the software will have to be installed etc for it to work. In regards to the icon, you will need to xcopy that to the computer as well, to the same reference point.

Hope you get what I mean.

4

Create your shortcut(s). Zip them up. Add the ZIP to a dependency in a Kscript.

Verify: File exist

C:\path\to\shortcut\shortcut.lnk

Remediation: Unzip a file

Dir: \$(KACE_DEPENDENCY_DIR)

File: <name_of_zip>.zip

Target: %public%\desktop


• This doesn't necessarily give you the icon you want for the shortcut if it's a custom icon. I had a similar issue with pushing a custom Help Desk icon to all our desktops.

I zipped the shortcut and the icon file together. Then unzipped them in the public folder and then ran a vbs script to set the icon for the shortcut:

Option Explicit

On Error Resume Next

Dim objShell
Dim objDesktop
Dim strAppPath
Dim strWorkDir
Dim strIconPath

strWorkDir ="C:\Users\Public\Desktop"
strAppPath = "https://helpdesk.yourdomain.org"
strIconPath = "C:\Users\Public\helpdesk.ico"

Set objShell = CreateObject("WScript.Shell")
objDesktop = objShell.SpecialFolders("AllUsersDesktop")
Set objLink = objShell.CreateShortcut(objDesktop & "\Waco ISD Help Desk.lnk")

objLink.Description = "Waco ISD Help Desk"
• Looks familiar, glad to see it's helping elsewhere ;)
• It looks like this will do the trick! I have one more quick question.

This particular shortcut needs to call chrome (not default browser) then browse to www.google.com/a/ourdomain. I've tried every variant of "strAppPath = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://www.google.com/a/ourdomain" that I can come up with.

Any thoughts on this one? Thanks for the pointers :).

0

You're just missing the following parameter.  The program and the arguments are two separate items.