CommonStuff.psd1
# # Module manifest for module 'CommonStuff' # # Generated by: @AndrewZtrhgf # # Generated on: 17.09.2024 # @{ # Script module or binary module file associated with this manifest. RootModule = 'CommonStuff.psm1' # Version number of this module. ModuleVersion = '1.0.22' # Supported PSEditions # CompatiblePSEditions = @() # ID used to uniquely identify this module GUID = 'a69f8a7d-33d7-43ee-b45b-195896313942' # Author of this module Author = '@AndrewZtrhgf' # Company or vendor of this module CompanyName = 'Unknown' # Copyright statement for this module Copyright = '(c) 2022 @AndrewZtrhgf. All rights reserved.' # Description of the functionality provided by this module Description = 'Various helper functions for modules IntuneStuff, AzureADStuff etc. Some of them are explained at https://doitpshway.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-RestMethod2 - Invoke-RestMethod proxy functions that supports pagination, throttling - 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 - Send-EmailViaSendGrid - send email using SendGrid (supports api token retrieval from Azure Keyvault or credentials object) - ... ' # Minimum version of the PowerShell engine required by this module PowerShellVersion = '5.1' # Name of the PowerShell host required by this module # PowerShellHostName = '' # Minimum version of the PowerShell host required by this module # PowerShellHostVersion = '' # Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. # DotNetFrameworkVersion = '' # Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. # ClrVersion = '' # Processor architecture (None, X86, Amd64) required by this module # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module RequiredModules = @('PowerHTML') # Assemblies that must be loaded prior to importing this module # RequiredAssemblies = @() # Script files (.ps1) that are run in the caller's environment prior to importing this module. # ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module # TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module # FormatsToProcess = @() # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess # NestedModules = @() # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. FunctionsToExport = '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-RestMethod2', 'Invoke-SQL', 'Invoke-WindowsUpdate', 'New-BasicAuthHeader', 'Publish-Module2', 'Quote-String', 'Read-FromClipboard', 'Send-EmailViaSendGrid', 'Uninstall-ApplicationViaUninstallString' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = @() # Variables to export from this module VariablesToExport = '*' # Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. AliasesToExport = 'ConvertFrom-Clipboard', 'ConvertTo-QuotedString', 'Create-BasicAuthHeader', 'Install-WindowsUpdate', 'Invoke-WU', 'rdp', 'Watch-FileContent', 'Watch-FileSystem' # DSC resources to export from this module # DscResourcesToExport = @() # List of all modules packaged with this module # ModuleList = @() # List of all files packaged with this module # FileList = @() # Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. Tags = 'PowerShell','CommonStuff','HTML','SQL','File','Clipboard' # A URL to the license for this module. # LicenseUri = '' # A URL to the main website for this project. ProjectUri = 'https://github.com/ztrhgf/useful_powershell_modules' # A URL to an icon representing this module. # IconUri = '' # ReleaseNotes of this module ReleaseNotes = ' 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 1.0.18 CHANGED ConvertTo-CompressedString - fixed pipeline support ConvertFrom-CompressedString - fixed pipeline support 1.0.19 ADDED Send-EmailViaSendGrid 1.0.19 ADDED Quote-String Read-FromClipboard REMOVED Removed obsolete requirement for AdmPwd.PS module. Invoke-MSTSC uses built-in LAPS module instead. 1.0.21 CHANGED Invoke-AsSystem - new parameters scriptFile, usePSHCore Invoke-RestMethod2 - better handling of next link Invoke-MSTSC - rewrite for modern Windows LAPS; added core PSH support 1.0.22 CHANGED Invoke-MSTSC - fix for Windows PSH ' # Prerelease string of this module # Prerelease = '' # Flag to indicate whether the module requires explicit user acceptance for install/update/save # RequireLicenseAcceptance = $false # External dependent modules of this module # ExternalModuleDependencies = @() } # End of PSData hashtable } # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' # Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. # DefaultCommandPrefix = '' } |