This file contains hidden or 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
function Set-WindowState { | |
<# | |
.SYNOPSIS | |
Set the state of a window. | |
.DESCRIPTION | |
Set the state of a window using the `ShowWindowAsync` function from `user32.dll`. | |
.PARAMETER InputObject | |
The process object(s) to set the state of. Can be piped from `Get-Process`. |
This file contains hidden or 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-host "test!" | |
$null = New-Item -Name 'Tests' -Path C:/ -Type Directory -Force | |
$null = New-Item -Name 'Config' -Path C:/ -Type Directory -Force |
This file contains hidden or 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
# Test C: drive speed with DiskSpd (fixed arg passing) | |
# --- Settings --- | |
$diskspdUrl = "https://github.com/microsoft/diskspd/releases/download/v2.2/DiskSpd.ZIP" | |
$diskspdExe = "$env:TEMP\diskspd.exe" | |
$tempFile = "D:\diskspd_testfile.dat" # test file now on D: | |
$outFile = "$env:TEMP\diskspd_results.txt" | |
$fileSize = "1G" # test file size | |
$duration = 30 # seconds |
This file contains hidden or 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
# Test C: drive speed with DiskSpd (fixed arg passing) | |
# --- Settings --- | |
$diskspdUrl = "https://github.com/microsoft/diskspd/releases/download/v2.2/DiskSpd.ZIP" | |
$diskspdExe = "$env:TEMP\diskspd.exe" | |
$tempFile = "$env:TEMP\diskspd_testfile.dat" | |
$outFile = "$env:TEMP\diskspd_results.txt" | |
$fileSize = "1G" # test file size | |
$duration = 30 # seconds |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
#!ipxe | |
goto ${vendor}${device} || goto ${vendor} || exit | |
:0001 | |
set ven SafeNet (wrong ID) | |
exit | |
:0010 | |
set ven Allied Telesis, Inc (Wrong ID) | |
exit | |
:00108139 | |
set dev AT-2500TX V3 Ethernet |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
#!ipxe | |
goto ${vendor}${device} || goto ${vendor} || exit | |
:0001 | |
set ven SafeNet (wrong ID) | |
exit | |
:0010 | |
set ven Allied Telesis, Inc (Wrong ID) | |
exit | |
:00108139 | |
set dev AT-2500TX V3 Ethernet |
This file contains hidden or 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
{ | |
"accessToken": "foo", | |
"cachesDir": "D:\\caches", | |
"certificate": "{\"version\":1,\"scopes\":[\"assume:worker-type:gecko-t/win11-64-24h2\",\"assume:worker-pool:gecko-t/win11-64-24h2\",\"assume:worker-id:westus2/vm-a0hfdezotl6uwzmbowqs6qpqir8wn3spu2u\",\"queue:worker-id:westus2/vm-a0hfdezotl6uwzmbowqs6qpqir8wn3spu2u\",\"secrets:get:worker-type:gecko-t/win11-64-24h2\",\"secrets:get:worker-pool:gecko-t/win11-64-24h2\",\"queue:claim-work:gecko-t/win11-64-24h2\",\"worker-manager:remove-worker:gecko-t/win11-64-24h2/westus2/vm-a0hfdezotl6uwzmbowqs6qpqir8wn3spu2u\",\"worker-manager:reregister-worker:gecko-t/win11-64-24h2/westus2/vm-a0hfdezotl6uwzmbowqs6qpqir8wn3spu2u\"],\"start\":1752760271626,\"expiry\":1753106771595,\"seed\":\"pMWlbm1WS7mVAhiG18UonwUHNbU6s8T0emK1fGf-G4Vw\",\"signature\":\"u6VasRbkTO8RPb8HfEbY89V3vpwyNAYEQ3P9G1mopPw=\",\"issuer\":\"static/taskcluster/worker-manager\"}", | |
"cleanUpTaskDirs": true, | |
"clientId": "worker/azure2/gecko-t/win11-64-24h2/westus2/vm-a0hfdezotl6uwzmbowqs6qpqir8wn3spu2u" |
This file contains hidden or 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 hidden or 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 hidden or 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 | |
) |
NewerOlder