added scratchpad

This commit is contained in:
Brian Warren 2025-04-07 23:46:17 -05:00
parent d636da7e6a
commit fc5670f770
2 changed files with 51 additions and 16 deletions

View File

@ -451,23 +451,25 @@ switch ($action) {
$data = Get-Data
foreach ($dataEntry in $data) {
$path = "$($hiveShort):\$($dataEntry.Key)"
try {
New-Item -Path $path -Force -ErrorAction Stop
Write-Information "Imported key: $path"
}
catch {
Write-Error "Failed to import key: $path"
continue
}
# try {
# New-Item -Path $path -Force -ErrorAction Stop
# Write-Information "Imported key: $path"
# }
# catch {
# Write-Error "Failed to import key: $path"
# continue
# }
Write-Debug $path
foreach ($valueItem in $dataEntry.ValueItems) {
try {
New-ItemProperty -Path $path -Name $valueItem.Name -Value $valueItem.Value -PropertyType 'String' -Force -ErrorAction Stop
Write-Information "Imported value: $($valueItem.Name) in $path"
}
catch {
Write-Error "Failed to create entry: $($valueItem.Name) in $path"
continue
}
# try {
# New-ItemProperty -Path $path -Name $valueItem.Name -Value $valueItem.Value -PropertyType 'String' -Force -ErrorAction Stop
# Write-Information "Imported value: $($valueItem.Name) in $path"
# }
# catch {
# Write-Error "Failed to create entry: $($valueItem.Name) in $path"
# continue
# }
Write-Debug "$($valueItem.Name)=$($valueItem.Value)"
}
}
}

33
ua/registry/ya.txt Normal file
View File

@ -0,0 +1,33 @@
.\regquery-ua g hklm delete
.\regquery-ua s hklm delete
.\regquery-ua g hkcu delete
.\regquery-ua s hkcu delete
.\qlogic-devapp-tool -enableDebugging -airline ua -comType checkin -action delete -hive HKLM
.\qlogic-devapp-tool -enableDebugging -airline ua -comType gate -action delete -hive HKLM
.\qlogic-devapp-tool -enableDebugging -airline ua -comType checkin -action delete -hive HKCU
.\qlogic-devapp-tool -enableDebugging -airline ua -comType gate -action delete -hive HKCU
.\qlogic-devapp-tool -enableDebugging -airline ua -comType checkin -action import -hive HKCU -comDir C:\temp\ua\UA-SUITE\39.11\UASRDEV\cupps\6.0.3 -comFileName uasrdevq.exe
.\qlogic-devapp-tool -enableDebugging -airline ua -comType gate -action import -hive HKCU -comDir C:\temp\ua\UA-SUITE\39.11\UAGRDEV\cupps\6.2.1 -comFileName uagrdevq.exe