Announcement

Collapse
No announcement yet.

Logoff users if TS Profile Path Does not exist

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Logoff users if TS Profile Path Does not exist

    Guys,

    Anyone know of a way / script to check to see if a users TS Home Profile path exists and is correct, if not then it displays a message and logs off the user.

    Basically we use Mandatory profiles and we dont want users to logon with a local profile. Some times when people add the TS Home Profile path it's added incorrectly or not added at all. This logs users on with a local profile.

    What we want is if the users profile does not match the correct location i.e. c:\documents and settins\ManProf then a error message is displayed informing then that their profile settings are incorrect and then logs them off?

    Thanks

    Michael
    Michael Armstrong
    www.m80arm.co.uk
    MCITP: EA, MCTS, MCSE 2003, MCSA 2003: Messaging, CCA, VCP 3.5, 4, 5, VCAP5-DCD, VCAP5-DCA, ITIL, MCP, PGP Certified Technician

    ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

  • #2
    Re: Logoff users if TS Profile Path Does not exist

    Here's a start:
    http://www.microsoft.com/technet/scr....mspx?mfr=true

    Logoff a user within a few minutes:
    http://www.microsoft.com/technet/scr...7/hey0209.mspx

    Combine those 2 scripts and I think you're almost done... Or do you have some more wishes

    ps, shouldn't this topic belong to the scripting forum?
    Marcel
    Technical Consultant
    Netherlands
    http://www.phetios.com
    http://blog.nessus.nl

    MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
    "No matter how secure, there is always the human factor."

    "Enjoy life today, tomorrow may never come."
    "If you're going through hell, keep going. ~Winston Churchill"

    Comment

    Working...
    X