core

1.5.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.5.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

Author(s)

Chris Masters

Copyright

(c) 2017 Chris Masters. All rights reserved.

Owners

Tags

system

Functions

Invoke-DebugIt ConvertTo-Base36 Get-LoggedOnUser Invoke-EnvironmentalVariable Remove-SymLink Get-WindowsLicenseInfo Invoke-Elevate New-HardLink ConvertFrom-Base64 ConvertFrom-Hexadecimal ConvertTo-Base64 ConvertFrom-HexToFile Clear-IECachedData Invoke-VariableBaseLine Get-ComObject Get-HardLink Invoke-Alert ConvertFrom-Base36 Invoke-Touch Get-IpRemotingTrustedHost Start-ImpersonateUser Add-Signature Add-IPRemotingTrustedHost Test-ModuleLoaded Open-NotepadPlusPlus New-SymLink ConvertTo-Hexadecimal Get-USB Convert-ByteArrayToHex Get-InstalledSoftware Invoke-Snitch Invoke-CredentialManager ConvertFrom-DosToUnix Test-AdminRights

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 History

Version Downloads Last updated
1.9 917,590 5/16/2019
1.8 4,157 3/8/2019
1.7 561 2/12/2019
1.6 7,046 12/14/2018
1.5.0 (current version) 5,339 9/8/2018
1.4 2,694 10/25/2017
1.3 86 10/4/2017
1.2 12 10/4/2017
1.1 100 8/9/2017
1.0 15 8/7/2017