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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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