No announcement yet.

Script to Delete User Profiles

  • Filter
  • Time
  • Show
Clear All
new posts

  • Script to Delete User Profiles

    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!

  • #2
    Re: Script to Delete User Profiles

    Try DelProf.


    • #3
      Re: Script to Delete User Profiles

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


      • #4
        Re: Script to Delete User Profiles

        delprof /? shows the switches and parameters.
        Gareth Howells

        BSc (Hons), MBCS, MCP, MCDST, ICCE

        Any advice is given in good faith and without warranty.

        Please give reputation points if somebody has helped you.

        "For by now I could have stretched out my hand and struck you and your people with a plague that would have wiped you off the Earth." (Exodus 9:15) - I could kill you with my thumb.

        "Everything that lives and moves will be food for you." (Genesis 9:3) - For every animal you don't eat, I'm going to eat three.