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", |
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(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] | |
[string[]]$ComputerNames = @($env:COMPUTERNAME), | |
[string[]]$ScanPaths = @("D:\", "E:\"), | |
[string]$OldNewDnsFile = "old_new_dns.csv", | |
[string]$OutputFile = "scanConfigResult_$(Get-Date -Format 'yyyyMMdd_HHmmss').csv", | |
[string]$LogFile = "ScanLog_$(Get-Date -Format 'yyyyMMdd_HHmmss').log", | |
[int]$MaxConcurrentJobs = 5, | |
[int]$BatchSize = 1000, |
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(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] | |
[string[]]$ComputerNames = @($env:COMPUTERNAME), | |
[string[]]$ScanPaths = @("D:\", "E:\"), | |
[string]$OutputFile = "DNSUrls_$(Get-Date -Format 'yyyyMMdd_HHmmss').csv", | |
[string]$LogFile = "ScanLog_$(Get-Date -Format 'yyyyMMdd_HHmmss').log", | |
[string]$UrlPattern = '(?i)([a-z0-9-]+\.)+co\.nz', | |
[int]$MaxConcurrentJobs = 5, | |
[int]$BatchSize = 1000 |
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
# RemoteOps.Tests.ps1 | |
BeforeAll { | |
. $PSScriptRoot\RemoteOps.ps1 | |
Mock Write-Log {} | |
Mock Resolve-FullPath { $Path } | |
Mock Get-Content { "Write-Output 'Test Script'" } | |
} | |
Describe "RemoteOps - Command Execution" { |
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=$true)] | |
[string]$regPath, | |
[Parameter(Mandatory=$true)] | |
[string]$regName, | |
[Parameter(Mandatory=$true)] | |
[string]$regNewValue, |
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]$regKeyPattern = '.*', | |
[Parameter(Mandatory=$false)] | |
[string]$regValuePattern = '.*', | |
[Parameter(Mandatory=$false)] | |
[string[]]$registryPaths = @("HKLM:\SOFTWARE\WOW6432Node\Google"), | |
[Parameter(Mandatory=$false)] | |
[string[]]$excludePaths = @("HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Google\Update*"), |
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 | |
Executes commands or copies files on remote computers. | |
.DESCRIPTION | |
This script provides functionality to execute commands or copy files on multiple remote computers simultaneously. | |
It supports both running commands/scripts and copying files/directories. | |
.PARAMETER ComputerName | |
Specifies the target computers. Can be used with or without ConfigFile. |
NewerOlder