Pages

tirsdag 14. mai 2013

Scripting: Delete user profile

If you ever need to delete a user profile on Windows Vista/7/2008, or above, using script, you can use wmic like this (replace red text with variables or whatever works for you):
 wmic /node:"computer.fqdn.name" path win32_UserProfile where LocalPath="c:\\users\\username" Delete