GPO to create Junction Point?


is there way gpo create junction point without using script?

mklink /j %appdata%\lotus %localappdata%\lotus

here how create junction via gpo/gpp.

create new immediate task(for windows vista/7).
enter name "create junction"
set security option "nt authority\system"
check "run highest privileges"

on "actions" tab create new action.
select "start program"
program run "cmd.exe"
in add arguments put (/c mklink /j "<link>" "<target>")

on "common" tab
check "item-level targeting.
select "targeting..."
select "new item>file match"
select "item options>is not"
"match type" select "folder exists"
for the path enter <link>.
select "new item>file match"
"match type" select "folder exists"
path enter <target>.
select "ok".

select "ok".

this creates task runs when <link> not exist , <target> does.  task should execute 1 time on each machine need to.  can add more target filters if need to.




Windows Server  >  Group Policy



Comments

Popular posts from this blog

Edit Group Policy

Hyper-V VM not reaching OS 'Logon' screen

DNS question...