Include Invoke-AtomicTest in Powershell

This commit is contained in:
Chris Long
2019-12-20 23:46:35 -08:00
parent 828447b508
commit b5c73ce647
3 changed files with 47 additions and 20 deletions

View File

@@ -48,4 +48,11 @@ if (-not (Test-Path $atomicRedTeamRepoPath)) {
Write-Host "Atomic Red Team was already installed. Moving On."
}
Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Configuring Invoke-AtomicTest..."
# Copy over a Powershell profile that includes the Atomic Red Team stuff
Copy-Item "C:\vagrant\resources\windows\Microsoft.PowerShell_profile.ps1" "C:\Windows\System32\WindowsPowerShell\v1.0" -Force
# Install prereqs
Install-PackageProvider -Name NuGet -force
Install-Module -Name powershell-yaml -Force
Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Red Team tooling installation complete!"