redcanaryco / invoke-atomicredteam

Invoke-AtomicRedTeam is a PowerShell module to execute tests as defined in the [atomics folder](https://github.com/redcanaryco/atomic-red-team/tree/master/atomics) of Red Canary's Atomic Red Team project.
MIT License
805 stars 190 forks source link

Installation atomicRedTeam failed #109

Closed irfanh14 closed 1 year ago

irfanh14 commented 1 year ago

PS C:> IEX (IWR 'https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/install-atomicredteam.ps1' -UseBasicParsing);

Install-AtomicRedTeam -getAtomics -Force -noPayloads Installation of AtomicRedTeam Failed. Cannot convert null to type "System.DateTime".

I have these issues during installation. anyone can help? Installed on win 11

Thanks.

clr2of8 commented 1 year ago

We have seen this occasionally and believe that it is related to the OS region settings but we haven't been able to pinpoint it. Have you gotten past this? If not, could you share your settings as shown below so we can duplicate the issue? image

clr2of8 commented 10 months ago

Another user with the same problem was able to solve it as follows:

I was actually able to fix this, it was an issue on my side. I needed to upgrade my PS modules of PowerShellGet and PackageManagement (both were at 1.0.0.1 while new versions are 2.2.5 and 1.4.8.1 respectively) and delete the old ones from my machine. That fixed the issue for me

miharix commented 4 months ago

Hi,

to save some noob like myself me some google time... commands are:

Install-PackageProvider Nuget –Force
Install-Module –Name PowerShellGet –Force
Install-Module –Name PackageManagement –Force

And then restart PowerShell

In my case (Win 10 pro 10.0.19045 build 19045 - ENG - keyboard Sl-SI, Locale Sl-SI / or English (World) ) calling only update-module also produced - Cannot convert null to type "System.DateTime". After update and PS restart "update-module" doesn't create error and atomicRedTeam installations works.