core

1.9

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

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deloy 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

Test-ModuleLoaded Invoke-VariableBaseLine Add-Signature Invoke-EnvironmentalVariable ConvertTo-Hexadecimal ConvertFrom-Hexadecimal ConvertFrom-HexToFile ConvertFrom-Base36 ConvertTo-Base36 ConvertFrom-Base64 ConvertTo-Base64 Convert-ByteArrayToHex 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 History

Version Downloads Last updated
1.9 (current version) 576 5/16/2019
1.8 4,146 3/8/2019
1.7 550 2/12/2019
1.6 7,035 12/14/2018
1.5.0 5,330 9/8/2018
1.4 2,097 10/25/2017
1.3 78 10/4/2017
1.2 4 10/4/2017
1.1 92 8/9/2017
1.0 7 8/7/2017