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
###### STEP 1 - Get GIT Credentials | |
$EncryptedPasswordString = "Your Encrypted Github Password String" | |
$Args = "Your Github Username", ($EncryptedPasswordString |ConvertTo-SecureString) | |
$GitCreds = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $Args | |
# Required Functions | |
Function Update-AllPowerShellProfile | |
{ | |
$ProfileDirectory = "$env:USERPROFILE\Documents\WindowsPowerShell\" | |
$AllPSPRofiles = dir $ProfileDirectory | ?{$_.name -like "*Profile*"} | sort LastWriteTime -Descending |
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-CmdletOfTheDay | |
{ | |
Function Get-HelpDescription ($d) | |
{ | |
$help.description|Out-File C:\Temp\DecriptionTemp.txt | |
$Description=@(); ((gc C:\Temp\DecriptionTemp.txt)|?{$_ -ne ''})| %{$Description+="$($_.trim())`n"} | |
return $Description | |
} | |
Function Get-HelpExample ($e) |
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-WindowsErrorcode | |
{ | |
[cmdletbinding()] | |
Param() | |
Begin | |
{ | |
$SystemErrorURLs = @( | |
"https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx", | |
"https://msdn.microsoft.com/en-us/library/windows/desktop/ms681388(v=vs.85).aspx", | |
"https://msdn.microsoft.com/en-us/library/windows/desktop/ms681383(v=vs.85).aspx", |
This file has been truncated, but you can view the full file.
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
[ | |
{ | |
"ErrorString": "ERROR_SUCCESS", | |
"ExitCode": 0, | |
"Hex Value": "0x0", | |
"Description": "The operation completed successfully." | |
}, | |
{ | |
"ErrorString": "ERROR_INVALID_FUNCTION", | |
"ExitCode": 1, |
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-Comment | |
{ | |
Param([Parameter(Position=0)] [String] $FilePath,[Switch] $FromClipBoard) | |
If($FilePath) | |
{ | |
$Content = Get-Content $FilePath | |
} | |
elseif($FromClipBoard) | |
{ |
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-Clipboard | |
{ | |
If ([Windows.clipboard]::ContainsText('CommaSeparatedValue')) {[Windows.clipboard]::GetText('CommaSeparatedValue')} | |
elseif ([Windows.clipboard]::ContainsText('Text')) {[Windows.clipboard]::GetText('Text')} | |
elseif ([Windows.clipboard]::ContainsText('Html')) {[Windows.clipboard]::GetText('Html')} | |
elseif ([Windows.clipboard]::ContainsText('Rtf')) {[Windows.clipboard]::GetText('Rtf')} | |
elseif ([Windows.clipboard]::ContainsFileDropList()) {[Windows.clipboard]::ContainsImage()} | |
} | |
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-DecompiledHTMLHelp | |
{ | |
[cmdletbinding()] | |
param( | |
[String] $Destination, [String]$Filename | |
) | |
$EXE = 'C:\Windows\hh.exe' | |
If(-not (Test-Path $destination)) |
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 Create-HTMLDOMFromFile | |
{ | |
Param( | |
[String] $FileName, | |
[String] $TagName, | |
[Int] $OuputCount = 11 | |
) | |
$HTML = New-Object -Com "HTMLFile"; | |
$Content = Get-Content -Path $FileName -raw |
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 Set-RandomBackground | |
{ | |
[Cmdletbinding()] | |
Param | |
( | |
[Switch] $DanceFloorMode, | |
[switch] $DefaultBackground | |
) | |
$OldErrorActionPreference = $ErrorActionPreference |
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
Install-Module -Name ProjectOxford -Scope CurrentUser -Force -Verbose |