Re: Common Desktop Icons for multiple users

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



The only way through GPO, by default, would be to use logon and/ or startup
scripts.

' An example of using environment variables when copying files.
' In this script a shortcut 'shortcut.lnk' is copied to the desktop
' of the %username% user profile.

set objFso=createObject("scripting.fileSystemObject")
set objWShell=wScript.createObject("WScript.Shell")

usrName=objWShell.expandEnvironmentStrings("%USERNAME%")

strFileToCopy="shortcut.lnk"
strFolder="C:\Documents and Settings\"&usrName&"\Desktop"

if objFso.folderExists(strFolder) then
objFso.copyFile strFileToCopy,strFolder&"\",true
end if



--
Paul Williams
Microsoft MVP - Windows Server - Directory Services
http://www.msresource.net | http://forums.msresource.net


.



Relevant Pages

  • Re: Common Desktop Icons for multiple users
    ... scripts. ... ' An example of using environment variables when copying files. ... ' In this script a shortcut 'shortcut.lnk' is copied to the desktop ...
    (microsoft.public.windows.server.active_directory)
  • Re: Setting .adp properties outside access (AllowBypassKey)
    ... I'll be inventory many adp files for my department. ... I believe that everybody opening an Access file through automation ... wouldn't want to trigger those scripts either. ... Similarly, in your startup form, you would put... ...
    (microsoft.public.access.adp.sqlserver)
  • [PATCH v3] kbuild: generate modules.builtin
    ... To make it easier for module-init-tools and scripts like mkinitrd to ... listing all builtin modules. ... Environment variables ... PHONY += $ ...
    (Linux-Kernel)
  • Re: login scripting
    ... are talking about with startup scripts. ... I've never been a fan of user login scripts. ... it just thinks it has a load of persistently-mapped drives. ...
    (microsoft.public.win2000.general)
  • Re: Q re missing rc.local file
    ... On Friday 05 August 2005 11:03, Bob Proulx wrote: ... >> But, what do I do it aI want to remove boinc, but not setibatch? ... > assume it is another thing you want run at startup. ... > create individual scripts one for each of those then that is fine ...
    (Debian-User)