This file contains 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
#!/usr/bin/env python3 | |
#original script by Hanashi from PIA forums, mods to update transmission by Doonze | |
#converted to python3 and Deluge support added by Rastan | |
### IMPORTS | |
import requests | |
import json | |
import sys | |
import netifaces |
This file contains 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
#!/usr/bin/env python3 | |
###DESCRIPTION | |
#This script sends an email alert when a specific SolusVM metric | |
#exceeds its monitor | |
###USAGE | |
#solusvm_monitor.py <metric> <monitor> | |
#Metric: One of hdd, bw, or mem. Default is bw | |
#Monitor: Threshold to alert when exceeded. Default is 80 |
This file contains 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
#requires -version 3.0 | |
#requires -pssnapin Microsoft.Exchange.Management.PowerShell.E2010 | |
<# | |
.SYNOPSIS | |
Generates a CSV that can be used with the BatchMigration process | |
.DESCRIPTION | |
This script generates a CSV from a list of mailboxes for local migrations. Its primary use is to allow for custom mailbox distribution methods, such as by least-full database or round-robin | |
This is primarily meant for greenfield migrations where all databases are of similar configuration, and not heterogeneous database environments. | |
.NOTES |
This file contains 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
#requires -version 3.0 | |
#requires -pssnapin vmware.vimautomation.core | |
#Uncomment this on first run for initial connection. Unnecessary for re-runs | |
#connect-viserver d1vm-vc01,d2vm-vc01,d1vm-vcvdi01,d2vm-vcvdi01 -credential (get-credential) | |
$noDiskInfoVMs = @() | |
$vm = get-vm | |
$vm | | |
where guestid -notmatch 'windows7_64Guest' | |
This file contains 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 | |
Takes an Exchange Extended Message Trace and parses it into usable powershell objects | |
#> | |
[CmdletBinding()] | |
param ( | |
#Path to the extended message trace CSV | |
[Parameter(Mandatory)][String[]]$CSVPath | |
) |
This file contains 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
<# | |
.EXAMPLE | |
Get Enabled Computers from a domain in another environment | |
Get-ADSIEnabledComputer -connectionstring 'LDAP://myserver1.contoso.com/DC=contoso,dc=com' -username "admin" -password "Password@1307" | |
#> | |
#TODO: Convert Username/Password to PSCredential field for security | |
param ( |
This file contains 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
(get-childitem) | % {[PSCustomObject]@{Name=$_.Fullname;Size=(get-childitem $_ -recurse | % length | measure -sum | % sum | % {$_/1MB})}} | where size -lt 100 | % {Remove-Item -Recurse -Force $_.name} |
This file contains 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 Stop-DSCService { | |
stop-process (gwmi msft_providers | Where provider -like 'dsccore').hostprocessidentifier -force | |
remove-dscconfigurationdocument -stage pending -force | |
} |
This file contains 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
<# | |
Quickstart | |
------------------ | |
Get-Help Connect-CVServer -detailed | |
Get-Help Invoke-CVCommand -detailed | |
Connect-CVServer mycommvaultserver -force -verbose | |
Invoke-CVCommand 'Client' | |
Invoke-CVCommand 'Client/136' | |
#> |
This file contains 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
$CVDiskPerfEXE = 'C:\Program Files\Commvault\ContentStore\Base\cvdiskperf.exe' | |
$LogOutputDir = "$Home\desktop" | |
$drivesToTest = get-volume | where drivetype -match 'fixed' | where driveletter | where driveletter -notmatch 'C' | sort driveletter | |
foreach ($driveItem in $drivesToTest) { | |
[string]$driveletter = $driveitem.driveletter | |
write-verbose "Testing Drive $driveletter" | |
write-progress "Testing Drive $driveletter" | |
$args = @() |