Remove User Account

anthony davis 6 Reputation points
2021-10-01T14:14:00.187+00:00

Hello Forum,

Can someone guide me on a PowerShell script that can delete the follow user accounts from these two locations:

Local Machine
C:\Users

Thanks
Tony

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,360 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Limitless Technology 39,351 Reputation points
    2021-10-04T10:05:42.61+00:00

    Hello Anthony D,

    Could you be more specific?

    Initially to remove a local account would be with a simple:

    Remove-LocalUser -Name "yourusername"


    As always if you have any questions please don't hesitate to contact us.

    0 comments No comments