From fc5670f77065c82dc1091481de5d41c0e3e1e1fc Mon Sep 17 00:00:00 2001 From: Brian Warren Date: Mon, 7 Apr 2025 23:46:17 -0500 Subject: [PATCH] added scratchpad --- ua/registry/qlogic-devapp-tool.ps1 | 34 ++++++++++++++++-------------- ua/registry/ya.txt | 33 +++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 16 deletions(-) create mode 100644 ua/registry/ya.txt diff --git a/ua/registry/qlogic-devapp-tool.ps1 b/ua/registry/qlogic-devapp-tool.ps1 index 65396d1..722a985 100644 --- a/ua/registry/qlogic-devapp-tool.ps1 +++ b/ua/registry/qlogic-devapp-tool.ps1 @@ -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)" } } } diff --git a/ua/registry/ya.txt b/ua/registry/ya.txt new file mode 100644 index 0000000..7e3e867 --- /dev/null +++ b/ua/registry/ya.txt @@ -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 \ No newline at end of file