Delete a Local User Account With PowerShell
I need to delete a user from the PowerShell terminal and I don’t know how to do it. Well, fear no more, let’s have a quick read on Remove-LocalUser on how to do this. The command to delete the user is Remove-LocaUser. Remove-LocalUser [-InputObject] <LocalUser[]> [-WhatIf] [-Confirm] [<CommonParameters>] Remove-LocalUser [-Name] <String[]> [-WhatIf] [-Confirm] [<CommonParameters>] Remove-LocalUser [-SID] <SecurityIdentifier[]> [-WhatIf] [-Confirm] [<CommonParameters>] Here is an example of deleting a local user called simba....