Skip to content

Instantly share code, notes, and snippets.

@mziyabo
mziyabo / Get-IISVersion.ps1
Created February 3, 2018 12:59
Get the version of IIS installed
$w3wpPath = $Env:WinDir + "\System32\inetsrv\w3wp.exe"
If(Test-Path $w3wpPath) {
$productProperty = Get-ItemProperty -Path $w3wpPath
Write-Host $productProperty.VersionInfo.ProductVersion
}
Else {
Write-Host "Not find IIS."
}
@mziyabo
mziyabo / run-oltpbench.sh
Last active October 3, 2017 07:10
run OltpBench, progressively scaling warehouses on VOLTDB and/ MONETDB
#!/bin/bash
# Script to Load and Execute the tpcc benchmark to a database
echo Enter DatabaseType:
echo [0]. MONETDB
echo [1]. VOLTDB
echo -n DatabaseType:
read DatabaseType
@mziyabo
mziyabo / CRMSetupConfiguration.psm1
Created September 27, 2016 15:01
PowerShell module to help do a silent CRM installation
function New-SetupConfiguration
{
[PSCustomObject]$PSLogin=@{
Login=""
Password=""
};
@{
Configuration=@{
PatchLocation="";
UpdateInstall=$true;
@mziyabo
mziyabo / FilePing.ps1
Last active April 20, 2020 09:50
PowerShell File Watcher w/o PowerShell Eventing
Param
(
[Parameter()]
[string]$FileDirectory,
[Parameter(Mandatory=$true)]
[string]$FilePattern,
[Parameter(Mandatory=$true)]
[float]$PollingIntervalMin,