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
# pip install mozci | |
# pip install zstandard | |
import requests | |
import sys | |
from mozci.util.taskcluster import get_task | |
#input_task_id = "OkI2h843RBGsyOzo5NH1Dg" | |
input_task_id = sys.argv[1] |
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
@( | |
"HideEULAPage", | |
"HideLocalAccountScreen", | |
"HideOEMRegistrationScreen", | |
"HideOnlineAccountScreens", | |
"HideWirelessSetupInOOBE", | |
"NetworkLocation", | |
"OEMAppId", | |
"ProtectYourPC", | |
"SkipMachineOOBE", |
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
# Define the software to uninstall and the new software to install | |
$softwareToUninstall = "AdvanceFlow Addin" | |
$newSoftwareInstallerPath = "./ps1" | |
$newSoftwareInstallArguments = "/i /qn" | |
# Function to uninstall the old software | |
function Uninstall-Software { | |
param ( | |
[string]$softwareName | |
) |
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
Write-output "hi" |
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
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls1 | |
$code= @" | |
using System.Net; | |
using System.Security.Cryptography.X509Certificates; | |
public class TrustAllCertsPolicy : ICertificatePolicy { | |
public bool CheckValidationResult(ServicePoint srvPoint, X509Certificate certificate, WebRequest request, int certificateProblem) { | |
return true; | |
} | |
} | |
"@ |
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
iwr "https://downloadmirror.intel.com/739771/LAN-Win11-1.1.3.34.zip" -OutFile "C:\LAN-Win11-1.1.3.34.zip" | |
New-item -Path "C:\" -Name "NUCDrivers" -ItemType Directory -Force | |
Expand-Archive -Path "C:\LAN-Win11-1.1.3.34.zip" -DestinationPath "C:\NUCDrivers" |
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
## Get all DCs | |
$ports = @( | |
"135", ## TCP | |
"389", ## TCP/UDP | |
"636", ## TCP | |
"3268", ## TCP | |
"3269", ## TCP | |
"53", ## TCP/UDP | |
"88", ## TCP/UDP | |
"445" ## TCP |
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
## Check output of each one | |
Write-Host "Running gist from internet using write-host" | |
Write-Output "Running gist from internet using write-output" | |
Start-OSDCloud -ZTI | |
Restart-Computer -Force |
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-16"?> | |
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> | |
<RegistrationInfo> | |
<Date>2020-02-26T08:37:38</Date> | |
<Author>SYSTEM</Author> | |
</RegistrationInfo> | |
<Triggers> | |
<BootTrigger> | |
<StartBoundary>2020-02-26T08:37:00</StartBoundary> | |
<Enabled>true</Enabled> |
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
$Keys = Get-ChildItem -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Class" -Recurse -ErrorAction SilentlyContinue | Where-Object {$_.GetValueNames() -contains 'UpperFilters'} | |
$Keys += Get-ChildItem -Path "HKLM:\SYSTEM\ControlSet001\Control\Class" -Recurse -ErrorAction SilentlyContinue |Where-Object {$_.GetValueNames() -contains 'UpperFilters'} | |
$Keys += Get-ChildItem -Path "HKLM:\SYSTEM\ControlSet002\Control\Class" -Recurse -ErrorAction SilentlyContinue | Where-Object {$_.GetValueNames() -contains 'UpperFilters'} | |
$xenfilt_keys = $Keys | Get-ItemProperty | Where-Object{$_.UpperFilters -like "XENFILT"} | |
$xenfilt_keys | ForEach-Object {Remove-ItemProperty -path $_.PSPath -Name "UpperFilters"} | |
reg add HKLM\SYSTEM\CurrentControlSet\Control\ /v ServicesPipeTimeout /t REG_DWORD /d 300000 /f | |
reg delete HKLM\SYSTEM\CurrentControlSet\Services\xenbus /f | |
reg delete HKLM\SYSTEM\ControlSet001\services\xenbus /f |
NewerOlder