IF the users logs on locally, (homeusers)

Forgot the cmd commands is this possible ?

code:
 ; Check logon server

IF %LOGONSERVER% = %COMPUTERNAME%
? "local logon change start string"
nbtstat -RR
path=\\pdc\NETLOGON
@echo off
%systemdrive%\kix32.exe \\pdc\netlogon\start.kix
ENDIF

\erik