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:

  1. Open your profile:

    notepad $profile
    
  2. Add the following lines:

    Import-Module "<install path>\invoke-atomicredteam\Invoke-AtomicRedTeam.psd1" -Force
    $PSDefaultParameterValues = @{"Invoke-AtomicTest:PathToAtomicsFolder"="<install path>\atomics"}
    
  3. Save your profile and restart PowerShell.

Up next