By Ravi ShankarCreated 14 Dec 2011, Modified 05 Jan 2012
My Rating:
Vote
Rating:
(2 votes)
Views:4917
Downloads:63
Source:

Delete user profile

Language:  VBScript

Compatibility

Windows XP Yes Windows 2003 Unknown
Windows 2000 Unknown Windows NT Unknown
Vista Unknown Windows 2008 Unknown
Description

to delete user profile

Code

Line Numbers: On  Off      Plain Text
strComputer = "." ' Local Computer
strUser = "User01"

Set objComputer = GetObject("WinNT://" & strComputer & "")
objComputer.Delete "user", strUser

 


Got a useful script? Click here to upload!


 

  Post Comment
Order By:  
User Comments
      
garish22
Posted On: 1/18/2013 12:41:47 AM

hello everyone, I need to delete a user profile which name is Test. Can you help plz Thank you, Regards, Gary

Thunderstorm
Posted On: 1/12/2014 7:42:15 PM [Edited 1/12/2014 7:42:36 PM]

@Gary, change the User01 to the user you want in strUser = "User01"