Folder link

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
 
P

Paul Williams [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top