PowerShell-Scripts
platform-compat
PowerShell-Scripts | platform-compat | |
---|---|---|
6 | 23 | |
8 | 249 | |
- | - | |
5.5 | 1.2 | |
about 2 months ago | over 3 years ago | |
PowerShell | C# | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PowerShell-Scripts
-
Who is using APIs and Why?
We're using the Remote Support API to manage create, delete and mutate Session Policies, Group Policies, Jump Groups and Jump Clients based on another internal datasource, here is a function I've made to interface with it using PowerShell: https://github.com/RobinBeismann/PowerShell-Scripts/blob/master/API-Functions/Invoke-BomgarQuery.ps1 It takes care of Authentication and Pagination.
-
API pagination help?
I tend to just write one function per API I query that has pagination builtin, some APIs just return them as Headers so you can't use Invoke-RestMethod and have to fallback to Invoke-WebRequest. Have a look at the existing ones here: https://github.com/RobinBeismann/PowerShell-Scripts/tree/master/API-Functions
- BrancheCache for Windows Updates downloads
-
Orchestration groups for Hyper-V servers
This is not how orchestration groups work, you need to define your own pre- and postscripts for it. Here are some examples for Hyper-V (FOCM for Failover Clusters), SHHV for single hosts. Make sure to set your timeout values high enough and test on non productive clusters first. https://github.com/RobinBeismann/PowerShell-Scripts/tree/master/SCCM/OrchestrationGroups
-
How to handle multiple disks during deployment?
There you go. :) https://github.com/RobinBeismann/PowerShell-Scripts/blob/master/SCCM/Get-OSInstallDisk.ps1
- Retrieving Logs Remotely
platform-compat
-
KeePass flaw allows retrieval of master password
DotNet offers the SecureString class to keep a string encrypted in Memory, but as long as the OS does not natively support this concept, the only advantage is that it resides in memory for a shorter time, the disadvantage is that SecureStrings are easier to search for.
- System.Net.Mail.SmtpClient is not recommended anymore; what is the alternative?
-
Bitwarden PINs can be brute-forced
Note the KeePass's resistance to the attack mentioned depends on the security of .NET's secure string, which, here's what Microsoft has to say about it (https://github.com/dotnet/platform-compat/blob/master/docs/D...)
As for KeePassXC, last I checked it didn't even bother.
-
Ever Find A Dead Man's Switch On A Network/Domain?
TIL. Looks like the deprecation note recommends MailKit.
-
Disabilities and Windows Passwords
Well of course, but it does have to be passed to the module that generates the hashes AD uses in the first place. And as I said, the standard password reset screen is bound to store the password in plain text somewhere as well.
-
Embedded logo in HTML email sent from PowerShell
This won’t help you with your question, but I figured I should warn against using send-mailmessage.
-
Alternative to PowerShell cmdlet 'send-mailmessage'
points you here.
-
API pagination help?
Some of the reasons for not using Hashtable or other non-generic collection types are outlined here. That's why Microsoft doesn't recommend their usage in new implementations across all of its API documentation.
- How to deal with credentials in automated scripts?
-
pfSense configuration backup
And if you really want to be secure you need to something better than a SecureString: https://github.com/dotnet/platform-compat/blob/master/docs/DE0001.md
What are some alternatives?
envchain - Environment variables meet macOS Keychain and gnome-keyring <3
ImportExcel - PowerShell module to import/export Excel spreadsheets, without Excel
envconsul - Launch a subprocess with environment variables using data from @HashiCorp Consul and Vault.
MailKit - A cross-platform .NET library for IMAP, POP3, and SMTP.
distrobuilder - System container image builder for LXC and Incus
AngleSharp - :angel: The ultimate angle brackets parser library parsing HTML5, MathML, SVG and CSS to construct a DOM based on the official W3C specifications.
dotfiles - Home directory with an absurd amount of tweaks
SecretManagement - PowerShell module to consistent usage of secrets through different extension vaults
AngleParse - HTML parsing and processing tool for PowerShell.
sysbox - An open-source, next-generation "runc" that empowers rootless containers to run workloads such as Systemd, Docker, Kubernetes, just like VMs.
omi - Open Management Infrastructure
sops - Simple and flexible tool for managing secrets