free log
CRM

Bozteck VNCScan Community

Community makes things happen
Welcome to Bozteck VNCScan Community Sign in | Join | Help
in
Home Forums

Updating desktop shortcut icon URL fields/ remove old vnc versions....

Last post 06-10-2007, 5:06 AM by Spook. 3 replies.
Sort Posts: Previous Next
  •  01-19-2007, 8:53 AM 1318

    Updating desktop shortcut icon URL fields/ remove old vnc versions....

    Does someone have a script that will update or change the URL field of a user's desktop shortcut icon?  I have approx. 200 workstations that may need to have this done. 

    2) Does anyone have a script that will remove old versions of VNC?  We have deployed ulta-vnc with the venm console quite successfully but I still have workstations with tight-vnc, win-vnc, etc. 

    Thanks in advance.  Any help is very much appreciated.

  •  02-05-2007, 12:37 PM 1380 in reply to 1318

    Re: Updating desktop shortcut icon URL fields/ remove old vnc versions....

    Does someone have a script that will update or change the URL field of a user's desktop shortcut icon?  I have approx. 200 workstations that may need to have this done. 

     

    I agree if there was a simple way to change out shortcuts on desktops that would be great some times you just need to update or add a shortcut to a desktop 

  •  02-09-2007, 9:35 AM 1402 in reply to 1318

    Re: Updating desktop shortcut icon URL fields/ remove old vnc versions....

    'on error resume next
    OPTION EXPLICIT
    dim objShell, objFileSystem, strAllUsersDesktop, strShortcutFile, MyShortcut2
    Set objShell = CreateObject ("WScript.Shell")
    Set objFileSystem = CreateObject("Scripting.FileSystemObject")
    StrAllUsersDesktop = objShell.SpecialFolders("AllUsersDesktop")

    strShortcutFile = strAllUsersDesktop & "\Shortcut Title.lnk"
    If Not objFileSystem.FileExists(strShortcutFile) Then
        Set MyShortcut2 = objShell.CreateShortcut(strShortcutFile)
        MyShortcut2.TargetPath = "\\server\share\folder"
        MyShortcut2.WorkingDirectory = "C:\"
        MyShortcut2.WindowStyle = 4
        MyShortcut2.IconLocation = "\\server\share\folder\programfile.exe, 0"
        MyShortcut2.Save
    End If

    That's a basic outline to create a shortcut on the All Users Desktop.  If you want to replace a shortcut that already exists, you can simply change the IF statement.  You need to modify the various fields to indicate the name of the shortcut, the path it points to, the working directory and the icon.

    If the shortcut is on the user's desktop then you'll need to modify this as a login script since running from VENM it would change your profile's desktop, not that of the logged in user.  It's hard to automate something that update's the logged-in user's profile.

    You can copy the above to a text file, edit it as required, rename it with a .VBS extension.  You can test it on your computer by double-clicking the icon.  If it works, it can be put into VENM as a remote script.

    --Alan--

  •  06-10-2007, 5:06 AM 1920 in reply to 1402

    Re: Updating desktop shortcut icon URL fields/ remove old vnc versions....

    I may never have to visit a client's site again!
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems