{"id":23759695,"url":"https://github.com/humanagainstmachine/localusers","last_synced_at":"2026-05-20T07:05:06.552Z","repository":{"id":270233460,"uuid":"908579274","full_name":"HumanAgainstMachine/LocalUsers","owner":"HumanAgainstMachine","description":"Simple local users management and monitoring","archived":false,"fork":false,"pushed_at":"2025-01-11T21:52:55.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T22:26:25.772Z","etag":null,"topics":["account-management","local-account","local-user","local-users","windows"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HumanAgainstMachine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-26T12:20:05.000Z","updated_at":"2025-01-11T21:52:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"ba2d7b62-7b51-49b9-b96b-79a11989faf2","html_url":"https://github.com/HumanAgainstMachine/LocalUsers","commit_stats":null,"previous_names":["humanagainstmachine/localusers"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HumanAgainstMachine%2FLocalUsers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HumanAgainstMachine%2FLocalUsers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HumanAgainstMachine%2FLocalUsers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HumanAgainstMachine%2FLocalUsers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HumanAgainstMachine","download_url":"https://codeload.github.com/HumanAgainstMachine/LocalUsers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239930273,"owners_count":19720292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["account-management","local-account","local-user","local-users","windows"],"created_at":"2024-12-31T20:18:14.413Z","updated_at":"2026-05-20T07:05:01.517Z","avatar_url":"https://github.com/HumanAgainstMachine.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# LocalUsers PowerShell Module\n\n## Overview\n**LocalUser** helps maintain Windows stability and efficiency, providing enhanced user-centric cmdlets for local user management:\n\n- `Get-User`\n    1. Focuses only on real accounts (excludes built-in system accounts).\n    2. Retrieves lost accounts (profiles lacking a name).\n    3. Provides session activity details.\n\n-  `Remove-User`\n    1. Completely removes users, including profiles and registry entries.\n    2. Optionally backs up user profiles before removal.\n\n-  `New-User`\n    1. Enables fast user creation with a blank password.\n\n## Compatibility and Limitations\nThe **LocalUser** module parses the output of the `quser` command, which is language-dependent. The module has been tested with `quser` outputs in English, Italian, German, French, and Spanish. Based on available information, no other language outputs are possible, so the module is expected to function universally.\n\nIf a \"Language not supported\" exception is thrown, please contact me for assistance.\n\n\n---\n\n## Installation\n\nInstall **LocalUsers** from the [PowerShell Gallery](https://www.powershellgallery.com/packages/LocalUsers/):\n\n```powershell\nInstall-Module -Name LocalUsers\n```\n\n---\n\n## Cmdlet Reference\n\n### `Get-User`\n\n#### Synopsis\nDisplays detailed local user account information, excluding built-in and system accounts.\n\n#### Syntax\n```powershell\nGet-User [-Activity]\n```\n\n#### Parameters\n- `-Activity`: Displays user activity, including login/logout timestamps and session-related details.\n\n#### Examples\n```powershell\n# Display all user accounts\nGet-User | Format-table\n\n# Display user activity details\nGet-User -Activity | Format-table\n```\n\n#### Output Properties\n| Property Name      | Description                                                                    | Requires `-Activity` |\n|--------------------|--------------------------------------------------------------------------------|----------------------|\n| `SID`              | Security ID of the user account                                                | No                   |\n| `Username`         | Account name                                                                   | No                   |\n| `AccountSource`    | Source of the account (Local, Microsoft Account, etc.)                         | No                   |\n| `LocalPath`        | Path to the user's profile folder                                              | No                   |\n| `isAdmin`          | Indicates if the account has administrative privileges                         | No                   |\n| `PasswordLastSet`  | Date the password was last updated                                             | Yes                  |\n| `LastLogin`        | Date of the user's last successful login                                       | Yes                  |\n| `LastLogout`       | Date of the user's last logout (session terminated)                            | Yes                  |\n| `SessionID`        | Current session ID                                                             | Yes                  |\n| `IdleSessionTime`  | Inactivity duration in `Days+HH:mm` format (session running while disconnected)| Yes                  |\n| `SessionStart`     | Date the current session began                                                 | Yes                  |\n\n---\n\n### `New-User`\n\n#### Synopsis\nCreates a new local user account with no expiration and a blank password.\n\n#### Syntax\n```powershell\nNew-User -Name \u003cString\u003e [-isAdmin]\n```\n\n#### Parameters\n- `-Name`: Specifies the username for the new account.\n- `-isAdmin`: Assigns administrative privileges to the user if specified.\n\n#### Examples\n```powershell\n# Create a standard user\nNew-User -Name \"JohnDoe\"\n\n# Create an administrator user\nNew-User -Name \"AdminUser\" -isAdmin\n```\n\n---\n\n### `Remove-User`\n\n#### Synopsis\nRemoves a specified local user account along with its profile and registry entries.\n\n#### Syntax\n```powershell\nRemove-User [-SID \u003cString\u003e] [-Name \u003cString\u003e] [-Backup]\n```\n\n#### Parameters\n- `-SID`: Specifies the SID of the user to be removed.\n- `-Name`: Specifies the name of the user to be removed.\n- `-Backup`: Saves the user's profile to the current user’s desktop before removal.\n\n#### Examples\n```powershell\n# Remove a user by SID\nRemove-User -SID \"S-1-5-21-1234567890-1234567890-1234567890-1001\"\n\n# Remove a user by name and back up their profile\nRemove-User -Name \"JohnDoe\" -Backup\n```\n\n---\n\n## System Requirements\n\n- **Operating System:** Windows 10 or later\n- **PowerShell Version:** 7.1 or later\n- **Privileges:** Requires administrative permissions\n\n---\n\n## Contribution\n\nWe welcome contributions! Submit issues or feature requests through the repository, or create a pull request.\n\n---\n\n## License\n\nThis module is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumanagainstmachine%2Flocalusers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhumanagainstmachine%2Flocalusers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumanagainstmachine%2Flocalusers/lists"}