Creating .vbs script for desktop shortcut - with parameters

From: James Wright (Wright_at_discussions.microsoft.com)
Date: 09/30/04


Date: Thu, 30 Sep 2004 00:47:01 -0700

I work on a Windows 2000 Active Directory server, and it has come attention
to me that I need a desktop icon on every users desktop - Is there a way of
automating this process, so I dont have to go round some 200 machines..

I have searched the web, and found a scrip that works, however.. I cant seem
set a field that changes for each user - the username field. The line in
question is:

Set oShellLink = WshShell.CreateShortcut("C:\Documents and
Settings\%User.Name%\Desktop\IT Helpdesk.lnk")

%user.name% is the field I want to change for every user. Is there soemthing
I am missing? Do I have to set a parameter telling the script that, that
field is for the user name ? or am I simply asking too much from .vbs ?!?!

Please help!!



Relevant Pages

  • Re: Desktop Icons Auto-arrange after hard shutdown
    ... Apparently when you shutdown in a non-approved manner Windows doesn't remember your desktop layout. ... Save Desktop Icon Layout and Restore Desktop Icon Layout options to the ...
    (microsoft.public.windowsxp.general)
  • Re: Lock desktop icons
    ... Wes ... MS-MVP Windows Shell/User ... >> Save Desktop Icon Layout and Restore Desktop Icon Layout options to the ...
    (microsoft.public.windowsxp.general)
  • Re: Lock desktop icons
    ... click the reg file and it will install the dll file? ... > MS-MVP Windows Shell/User ... >>> Resource Kit, can be installed on Windows 2000 and XP systems. ... >>> Save Desktop Icon Layout and Restore Desktop Icon Layout options to the ...
    (microsoft.public.windowsxp.general)
  • Re: Setup-Deployment and Initial Window Focus
    ... Can anyone explain how I can get the program menu version to behave ... the same as the desktop icon? ... version of Windows you're using, ... shortcut behaves the same way as the desktop shortcut - the window has ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Saving desktop icons to their correct locations - display driver update
    ... which is included in the Windows NT Resource ... This adds the Save Desktop Icon ... Whenever I change out a display driver or a video card -it often resets back to ... save them to a particular order set so when you change back to your previous ...
    (microsoft.public.windowsxp.general)