This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Recover-LogSpace { | |
[CmdletBinding()] | |
Param( | |
[parameter(ValueFromPipelineByPropertyName, | |
Mandatory)] | |
[string[]] | |
$SqlServer, | |
[parameter(ValueFromPipelineByPropertyName)] | |
[string[]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Let's assume we have a CSV that looks like this | |
Name | |
"Ross, Bob" | |
"Bacon, Kevin" | |
#> | |
Import-Csv example.csv | Select-Object Name, Length |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-StringHash { | |
<# | |
.SYNOPSIS | |
Returns the hash for a given string input | |
.DESCRIPTION | |
Will hash 1 or more plaintext strings with the specified hashing algorithm. | |
If no algorithm is specified, MD5 will be used as the default. | |
Supported algorithms include: MD5, SHA1, SHA256, SHA384, SHA512 |
NewerOlder