Skip to content

Instantly share code, notes, and snippets.

View Tasumin's full-sized avatar

Albert Taylor Tasumin

View GitHub Profile
@Tasumin
Tasumin / restart_execution_plans_truesight.ps1
Created August 23, 2018 13:30
Disable Execution Plans in Truesight
param (
[string]$appid=1,
[string]$tspshost="tsps.bmc.com"
)
function get_login_headers() {
$loginuri = "https://$tspshost/tsws/10.0/api/authenticate/login"
$method = "POST"
$postParams = @{username='user';password='password';tenantName='bmcrealm'}