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
'Usage: psexec @target-computer-list.txt -u "username" cscript \\share\get-update-history.vbs | |
'Unfortunately, nicer methods like PowerShell Get-Hotfix / WMI query to Win32_QuickFixEngineering does not capture a complete list of updates | |
'If you have servers with various versions of .NET, PowerShell, without PowerShell, and they aren't all under SCCM or some other kind of centralized management, this might be your best shot at reporting updates. | |
'This method will get everything, but then needs to be parsed for Operation (not necessarily an Install), and result (not necessarily successful) | |
'Extracting a KB number is basically just a regex for the content between ( and ) | |
'For more, see https://msdn.microsoft.com/en-us/library/windows/desktop/aa387291(v=vs.85).aspx and https://msdn.microsoft.com/en-us/library/windows/desktop/aa386077(v=vs.85).aspx | |
Dim o | |
Set o = CreateObject("Microsoft.Update.Session") | |
Set s = o.CreateUpdateSearcher() |
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 TensorFlow (CPU), Keras, and some other tools to a new anaconda environment. | |
Open Anaconda Prompt | |
conda create --name tensorflow35 python=3.5 | |
conda activate tensorflow35 | |
conda install jupyter | |
conda install scipy | |
conda install spyder | |
pip install tensorflow |
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
$allHosts = get-folder unconfigured | get-vmhost | sort name | |
foreach ($thisHost in $allHosts){ | |
$esxcli = get-esxcli -VMHost $thisHost -v2 | |
if (($esxcli.system.settings.kernel.list.invoke() | ? {$_.name -like 'iovDisableIR'}).Configured -eq "TRUE"){ | |
write-host "Working on $($thisHost.name)..." | |
$arguments = $esxcli.system.settings.kernel.set.CreateArgs() | |
$arguments.setting = "iovDisableIR" | |
$arguments.value = "FALSE" | |
$esxcli.system.settings.kernel.set.Invoke($arguments) | |
} |
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
#Reduces the Disk.MaxLun on all connected ESXi hosts, as a workaround to an incorrect PDL error with ESXi 6.0+ and HPE 3PAR. | |
#Works by reducing the Disk.MaxLun below the 3PAR PE LUN 256, thus the PE LUN is not scanned and will not throw an unexpected PDL. | |
Get-VMHost | % { Get-AdvancedSetting -Entity $_ -Name "Disk.MaxLUN" | Set-AdvancedSetting -Value 255 } |
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
//For info about this gist, see my blog entry https://virtualdatacave.com/2016/09/fitbit-hr-data-raw/ | |
//For API see https://dev.fitbit.com/docs/heart-rate/#get-heart-rate-intraday-time-series | |
var dateFormat = require('dateformat'); | |
// initialize the express application | |
var express = require("express"), | |
app = express(); |
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
var transform = null; | |
if (thinProvisioned == true) { | |
transform = VcVirtualMachineRelocateTransformation.sparse; | |
} else if (thinProvisioned == false) { | |
transform = VcVirtualMachineRelocateTransformation.flat; | |
} | |
if (datastore == null) { | |
datastore = vm.datastore[0]; | |
} |
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
<html> | |
<head> | |
</head> | |
<body> | |
<canvas id="drawing" width="800" height="800" style="border: 1px solid black;"> </canvas> | |
<p>Implements Wikipedia <a href="https://en.wikipedia.org/wiki/L-system">L-system entry</a> Example 7 Fractal Plan using client side JavaScript and HTML5.<p> | |
<p>See source for details</p> | |
<script> | |
//Key variables |
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
#Set SSH service to manual and stop it | |
Get-VMHost | Get-VMHostService | ? key -eq "TSM-SSH" | Set-VMHostService -Policy Off | Stop-VMHostService |
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
DISM.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase |
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
#Check for Windows VMs with LSI driver version affected by VMware KB 2063346 | |
(Get-VM | ? powerstate -eq "PoweredOn" | ? {$_.guest.osfullname -match "Windows"}).Guest | Export-Csv temp.csv | |
Import-Csv temp.csv | % { Get-WmiObject Win32_PnPSignedDriver -ComputerName $_.Hostname | select __SERVER, devicename, driverversion | where {$_.devicename -like "*LSI*" } } |