Script to remove all user profiles from a workstation except global user and admin

PauloValentim-2701 0 Reputation points
2023-02-10T15:53:19.5066667+00:00

Hello.

I'm looking for help with a script to remove user profiles that have logged into a workstation other than the local Admin and Global users.

Thanks.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,036 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,793 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MotoX80 35,416 Reputation points
    2023-02-10T18:08:58.2+00:00

    Post the script you are running and explain what error you are getting or what you don't understand.

    There are plenty of examples on the internet.

    https://www.bing.com/search?q=powershell+remove+user+profiles

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.