Import the module - Adam-Mashinchi/invoke-atomicredteam GitHub Wiki
In order make the Invoke-AtomicTest
function available for use in your current
PowerShell session, you must import the Invoke-Atomic module. Open PowerShell
and run the following:
Import-Module "<install path>\invoke-atomicredteam\Invoke-AtomicRedTeam.psd1" -Force
Verify that the module is installed using Get-Module
.
Add the module to your PowerShell profile
By default, the Invoke-Atomic module doesn't persist between PowerShell sessions. To add the module to PowerShell permanently, add the import statement to your profile:
-
Open your profile:
notepad $profile
-
Add the following lines:
Import-Module "<install path>\invoke-atomicredteam\Invoke-AtomicRedTeam.psd1" -Force $PSDefaultParameterValues = @{"Invoke-AtomicTest:PathToAtomicsFolder"="<install path>\atomics"}
-
Save your profile and restart PowerShell.