Get a shared resource shortcut on user desktop with Group policy

If you want to make your lan users life easier(if you know the user usual level of  experience with pc in italy you can understand) here a trick to obtain a shared resource link on their desktop:

– Create a batch file(ora script) with these lines(here with kixtart script but it’s similar with a batch file):

if InGroup(“INTRANET\grsala”)
use q: “\\leonardo\Sala operatoria”
copy “p:\CartelleDesktop\Sala operatoria su Leonardo.lnk” “c:\documents and settings\all users\desktop\”
AT (20,25) “Premere un tasto per continuare…”
get $x
endif

if InGroup(“INTRANET\YOURGROUPNAME”)

use q: “\\SHAREDRESOURCEPATH”

copy “p:\shortcutfileWithLinkTOSHAREDRESOURCE.lnk” “c:\documents and settings\all users\desktop\”

endif

—-

In this case, we can link some similar files for OU or Shared resource (obviously depends on the size of your lan) just with an “if-else” command.

This trick apply on W2k3 servers.

~ di diegotech su ottobre 12, 2009.

Lascia un commento

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...

 
%d blogger cliccano Mi Piace per questo: