Skip to content

Pyrolaptop

  • Home
  • Projects
    • Holiday & Trip Videos
    • Revision For A-Level Computing F453
    • SYS Domain
      • Web Mgmt and Tools
  • Knowledge Base
    • KB-Office 365
    • KB-Powershell/CMD
    • KB-Software
    • KB – Windows Server
    • KB-HyperV
    • KB-Remote Desktop
    • KB- Group Policy
  • Reviews
    • Hardware
    • Software
  • Channel

Remove AD user without prompt

December 10, 2017September 13, 2020 By Matt Comment Closed

When using:

Remove-ADUser -Identity username

It prompt for confirmation to remove the object

To prevent this from appearing and removes the object add -Confirm:$False at the end

The full command is:

Remove-ADUser -Identity username -Confirm:$False

KB - Security, KB - Windows Server, KB-Powershell/CMD, Knowledge Base
WordPress Theme | Square by HashThemes