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
{ | |
"autoStart": true, | |
"fullscreen": true, | |
"lazyLoadTabs": false, | |
"websites": [ | |
{ | |
"url": "http://kwiki.kastle.com/display/AnonView/System+Status?frameable=true", | |
"duration": 20, | |
"tabReloadIntervalSeconds": 60 | |
}, |
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 | |
Post active vSphere alarms to a Microsoft Teams channel. | |
.DESCRIPTION | |
Connect to the specified vSphere vCenter, query for all active alarms, and post those | |
as a card to Microsoft Teams via a Webhook. | |
The card will contain one section per alarm with a few facts: the cluster involved, | |
the date and time of the alarm, the alarm status (yellow/red/etc), and whether |
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
<# | |
.DESCRIPTION | |
Log timestamped ping replies and timeouts to the screen and a logfile | |
.PARAMETER host | |
The host or IP to ping | |
.EXAMPLE | |
PingLog.ps1 www.google.com |
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 | |
<# | |
.SYNOPSIS | |
Remove stale user profiles, based on last used date | |
.PARAMETER NumDays | |
Number of days stale. Anything older than this will be removed | |
.PARAMETER computerName |
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 | |
Clean old cached items. | |
.DESCRIPTION | |
Forcibly clear Google Chrome and IE Cache for all users staler than a certain number of days | |
.PARAMETER Days | |
The number of days stale. Determined by LastUsed time from the user's profile. |
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
<# | |
Install all missing Remote Server Administration Tools. | |
Windows 10 Feature Updates are reliably removing RSAT features. This script adds them back. | |
#> | |
$Caps = Dism.exe /ONLINE /GET-CAPABILITIES | |
$Caps | Select-String -Pattern ' : (Rsat\..*)' -Context 0, 1 | | |
ForEach-Object { | |
if ($_.Context.PostContext -match "Not Present") { | |
if ($_ -match ' : (Rsat\..*)') { | |
$command = "DISM.EXE /Online /Add-Capability /CapabilityName:$($matches[1])" |
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
$syslog = 'udp://1.2.3.4:514' # change to your syslog host | |
$Hosts = Get-VMHost | Sort-Object Name | |
$Hosts | ForEach-Object { | |
try { | |
Write-Output "Setting $_ Syslog to $syslog" | |
Set-VMHostSysLogServer -VMHost $_ -SysLogServer $syslog -ErrorAction Stop | Out-Null | |
} | |
catch [Exception] { | |
Write-Output " Operation failed." |
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-VM | | |
ForEach-Object { | |
$Snap = Get-Snapshot -VM $_ | |
if (($Snap | Measure-Object).Count -gt 0) { | |
Format-Table $_.Name, | |
@{N = "Num Snaps"; E = {($Snap | Measure-Object).Count}}, | |
@{N = "Total MB"; E = {($Snap | Measure-Object -Sum SizeMB).Sum}}, | |
@{N = "Total GB"; E = {($Snap | Measure-Object -Sum SizeGB).Sum}} | |
} | |
} |
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
@("Cluster1", "Cluster2") | | |
ForEach-Object { | |
Get-Cluster -Name $_ | | |
Get-VM | Sort-Object Name | | |
Where-Object { $_.PowerState -eq "PoweredOn" } | | |
ForEach-Object { Get-View $_.ID } | | |
Where-Object { $_.Guest.ToolsVersionStatus -eq "guestToolsNotInstalled" } | | |
Select-Object Name, @{N = "Tools Version"; E = {$_.Config.Tools.ToolsVersion}}, | |
@{ N = "Status"; E = {$_.Guest.ToolsVersionStatus}} | | |
Format-Table -AutoSize |
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 | |
Load/unload all discovered user hives into the registry | |
.DESCRIPTION | |
For the local machine, load all discovered user hives. Provide the option to then come | |
back and unload those same hives. | |
Why might you want to do this: |
NewerOlder