mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-19 21:17:59 +00:00
12 lines
554 B
PowerShell
12 lines
554 B
PowerShell
# 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 = "powershell.exe"
|
|
$ScriptPath = "$PWD\hirsshell.ps1"
|
|
$Shortcut.Arguments = "-ExecutionPolicy Bypass -File `"$ScriptPath`""
|
|
$Shortcut.WorkingDirectory = "$PWD"
|
|
$Shortcut.Save()
|