Creating .vbs script for desktop shortcut - with parameters
From: James Wright (Wright_at_discussions.microsoft.com)
Date: 09/30/04
- Next message: Dave: "How to send data"
- Previous message: Yevgen Lazaryev: "Re: Script to know which file a user have access"
- Messages sorted by: [ date ] [ thread ]
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!!
- Next message: Dave: "How to send data"
- Previous message: Yevgen Lazaryev: "Re: Script to know which file a user have access"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|