Jump to content

Recommended Posts

Posted

Hi,

i ran into problem: i want to completly disable user login if no roaming profile found.

Searched net but couldn't found any relative topics :( Can anybody help?

Dino


Posted

Here's a start:

CMDOW @ /HID
IF NOT EXIST "%LOGONSERVER%\User_Profile_Dir\%USERNAME%\NTUSER.DAT" LOGOFF
exit

Make sure you change User_Profile_dir to the actual directory on the server. This batch file will have to reside on the local machine, since it won't run if the user isn't connected to the server/network. But it shouldn't be hard to distribute this file initially through another logon script from the server. The downside to this method is that it isn't fool proof and can be circumvented. But like I said, it's a start.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...