Skip to content

Powershell Gallery installation does not work #217

@Zawadidone

Description

@Zawadidone

This on Windows 11 ARM.

S C:\Windows\System32> Install-Module -Name invoke-atomicredteam,powershell-yaml -Scope CurrentUser -Force
PS C:\Windows\System32> Invoke-AtomicTest T1003 -ShowDetailsBrief
Resolve-Path : Cannot find path 'C:\AtomicRedTeam\atomics' because it does not exist.
At C:\Users\admin\Documents\WindowsPowerShell\Modules\Invoke-AtomicRedTeam\2.1.0\Public\Invoke-AtomicTest.ps1:130 char:33
+ ...       $PathToAtomicsFolder = (Resolve-Path $PathToAtomicsFolder).Path
+                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\AtomicRedTeam\atomics:String) [Resolve-Path], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.ResolvePathCommand

PathToAtomicsFolder =

Join-Path : Cannot bind argument to parameter 'Path' because it is an empty string.
At C:\Users\admin\Documents\WindowsPowerShell\Modules\Invoke-AtomicRedTeam\2.1.0\Public\Invoke-AtomicTest.ps1:342 char:37
+             $pathToYaml = Join-Path $PathToAtomicsFolder "\$AT\$AT.ya ...
+                                     ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Join-Path], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.JoinPathC
   ommand

Test-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Users\admin\Documents\WindowsPowerShell\Modules\Invoke-AtomicRedTeam\2.1.0\Public\Invoke-AtomicTest.ps1:343 char:33
+             if (Test-Path -Path $pathToYaml) { $AtomicTechniqueHash = ...
+                                 ~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Test-Path], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.TestPathCommand

Found 0 atomic tests applicable to windows platform for Technique

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions