Using the system registry users can change the number of previous logon attempts that a server will cache, with the valid range of values for this parameter is 0 to 50. To turn of chaching you need to change the value to 0. To cache you can choose the number of logon attempts, any value below 50.
Follow the steps to change the logon value
Step 1: Run Registry Editor by typing regedit in Run
Step 2: Navigate to the following registry key:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Current Version\Winlogon\
Step 3: Go to the right pane and right click on blank space. Create a New String Value (REG_SZ) registry value named CachedLogonsCount.
Note: In case, CachedLogonsCount is already defined skip this step.
Step 4: Set the CachedLogonsCount with a value between 0 and 50, both inclusive, which represents how many previous login credentials the system should remember.
To disable cached logins, set the value data to 0 (zero).
Once you disable the user is prompted with this message when attempting to login without a domain controller.
The system cannot log you on now because the domain is not available.