CommonStuff

1.0.17

Various helper functions for modules IntuneStuff, AzureADStuff etc. Some of them are explained at https://doitpsway.com/.

   Some of the interesting functions:
   - ConvertFrom-HTMLTable - extracts & converts html table from given file/string/com object into the PSObject
   - ConvertFrom-XML - converts XML into PSObject
   - ConvertFrom-CompressedString
   
Various helper functions for modules IntuneStuff, AzureADStuff etc. Some of them are explained at https://doitpsway.com/.

   Some of the interesting functions:
   - ConvertFrom-HTMLTable - extracts & converts html table from given file/string/com object into the PSObject
   - ConvertFrom-XML - converts XML into PSObject
   - ConvertFrom-CompressedString
   - ConvertTo-CompressedString
   - Compare-Object2 - can be used for comparison of strings, objects, arrays of primitives/objects
   - Export-ScriptsToModule - export functions defined in ps1 files into PS module (including aliases and manifest file)
   - Get-InstalledSoftware - returns installed software on local/remote computer
   - Get-SFCLogEvent - gets SFC related lines from CBS.log
   - Get-PSHScriptBlockLoggingEvent - gets PowerShell Script Block logging events with context like who/when/how run the command, ...
   - Invoke-AsSystem - invoke given command under SYSTEM account. Support returning of the command transcript.
   - Invoke-AsLoggedUser - invoke given command under all currently logged users (impersonate given user). Support returning of the command transcript.
   - Invoke-FileContentWatcher - monitors changes in selected file content
   - Invoke-FileSystemWatcher - monitors changes in selected folder
   - Invoke-SQL - invoke SQL command (uses Security=SSPI authentication)
   - Invoke-MSTSC - invoke RDP connection using LAPS credentials (and more)
   - Publish-Module2 - solves error "The specified RequiredModules entry xxx In the module manifest xxx.psd1 is invalid" in case of missing required modules
   - Uninstall-ApplicationViaUninstallString - uninstalls application using information retrieved from system registry
   - ...
   
Show more

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name CommonStuff

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name CommonStuff

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2022 @AndrewZtrhgf. All rights reserved.

Package Details

Author(s)

  • @AndrewZtrhgf

Tags

PowerShell CommonStuff HTML SQL File

Functions

Compare-Object2 ConvertFrom-CompressedString ConvertFrom-HTMLTable ConvertFrom-XML ConvertTo-CompressedString Export-ScriptsToModule Get-InstalledSoftware Get-PSHScriptBlockLoggingEvent Get-SFCLogEvent Invoke-AsLoggedUser Invoke-AsSystem Invoke-FileContentWatcher Invoke-FileSystemWatcher Invoke-MSTSC Invoke-SQL Invoke-WindowsUpdate New-BasicAuthHeader Publish-Module2 Uninstall-ApplicationViaUninstallString

Dependencies

Release Notes


           1.0.14
               ADDED
                   Get-PSHScriptBlockLoggingEvent
           1.0.15
               CHANGED
                   renamed Create-BasicAuthHeader to New-BasicAuthHeader to avoid unapproved verb warning (Create-BasicAuthHeader is now alias)
           1.0.16
               ADDED
                   ConvertFrom-CompressedString
                   ConvertTo-CompressedString
           1.0.17
               CHANGED
                   ConvertTo-CompressedString - added support for pipeline input
                   ConvertFrom-CompressedString - added support for pipeline input
           

FileList

Version History

Version Downloads Last updated
1.0.17 (current version) 72,553 3/26/2024
1.0.16 1,428 3/25/2024
1.0.15 57,829 1/14/2024
1.0.14 80,962 8/17/2023
1.0.13 28,613 6/8/2023
1.0.12 44,250 12/20/2022
1.0.11 122 12/18/2022
1.0.10 5,143 9/26/2022
1.0.9 248 8/29/2022
1.0.8 36 8/29/2022
1.0.7 39 8/28/2022
1.0.6 47 8/25/2022
1.0.5 39 8/25/2022
1.0.4 40 8/24/2022
1.0.3 122 8/4/2022
1.0.2 208 6/23/2022
1.0.1 54 5/25/2022
1.0.0 44 5/25/2022
Show more