GithubHelp home page GithubHelp logo

bendia224 / deleteuserprofile Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rstolpe/deleteuserprofile

0.0 0.0 0.0 122 KB

This module will let you show all of the user profiles that are saved on a local or remote computer, you can also delete one specific user profile or all of the profiles. You can also return the user profiles from multiple computers at the same time.

Home Page: https://www.powershellgallery.com/packages/DeleteUserProfile

License: MIT License

PowerShell 100.00%

deleteuserprofile's Introduction

GitHub
GitHub release (latest SemVer) Last release GitHub last commit
PSGallery downloads

Twitter

DeleteUserProfile

This module will let you show all of the user profiles that are saved on a local or remote computer, you can also delete one specific user profile or all of the profiles.
You can also return the user profiles from multiple computers at the same time.
The special windows profiles are excluded.

I have also made a blog post of it at my blog

This module will do the following

  • Return all of the user profiles from a remote or local computer
  • Delete one specific user profile or all of the user profiles from a local or remote computer
  • Delete all user profiles from both local and remote computer
  • You can exclude user profiles to show
  • You can exclude user profile to be deleted
  • If the user profile are loaded it will not get deleted
  • The special windows profiles are excluded

Links

Dependencies

  • WinRM must be activated on the computer (Guide for it coming soon)
  • Module also require that you have my service module installed, rsServiceModule

Install

Install for current user

Install-Module -Name DeleteUserProfile -Scope CurrentUser -Force

Install for all users

Install-Module -Name DeleteUserProfile -Scope AllUsers -Force

Example

Get-RSUserProfile

If you want to use this on a remote computer just add the parameter -ComputerName {COMPUTERNAME} in the commands below.

Get-RSUserProfile

Return all user profiles that are saved on the local computer

Get-RSUserProfile -Exclude "Frank", "rstolpe"

This will return all of the user profiles saved on the local machine except user profiles that are named Frank and rstolpe

Get-RSUserProfile -ComputerName "Win11-Test", "Win10"

This will return all of the user profiles saved on the remote computers named Win11-Test and Win10

Remove-RSUserProfile

If you want to use this on a remote computer just add the parameter -ComputerName <COMPUTERNAME> in the commands below.

Remove-RSUserProfile -All

This will delete all of the user profiles from the localhost / computer your running the module from.

Remove-RSUserProfile -Exclude "User1", "User2" -All

This will delete all of the user profiles except user profile User1 and User2 on the local computer

Remove-RSUserProfile -UserName "User1", "User2"

This will delete only user profile "User1" and "User2" from the local computer where you run the script from.

deleteuserprofile's People

Contributors

rstolpe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.