mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-18 20:47:58 +00:00
added a batch file to run the scripts
This commit is contained in:
parent
7753d919d0
commit
75b02a18e3
@ -2,21 +2,7 @@ This README is part of the ZIP_Files.zip generated from hirs_package_linux.yml t
|
||||
|
||||
To get the tools running on windows follow the instructions below:
|
||||
|
||||
1- Unzip the main folder ("ZIP_Files"), followed by unzipping both the tcg_eventlog_tool.zip and tcg_rim_tool.zip in the working directory.
|
||||
|
||||
2- Open PowerShell as administrator and run > Set-ExecutionPolicy unrestricted
|
||||
To verify run > Get-ExecutionPolicy and it should be set to "unrestricted"
|
||||
|
||||
3- Right click on create_hirs_desktop_shortcut.ps1 and run with PowerShell, a PowerShell terminal will pop-up, if prompted type "R" to run the script.
|
||||
|
||||
4- HIRS_tools.ps1 should appear on your desktop, right click on it and run with PowerShell . if prompted type "R" to run the script.
|
||||
|
||||
5- The HIRS terminal should popup.
|
||||
|
||||
6- (optional) To remove the warning messages when running the rim tool and the event log tool:
|
||||
Open PowerShell as administrator, navigate to the working directory, and run the following:
|
||||
> Unblock-File -Path .\rim.ps1
|
||||
> Unblock-File -Path .\eventLog.ps1
|
||||
1- Double click runTools.bat, a HIRS terminal should open.
|
||||
|
||||
To run the rim tool try the following commands
|
||||
|
||||
|
@ -1,4 +1,11 @@
|
||||
# Script to start a new shell with a rim alias
|
||||
# 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"
|
||||
$StartInfo.Arguments = "-NoExit -Command
|
||||
|
2
package/win/tcg-rim-tool/runTools.bat
Normal file
2
package/win/tcg-rim-tool/runTools.bat
Normal file
@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File "~dp0hirsshell.ps1"
|
Loading…
Reference in New Issue
Block a user