https://github.com/santisq/get-customcredential
Get-Credential but allows resizing :O
https://github.com/santisq/get-customcredential
powershell winforms
Last synced: 8 months ago
JSON representation
Get-Credential but allows resizing :O
- Host: GitHub
- URL: https://github.com/santisq/get-customcredential
- Owner: santisq
- Created: 2021-07-04T22:59:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-28T18:41:03.000Z (over 3 years ago)
- Last Synced: 2025-04-08T05:50:29.155Z (11 months ago)
- Topics: powershell, winforms
- Language: PowerShell
- Homepage:
- Size: 72.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Get-CustomCredential
### DESCRIPTION
Similar to the builtin PowerShell cmdlet [`Get-Credential`](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/get-credential?view=powershell-5.1) but this one allows resizing. Initially posted as answer to [this question](https://stackoverflow.com/questions/68240512/is-there-another-way-to-ask-for-credentials-in-powershell-but-get-credential/68240960) on StackOverflow.
### OUTPUTS
- [`System.Management.Automation.PSCredential`](https://docs.microsoft.com/en-us/dotnet/api/system.management.automation.pscredential?view=powershellsdk-7.0.0)
### REQUIREMENTS
- PowerShell v5.1+ (Untested on PS Core)
### EXAMPLE

### CEDITS
- Sources for DPI awareness C# code:
- https://hinchley.net/articles/get-the-scaling-rate-of-a-display-using-powershell/
- https://www.osdeploy.com/modules/pshot/technical/resolution-scale-and-dpi
- Special thanks to [mklement0](https://stackoverflow.com/users/45375/mklement0) for helping me improve the code.