# PSSharedGoods – PowerShell Module

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. I’ve noticed the more I build my modules, the more I use the same stuff and it became apparent I’ve two choices. Keep 3 or more versions of the same function across all my modules or export functions to separate module and bundle this module together. I chose the second option.

pages

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. I’ve noticed the more I build my modules, the more I use the same stuff and it became apparent I’ve two choices. Keep 3 or more versions of the same function across all my modules or export functions to separate module and bundle this module together. I chose the second option.

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. I've noticed the more I build my modules, the more I use the same stuff and it became apparent I've two choices. Keep 3 or more versions of the same function across all my modules or export functions to separate module and bundle this module together. I chose the second option. This module currently is used by following modules

- [**PSWriteWord**](https://evotec.xyz/hub/scripts/pswriteword-powershell-module/) – module to create Microsoft Word documents without Word being installed.
- [**PSWriteExcel**](https://evotec.xyz/hub/scripts/pswriteword-powershell-module/) – cross-platform module to create Microsoft Excel documents without Excel being installed.
- **[PSWinDocumentation](https://evotec.xyz/hub/scripts/pswindocumentation-powershell-module/) **– module to build documentation for Active Directory, Office 365 (Azure AD, Exchange Online), Exchange, Teams
- [**PSWinReporting **](https://evotec.xyz/hub/scripts/pswinreporting-powershell-module/)– module to create reports and provide monitoring of Security Events
- **[PSAutomator](https://evotec.xyz/hub/scripts/psautomator-powershell-module/)**– proof-of-concept module for onboarding, offboarding and business as usual
- **Many others…** I do have rather large portfolio

The module has over 120 functions. Some of those functions are relatively simple, some are bad, and some are quite ok. The most important part they work for me and my modules, and I use them. If I ever need to fix something, I fix it in one place and it auto-updates itself in multiple modules. So if you're looking at its code base, be gentle. If you want to help and fix something be my guest. Only thing I ask it has to keep functionality and naming convention to not break existing modules.

## 💡 Note worthy features

- Connectivity to Office 365
- Connectivity to Exchange On-Premises
- Many object manipulations
- Some dates coverage
- Convert methods

### 💡 Useful links

- The code is published on [GitHub](https://github.com/EvotecIT/PSSharedGoods)
- Issues should be reported on [GitHub](https://github.com/EvotecIT/PSSharedGoods/issues)
- Code is published as a module on [PowerShellGallery](https://www.powershellgallery.com/packages/PSSharedGoods/)

### 💡 Modules using PSSharedGoods

Currently, there are over 120 functions that are part of PSSharedGoods. Feel free to explore GitHub Sources and check if you have anything you would like to use. Below you can find articles that use those functions and have them described.

- [Office 365 – Report containing User Information and Mailbox Usage](https://evotec.xyz/office-365-report-containing-user-information-and-mailbox-usage/)
- Function **Convert-Office365License** – It can convert licenses for Office 365 both ways. From **SKU** to **FullName** and vice versa.
- Function **Convert-ExchangeSize** – It can convert Exchange Online, Exchange 2013/2016 values into **KB, MB, GB, TB **sizes
- Function **Convert-ExchangeEmail** – It can convert returned email addresses into readable form
- [How to change your own expired password when you can't login to RDP](https://evotec.xyz/how-to-change-your-own-expired-password-when-you-cant-login-to-rdp/)
- Function [**Set-PasswordRemotely**](https://evotec.xyz/how-to-change-your-own-expired-password-when-you-cant-login-to-rdp/) – This little function does magic trick of changing password remotely even if you don't have a domain-joined computer and can't login to computer via RDP

### 💡 Required prerequisites

Before you can use this script, you need to do a few manual steps. Since this script is published as a module, it's quite easy to set this up. Just execute the command below (accept warnings) .. and you can test it out.

```powershell
Install-Module PSSharedGoods

#Update-Module PSSharedGoods
```

You can of course install everything manually from **GitHub** (as everything is published there) but it will be far easier to just use **Install-Module**.

### 💡 Quick fixes / helpful tips

- [PowerShellGallery – You are installing modules from an untrusted repository](https://evotec.xyz/powershellgallery-you-are-installing-modules-from-an-untrusted-repository/)
- [Install-Module: The term Install-Module is not recognized as the name of cmdlet, function, script file or operable program](https://evotec.xyz/install-module-the-term-install-module-is-not-recognized-as-the-name-of-cmdlet-function-script-file-or-operable-program/)

<!-- PowerForge markdown source sha256:733482E17CEBE71607FC65B3EA59088F9C551A78F6F0E769CFF63AD6EE8E095A; title=True -->

<!-- PowerForge markdown artifact sha256:F9FA4CD7F729186AF6EE39B7D6350D3441B1EE1526FE3F3FB0355654EE26018F -->
