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
<# | |
.SYNOPSIS | |
Enable VSS Shadow Copies on remote computers. | |
.DESCRIPTION | |
Enable VSS Shadow Copies on remote computers. The default settings will take a snapshot every 1 hour and use up to 5% of the disk. | |
.PARAMETER ComputerName | |
The computer(s) to enable VSS on. If piping from Get-ADComputer use 'Get-ADComputer -Filter * | select Name' to handle a bug in Get-ADComputer's piping. | |
.PARAMETER DriveLetter | |
Which drive to enable VSS on. | |
.PARAMETER CacheSize |
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
<# | |
.SYNOPSIS | |
Reformats a MAC Address depending on the use case. | |
.DESCRIPTION | |
Takes a string or strings that should be reformated as a MAC address. | |
.PARAMETER Address | |
The MAC Address to reformat as a string | |
.PARAMETER Separator | |
What separator should be inserted, defaults to ':' | |
.EXAMPLE |
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
<# | |
.SUMMARY | |
Converts bytes values into human readable forms. | |
.DESCRIPTION | |
Converts bytes values into human readable forms. | |
.PARAMETER Bytes | |
Input in Bytes |
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
# Bump up the TLS profile to the max value supported by your system | |
[System.Enum]::GetValues('Net.SecurityProtocolType') | | |
Where-Object { $_ -gt [System.Math]::Max( [Net.ServicePointManager]::SecurityProtocol.value__, [Net.SecurityProtocolType]::Tls.value__ ) } | | |
ForEach-Object { | |
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor $_ | |
} | |
# The rest of your Profile.ps1 ... |
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
<# | |
.SYNOPSIS | |
Reads proxy access information from GroupWise 2012 or later. | |
.DESCRIPTION | |
Reads proxy access information from GroupWise 2012 or later. Uses the SOAP API to fetch proxy access ACLs from GroupWise. | |
.PARAMETER User | |
User(s) to query proxy access for. |
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
<# | |
.SYNOPSIS | |
Installs a wireless profile from an exported XML file. | |
.DESCRIPTION | |
Installs a wireless profile from an exported XML file, stores the version (install date and time) in the registry. | |
Author: Shannon Brooks |
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
<# | |
.SYNOPSIS | |
Removes a wireless profile from an exported XML file. | |
.DESCRIPTION | |
Removes a wireless profile from an exported XML file, clears the version from the registry. | |
Author: Shannon Brooks |
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
<# | |
.SYNOPSIS | |
Test for a wireless profile from an exported XML file or by Name. | |
.DESCRIPTION | |
Test for a wireless profile from an exported XML file, checks for a minimum and/or maximum version if supplied. | |
Author: Shannon Brooks |
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
# compile command: | |
# ps2exe.ps1 -inputFile .\Submit-OutlookMessageToHelpdesk.ps1 -outputFile .\Submit-OutlookMessageToHelpdesk.exe -runtime40 -x86 -noConsole -iconFile .\forward_email.ico | |
$ForwardTo = "Help Desk <[email protected]>" | |
$SmtpServer = "smtp.corp.domain.com" | |
$SmtpUseSSL = $true | |
[void][System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | |
Add-Type -AssemblyName System.Drawing | |
Add-Type -AssemblyName Microsoft.Office.Interop.Outlook |
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
<#PSScriptInfo | |
.VERSION 2018.10.02.1248 | |
.GUID 75bfca34-ff9c-4cac-beab-51a685d42c44 | |
.AUTHOR Shannon Brooks | |
.COMPANYNAME Brooksworks |