-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsymblinks.bat
More file actions
28 lines (24 loc) · 918 Bytes
/
symblinks.bat
File metadata and controls
28 lines (24 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@ECHO OFF
ECHO Manually attempting to change Symbolic Link Evals
REM Below checks for admin rights (not nesccary but seems to work better)
goto check_Permissions
:check_Permissions
echo Administrative permissions required. Detecting permissions...
net session >nul 2>&1
if %errorLevel% == 0 (
echo Success: Administrative permissions confirmed.
) else (
echo Failure: Current permissions inadequate. Please run as administrator
PING 127.0.0.1 > NUL 2>&1
EXIT /B 1
)
REM Check the boxes in Group Policy locally
fsutil behavior set SymlinkEvaluation L2L:1
fsutil behavior set SymlinkEvaluation L2R:1
fsutil behavior set SymlinkEvaluation R2L:1
fsutil behavior set SymlinkEvaluation R2R:1
echo Please check that all is enabled,
fsutil behavior query SymlinkEvaluation
echo you may then need to restart
echo If all links are enabled you should be good to go!
pause