Announcement

Collapse
No announcement yet.

Delete User Profile From 7 servers

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

  • Delete User Profile From 7 servers

    Hi all,


    I have 7 terminal servers and I am looking for a script that can delete user profile folder one after another from a remote computer.

    P.s

    The script must to ask me at the beginning what is the name of the folder that i want to delete.

    10X

  • #2
    Re: Delete User Profile From 7 servers

    Hi Asadah

    Does it have to be scripted?
    You can use the Delprof.exe utility.
    Considering you only have a handfull of machines and you want to be prompted before the folder is deleted, Delprof should do it for you.

    Cheers
    Caesar's cipher - 3

    ZKHQ BRX HYHQWXDOOB GHFLSKHU WKLV BRX ZLOO UHDOLVH LW ZDV D ZDVWH RI WLPH!

    SFX JNRS FC U6 MNGR

    Comment


    • #3
      Re: Delete User Profile From 7 servers

      Originally posted by L4ndy View Post
      Hi Asadah

      Does it have to be scripted?
      You can use the Delprof.exe utility.
      Considering you only have a handfull of machines and you want to be prompted before the folder is deleted, Delprof should do it for you.

      Cheers
      thank you but my problem is that i dont know how to write this script

      Comment


      • #4
        Re: Delete User Profile From 7 servers

        Originally posted by asadah View Post
        thank you but my problem is that i dont know how to write this script
        It's not a script, it's a Command line utility you can download in your machine from :http://www.microsoft.com/downloads/d...displaylang=en
        It's also part of Win 2003 Resource kit.
        Then in your command line type delprof /p /c:\\computer name .
        You will be prompted to accept or decline each profile deletion.
        Y and enter to delete N and enter not to.
        You can use the /q switch if you want to delete them in quiet mode and don't want to be prompted to confirm deletion.
        Try delprof /? for all the options.

        Cheers
        Caesar's cipher - 3

        ZKHQ BRX HYHQWXDOOB GHFLSKHU WKLV BRX ZLOO UHDOLVH LW ZDV D ZDVWH RI WLPH!

        SFX JNRS FC U6 MNGR

        Comment


        • #5
          Re: Delete User Profile From 7 servers

          Originally posted by L4ndy View Post
          It's not a script, it's a Command line utility you can download in your machine from :http://www.microsoft.com/downloads/d...displaylang=en
          It's also part of Win 2003 Resource kit.
          Then in your command line type delprof /p /c:\\computer name .
          You will be prompted to accept or decline each profile deletion.
          Y and enter to delete N and enter not to.
          You can use the /q switch if you want to delete them in quiet mode and don't want to be prompted to confirm deletion.
          Try delprof /? for all the options.

          Cheers
          you didnt understand my but its ok i found somthing... 10x

          Comment

          Working...
          X