DNS Redirector
 Return to FAQ List

FAQ 77: Logon script integration

Category: BlockedIP function

Using a logon script can allow some users to browse the Internet without the restrictions imposed by DNS Redirector.

This is one way to toggle "authorization to surf" or "bypassing the block" when a user logs on.


The logon script is usually found in \\DC_server_name\NETLOGON\login.bat and specified under the user account Profile tab.

Change the domain name pinged in the example below to match what you have specified in authorized.txt or bypassblock.txt

- - - - - START login.bat - - - - -
NET USE H: \\server1\users$\%username%
NET USE P: \\server1\public$

if "%username%"=="mark" goto toggle
if "%username%"=="Mark" goto toggle
if "%username%"=="MARK" goto toggle

ping secret.example.com -n 1
- - - - - END login.bat - - - - -

Related articles
FAQ 92  Set different DNS servers via Group Policy
FAQ 164  Set different DNS servers via DHCP MAC filtering

DNS Redirector | Legal Information | 2003-2019