Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/evotecit/psmypassword

This little PowerShell module provides a simple way to change password of any user account if you know it. This is very useful for situations when you can't login to RDP
https://github.com/evotecit/psmypassword

hacktoberfest password powershell rdp

Last synced: 2 months ago
JSON representation

This little PowerShell module provides a simple way to change password of any user account if you know it. This is very useful for situations when you can't login to RDP

Awesome Lists containing this project

README

        

















# PSMyPassword - PowerShell Module

This little PowerShell module provides a simple way to change password of any user account if you know it. This is very useful for situations when you can't login to RDP

With this command you can change password of any user account, as long as you have password. The account can be service account and expired.

```powershell
Set-MyPassword -UserName 'test'
```

With this command you can encrypt the password for use within a script.

```powershell
Protect-MyPassword -UserName 'test'
```

With this command you can test if given login and password are valid.

```powershell
Test-MyPassword
```

Blog post describing use cases: https://evotec.xyz/how-to-change-your-own-expired-password-when-you-cant-login-to-rdp/

## Installing

Everyone can install this module from **PowerShellGallery** hosted by Microsoft. It's recommended way to work with the module.
Version on **PowershellGallery** is optimized for speed and signed. Using code from **GitHub** is **recommended for development**.

```powershell
Install-Module -Name PSMyPassword -AllowClobber -Force
```

Force and AllowClobber aren't necessary, but they do skip errors in case some appear.

## Updating

```powershell
Update-Module -Name PSMyPassword
```

That's it. Whenever there's a new version, you run the command, and you can enjoy it. Remember that you may need to close, reopen PowerShell session if you have already used module before updating it.

**The essential thing** is if something works for you on production, keep using it till you test the new version on a test computer. I do changes that may not be big, but big enough that auto-update may break your code. For example, small rename to a parameter and your code stops working! Be responsible!

## Changelog

- 0.0.4 - 2021.09.13