Added a desktop shortcut and updated paths

This commit is contained in:
SuperPotato27 2024-07-31 17:21:42 -04:00
parent e8f69ba3af
commit bf81c45c4c
5 changed files with 16 additions and 11 deletions

View File

@ -0,0 +1,2 @@
@echo off
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0\create_hirstools_desktop_shortcut.ps1"

View File

@ -4,9 +4,11 @@ To get the tools running on windows follow the instructions below:
1- Unzip "ZIP_Files"
2- Double click runTools.bat, a HIRS terminal should open.
2- Run the install file under ```hirstools\IntsallTools.bat``` a HIRS_tools shortcut should appear on your desktop
To run the rim tool try the following commands
3- Double click HIRS_tools.lnk shortcut and HIRS terminal should open.
To run the rim tool try the following commands:
> rim -c base -a .\tcg_rim_tool\Base_Rim_Config.json -l .\tcg_rim_tool\TpmLog.bin -k .\tcg_rim_tool\PC_OEM1_rim_signer_rsa_3k_sha384.key -p .\tcg_rim_tool\PC_OEM1_rim_signer_rsa_3k_sha384.pem -o baseRim.swidtag

View File

@ -0,0 +1,9 @@
# Unzip tools in the working directory
Expand-Archive -Path ..\tcg_rim_tool.zip -DestinationPath .\tcg_rim_tool
Expand-Archive -Path ..\tcg_eventlog_tool.zip -DestinationPath .\tcg_eventlog_tool
# Create a shortcut to start the RIM shell
$WshShell = New-Object -comObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("$Home\Desktop\HIRS_tools.lnk")
$Shortcut.TargetPath = "$PWD\RunTools.bat"
$Shortcut.WorkingDirectory = "$PWD"
$Shortcut.Save()

View File

@ -1,10 +1,3 @@
# Unzip tools in the working directory
if (Test-Path ".\tcg_rim_tool") {
Write-Output "tcg_rim_tool already unzipped"
} else {
Expand-Archive -Path .\tcg_rim_tool.zip -DestinationPath .\tcg_rim_tool
Expand-Archive -Path .\tcg_eventlog_tool.zip -DestinationPath .\tcg_eventlog_tool
}
# Script to start a new shell with a rim alias
$StartInfo = new-object System.Diagnostics.ProcessStartInfo
$StartInfo.FileName = "$pshome\powershell.exe"

View File

@ -1,3 +1,2 @@
@echo off
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0hirsshell.ps1"
pause
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0\hirsshell.ps1"