core
1.9.4.2
Module with various generic functions that could be used in any script
Minimum PowerShell version
2.0
Installation Options
Owners
Copyright
(c) 2017 Chris Masters. All rights reserved.
Package Details
Author(s)
- Chris Masters
Tags
Functions
Test-ModuleLoaded Invoke-VariableBaseLine Add-Signature Invoke-EnvironmentalVariable ConvertTo-Hexadecimal ConvertFrom-Hexadecimal ConvertFrom-HexToFile ConvertFrom-Base36 ConvertTo-Base36 ConvertFrom-Base64 ConvertTo-Base64 Convert-ByteArrayToHex Export-Function Invoke-Touch Open-NotepadPlusPlus New-SymLink Remove-SymLink New-HardLink Get-HardLink ConvertFrom-DosToUnix Set-DirectoryOwner Invoke-Snitch Invoke-DebugIt Invoke-Alert Test-AdminRights Start-ImpersonateUser Get-LoggedOnUser Invoke-Elevate Invoke-CredentialManager Get-InstalledSoftware Get-UninstallString Get-USB Add-IPRemotingTrustedHost Get-IpRemotingTrustedHost Connect-Workstation Clear-IECachedData Get-ComObject Get-WindowsLicenseInfo Get-FirewallStatus
Dependencies
This module has no dependencies.
Release Notes
Version 0.3
- Code folding regions added for better navigation and visibility
- Function (SECURITY) added : Test-AdminRights
- Function (SECURITY) added : Start-ImpersonateUser
- Function (SECURITY) added : Get-LoggedOnUser
- Function (SECURITY) added : Invoke-Elevate
- Function (FILESYSTEM) added : Open-Notepad++
- Multiple aliases added for functions
- EventLogging added to Invoke-DebugIt function
Version 0.4
- Function (SECURITY) updated : Invoke-Elevate, "sudo $$" or "sudo $^" now works, similar to "sudo !!"
- Function (DEVELOPMENT) updated : Fixed scope issues with Invoke-VariableBaseLine
- Function (DEVELOPMENT) updated : $boolDebug must be set for -Debug to be recognized in other functions.
Version 0.5
- Function (FILESYSTEM) updated : As cool as it was, renamed Open-Notepad++ to Open-NotepadPlusPlus :(
- Function (FILESYSTEM) added : New alias created for Invoke-Touch = touch
- Function (SECURITY) added : Invoke-CredentailManager, with aliases
- Function (LOG/ALERT) updated : Removed the $boolDebug declaration from this function. This will be
set by the calling function, when -Debug is used.
- Function (DEVELOPMENT) updated : Now allows you to add the file path to a module not in the default path.
Version 0.6
- Function (DEVELOPMENT) added : Invoke-EnvrionmentalVariable
- Function (DEVELOPMENT) added : Invoke-Alert with alias (alert). Audible tone for when you want to
monitor the availability of something while doing some other work.
- Function (SECURITY) updated : Parameter alias on Invoke-CredentialManager for backward compatibility
- Function (DEVELOPMENT) added : ConvertTo-Hexadecimal
- Function (DEVELOPMENT) added : ConvertFrom-HexToFile. Great way for working with binary files.
- Function (DEVELOPMENT) added : ConvertTo-Base36
- Function (DEVELOPMENT) added : ConvertFrom-Base36
- Function (DEVELOPMENT) added : ConvertTo-Base64
- Function (DEVELOPMENT) added : ConvertFrom-Base64
Version 0.7
- Function (FILESYSTEM) added : New-SymLink
- Function (FILESYSTEM) added : Remove-SymLink
- Function (DEVELOPMENT) updated : Add-Signature. Removed aliases used inside the function.
- Module header information added.
- Function (LOG/ALERT) moved : Moved Invoke-Alert to Log/Alert region.
- Custom Type : added : MkLink type added. This is needed by several functions.
- Function (SECURITY) : updated : Invoke-Elevate : Removed variable baseline function call. This function
is typically used in conjunction with other functions, which may be using the baseline functionality.
Version 0.8
- Function (FILESYSTEM) added : New-HardLink :
- Alias (FILESYSTEM) : added : Create-SymbolicLink : Easier to remember when trying to thinka about what
the function actually does.
- Alias (DEVELOPMENT) : added : New-InvironmentalVarVariable, New-EnvVar, Remove-EnvVar, and
Remove-EnvironmentalVariable
- Function (SECURITY) : changed : Invoke-Elevate : added an argument for "no profile", instead of this
being the default. Sometimes we need the profile to load custom modules.
- Function (SECURITY) : changed : Invoke-CredentialManager modified to store user name too.
- Function (DEVELOPMENT) : changed : ConvertFrom-HexToFile updated. Failed on empty directories
Version 0.9
- Functions (ALL) : changed : Removed baselines for functions. This isn't really needed on these functions.
- Function (SECURITY) : changed : updated Invoke-CredentialManager. Now can return an object from XML
Version 1.0
- Module (core) : updated : moved change log information to module manifest
- Function (FILESYSTEM) : added : Get-HardLink, for finding links to a file. Author: Greg Shields
Version 1.1
- Function (SECURITY) : changed : Invoke-CredentialManager removed ConvertTo-SecureString -AsPlainText command
Version 1.2
- Function (DEVELOPMENT) : added : ConvertFrom-Hexadecimal. Converts hex input to ASCII string
- Function (FILESYSTEM) : added : ConvertFrom-DosToUnix. Replaces CLRF with newline within a file.
Version 1.3
- Region (SYSTEM) : added : additional functions that fit well into the core module
- Function (SYSTEM) : added : Get-InstalledSoftware, Get-USB, Add-IPRemotingTrustedHost, Get-IpRemotingTrustedHost,
Clear-IECachedData, Get-ComObject
Version 1.4
- Function (FILESYSTEM) : changed : Invoke-Touch updated to accept value from pipeline.
- Function (DEVELOPMENT) : added : Convert-ByteArrayToHex. Needed when working with some registry values
Version 1.5
- Function (SYSTEM) : added : Get-WindowsLicenseInfo. Gets a summary of the slmgr output from local or remote.
- Function (SYSTEM) : changed : Get-InstalledSoftware. Now accepts and array of computer names.
- Function (FILESYSTEM) : changed : Invoke-Touch. Ability to force directory type.
Version 1.6
- Function (SECURITY) : changed : Start-ImpersonateUser. Put password in quotes to escape most characters.
- Function (SYSTEM) : added : Connect-Workstation. Enters a PSSession on a remote computer
- Function (SECURITY) : added : Get-FirewallStatus. Shows if the local firewall is enabled
- Function (SYSTEM) : added : Get-UninstallString. Pulls the uninstall string from the registry for matching pattern
Version 1.6
- Function (SYSTEM) : changed : Get-UninstallString. Rewrite. Works off domain now.
Version 1.7-8
- Function (SECURITY) : changed : Start-ImpersonateUser. Reworked some things. More tweaking to come.
Version 1.9
- Function (FILESYSTEM) : added : Set-DirectoryOwner. Changes the ownership of a folder
- Function (SYSTEM) : changed : Get-ComObject.
Version 1.9.1
- Function (SYSTEM) : changed : Get-ComObject. Now works for remote computers
- Moved to GitHub. Actions update to PowerShell Gallery
Version 1.9.2
- Function (SECURITY) : changed : Get-LoggedOnUser. Changed the filter for when the user has an alternate shell. Also added SessionID, creation time, and idle time.
Version 1.9.2.1
- Function (SECURITY) : changed : Get-LoggedOnUser. Solved an issue with create data getting mixed up.
Version 1.9.3.1 & 2
- Function (SECURITY) : changed : Get-LoggedOnUser. Updated with duration information, per request. Ability to pass error and warning action
Version 1.9.4
- Function (DEVELOPMENT) : added : Export-Function.
Version 1.9.4.1
- Function (FILESYSTEM) : changed : Open-NotepadPlusPlus added path for 64bit installs. Fixed.
Version 1.9.4.2
- Function (FILESYSTEM) : changed : Second attempt to solve :( Open-NotepadPlusPlus.
FileList
Version History
Version | Downloads | Last updated |
---|---|---|
1.9.4.2 (current version) | 41,544 | 11/6/2024 |
1.9.4.1 | 99,652 | 9/26/2024 |
1.9.4 | 7,213 | 9/23/2024 |
1.9.3.3 | 29,173 | 9/12/2024 |
1.9.3.2 | 1,291,634 | 3/6/2023 |
1.9.3.1 | 3,638 | 3/3/2023 |
1.9.3 | 322 | 3/3/2023 |
1.9.2.1 | 71 | 3/3/2023 |
1.9.2 | 95 | 3/3/2023 |
1.9.1 | 964 | 3/2/2023 |
1.9 | 1,594,629 | 5/16/2019 |
1.8 | 4,567 | 3/8/2019 |
1.7 | 970 | 2/12/2019 |
1.6 | 7,456 | 12/14/2018 |
1.5.0 | 5,750 | 9/8/2018 |
1.4 | 3,301 | 10/25/2017 |
1.3 | 497 | 10/4/2017 |
1.2 | 423 | 10/4/2017 |
1.1 | 480 | 8/9/2017 |
1.0 | 29 | 8/7/2017 |