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
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory=$false)] | |
[string]$iisAppPoolPattern = "LoanAlterations*", | |
[Parameter(Mandatory=$false)] | |
[string]$computerName = $env:COMPUTERNAME, | |
[Parameter(Mandatory=$false)] | |
[int]$maxWaitTime = 30, |
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
[CmdletBinding(SupportsShouldProcess=$true)] | |
Param( | |
[Parameter(Mandatory=$false)] | |
[string]$ConfigFile, | |
[Parameter(Mandatory=$false)] | |
[ValidateScript({Test-Path $_ -PathType Container})] | |
[string]$SourceFolder, | |
[Parameter(Mandatory=$false)] |
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 | |
Installs or updates Microsoft Edge Enterprise x64 package. | |
.DESCRIPTION | |
This script checks the local Edge version, compares it with the downloaded version, | |
and installs the new version if it's newer. It handles process termination and various installation scenarios. | |
.PARAMETER InstallerPath | |
The path to the Microsoft Edge MSI installer. Default is "C:\temp\scripts\MicrosoftEdgeEnterpriseX64.msi". |
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 | |
Downloads the latest Microsoft Edge Enterprise offline x64 package for Windows Server with optimized speed and reliability. | |
.DESCRIPTION | |
This script checks the local Edge version, compares it with the latest available version, | |
and downloads the package if necessary. It uses optimized download methods for better speed and includes robust error handling. | |
.PARAMETER DownloadDir | |
The directory where the Edge package will be downloaded. Default is "C:\temp\scripts". |
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 | |
Retrieves and summarizes Event Log data from local or remote machines. | |
.DESCRIPTION | |
This script retrieves Event Log data from specified machines, groups the events, | |
and provides a summary including count and the latest message for each group. | |
.PARAMETER ComputerName | |
Specifies the target computers. Default is the local machine. |
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
import argparse | |
import time | |
from playwright.sync_api import Playwright, sync_playwright, expect, TimeoutError | |
import logging | |
import sys | |
import os | |
from dotenv import load_dotenv | |
import configparser | |
from typing import List, Tuple, Dict, Any | |
#from tqdm import tqdm |
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 | |
Automates snapshot management for virtual machines. | |
.DESCRIPTION | |
This script automates the process of creating and managing snapshots for virtual machines | |
in a web-based management interface. It is compatible with PowerShell V5 and does not rely on external WebDriver dependencies. | |
.NOTES | |
File Name : manageVMSnapshots.ps1 | |
Author : [Your Name] |
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
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory = $false)] | |
[string]$OldNewDnsFile = "dns_old_new.csv", | |
[Parameter(Mandatory = $false)] | |
[string[]]$ComputerNames = @("localhost"), | |
[Parameter(Mandatory = $false)] | |
[string]$OutputFile = "updateIISBindingsResult.csv", |
NewerOlder