core

1.0

Module with various generic functions that could be used in any script

Minimum PowerShell version

2.0

Installation Options

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

Install-Module -Name core -RequiredVersion 1.0

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

Install-PSResource -Name core -Version 1.0

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) 2017 Chris Masters. All rights reserved.

Package Details

Author(s)

  • Chris Masters

Functions

Test-ModuleLoaded Invoke-VariableBaseLine Add-Signature Invoke-EnvironmentalVariable ConvertTo-Hexadecimal ConvertFrom-HexToFile ConvertFrom-Base36 ConvertTo-Base36 ConvertFrom-Base64 ConvertTo-Base64 Invoke-Touch Open-NotepadPlusPlus New-SymLink Remove-SymLink New-HardLink Invoke-Snitch Invoke-DebugIt Invoke-Alert Test-AdminRights Start-ImpersonateUser Get-LoggedOnUser Invoke-Elevate Invoke-CredentialManager

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   

FileList

Version History

Version Downloads Last updated
1.9.3.2 935,439 3/6/2023
1.9.3.1 3,635 3/3/2023
1.9.3 319 3/3/2023
1.9.2.1 68 3/3/2023
1.9.2 92 3/3/2023
1.9.1 960 3/2/2023
1.9 1,594,624 5/16/2019
1.8 4,564 3/8/2019
1.7 967 2/12/2019
1.6 7,453 12/14/2018
1.5.0 5,747 9/8/2018
1.4 3,283 10/25/2017
1.3 494 10/4/2017
1.2 420 10/4/2017
1.1 477 8/9/2017
1.0 (current version) 25 8/7/2017
Show less