+ Post New Thread
Results 1 to 4 of 4
Windows Thread, Script: Delete & Create User at shutdown or reboot [ONCE] in Technical; Hi everyone, I try to make a script that removes the user on which I am logged,in to restart the ...
  1. #1

    Join Date
    Aug 2011
    Location
    Paris
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Script: Delete & Create User at shutdown or reboot [ONCE]

    Hi everyone,

    I try to make a script that removes the user on which I am logged,in to restart the computer and recreate this user.

    I created a RunOnce key but the script and the deletion occurs only when I log on an admin session. But I need an AutoLogon on user session newly created.

    An idea?

    Thxs

  2. #2

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,689
    Thank Post
    334
    Thanked 515 Times in 483 Posts
    Rep Power
    179
    Removes the user as in deletes their account?

    Don't think a standard user can remove their own account, unless you're doing services etc, which would run before logon. Unless I'm missing something.

    Steve

  3. #3

    Join Date
    Aug 2011
    Location
    Paris
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I would like to run a script (or other) on my session which will remove this session at shutdown or reboot and which will recreate it.
    Or recharge my default profile (and default settings) on this session but I don't think it's possible.

  4. #4

    Join Date
    Aug 2011
    Location
    Paris
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I created a powershell script that deletes my home directory but it's not fast enough to start at boot before loging to the session.

    Maybe with a bat It will success but the: "rmdir C:\Users\username /s /q" does'nt remove the profile entirely.

SHARE:
+ Post New Thread

Similar Threads

  1. Script to delete all local user accounts
    By ihaveaproblem in forum Windows
    Replies: 4
    Last Post: 22nd July 2011, 07:45 AM
  2. Replies: 8
    Last Post: 24th May 2009, 03:49 PM
  3. Replies: 8
    Last Post: 17th November 2007, 09:04 PM
  4. Replies: 4
    Last Post: 27th September 2006, 02:31 PM
  5. Replies: 7
    Last Post: 27th November 2005, 10:41 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •