Script to Delete User Profiles

Home Forums Scripting General Scripting Script to Delete User Profiles

This topic contains 3 replies, has 3 voices, and was last updated by Avatar jackfh 10 years, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Avatar
    jackfh
    Member
    #136406

    I’m trying to come up with a script that will, on logoff, delete user profiles.

    This is a lab environment and we normally use Deep Freeze but we’re trying to get away from that. The problem is student accounts accumulating. The user accounts all begin with ‘S’ and have 8 numerical digits after that – like S12345678. So, can anyone help with a script that will delete any user account starting with an ‘S’? Thanks for any help!

    Avatar
    joeqwerty
    Moderator
    #300996

    Re: Script to Delete User Profiles

    Try DelProf.

    Avatar
    jackfh
    Member
    #347852

    Re: Script to Delete User Profiles

    Thanks Joe, Not sure how I can make that work in a script though.

    #341304

    Re: Script to Delete User Profiles

    delprof /? shows the switches and parameters.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.