Folder link

  • Thread starter Thread starter BedBaol
  • Start date Start date
B

BedBaol

Hello.
It is possible to make visible a link to public folder of server in desktop
of ANY users belong to some "organizational unit" ?
I try this with "Group Policy" but i don't find item....
Thanks.

BedBaol
 
You'll have to copy the file to the desktops. Startup script seems like a
good way of doing this (make sure the computer account has permissions to
the share and folder).

Here's some example code.

' 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


You won't need to use %USERNAME% if you take the startup script - you should
use All Users. However if you choose to use logon script, you should use
the %USERNAME% variable.
 
Back
Top