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
<?xml version="1.0" encoding="UTF-8"?> | |
<WMIConfiguration> | |
<Namespace Path="ROOT\cimv2"> | |
<Class Name="Win32_Service"> | |
<Property Name="AcceptPause" /> | |
<Property Name="AcceptStop" /> | |
<Property Name="Caption" /> | |
<Property Name="CheckPoint" /> | |
<Property Name="CreationClassName" /> | |
<Property Name="DelayedAutoStart" /> |
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
Start-Process -Wait -WindowStyle Hidden -FilePath "$PSScriptRoot\ServiceUI_x64.exe" -ArgumentList "-process:tsprogressui.exe `"c:\Windows\System32\WindowsPowershell\v1.0\powershell.exe`" -ExecutionPolicy Bypass -WindowStyle Hidden -File `"$PSScriptRoot\UserNotification.ps1`" -SettingsFile `"$PSScriptRoot\Settings.ini`"" | |
Start-Process -Wait -WindowStyle Hidden -FilePath "$PSScriptRoot\ServiceUI_x64.exe" -ArgumentList "-process:tsprogressui.exe `"c:\Windows\System32\WindowsPowershell\v1.0\powershell.exe`" -ExecutionPolicy Bypass -WindowStyle Hidden -File \`"$PSScriptRoot\UserNotification.ps1\`" -SettingsFile \`"$PSScriptRoot\Settings.ini\`"" | |
Start-Process -Wait -WindowStyle Hidden -Verb RunAs -FilePath "$PSScriptRoot\ServiceUI_x64.exe" -ArgumentList "-process:tsprogressui.exe `"c:\Windows\System32\WindowsPowershell\v1.0\powershell.exe`" -ExecutionPolicy Bypass -WindowStyle Hidden -File `"$PSScriptRoot\UserNotification.ps1`" -SettingsFile `"$PSScriptRoot\Settings.ini`"" | |
Start-Process -Wait -WindowStyle H |
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
$domains = @("thiswebsiteprobablydoesntexist.com","thiswebsiteprobablydoesntexisttoo.com","z-nerd.com","thiswebsiteprobablydoesntexisteither.com","thiswebsiteprobablydoesntexist2.com","catapultsystems.com","thiswebsiteprobablydoesntexisttoday.com") | |
$numRetries = 3 | |
$retryWait = 5 |
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
#### You need the following DLLs from the MahApps.Metro NuGet Package | |
#### Put them all in the root folder the script is run from | |
# ControlzEx.dll | |
# MahApps.Metro.dll | |
# System.Windows.Interactivity.dll | |
## Load The Assemblies/DLLs | |
Add-Type -assemblyName PresentationFramework | |
Add-Type -assemblyName PresentationCore | |
Add-Type -assemblyName WindowsBase |