Project

PSSharedGoods

PSSharedGoods is little PowerShell Module that primary purpose is to be useful for multiple tasks, unrelated to each other. I've created this module as “a glue” between my other modules.

Stars225
Forks39
Open issues2
PowerShell Gallery downloads666617
Releasev0.0.312
Language: PowerShell Updated: 2026-04-11T10:18:52.0000000+00:00

Curated Examples

Convert identities and SIDs

Use PSSharedGoods identity helpers to normalize account names and SIDs.

This pattern is useful when reporting code receives mixed domain names, local identities, and raw SID values.

It comes from the source example at Examples/ConvertIdentity1.ps1.

When to use this pattern

  • You need a consistent identity shape for reporting.
  • You receive a mix of account names and SIDs.
  • You want helper output before permission remediation.

Example

Import-Module .\PSSharedGoods.psd1 -Force

@(
    Convert-Identity -Identity 'Everyone'
    Convert-Identity -Identity 'NT AUTHORITY\SYSTEM'
    ConvertTo-SID -Identity 'Domain Admins'
) | Format-Table

What this demonstrates

  • normalizing identity values
  • using helper commands before reporting
  • handling multiple identity input forms

Source