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
815 stars 193 forks source link

"Cannot convert null to type System.DateTime" when installing Invoke-AtomicRedTeam #70

Closed secTeach closed 2 years ago

secTeach commented 3 years ago

I run into an error: "Cannot convert null to type System.DateTime"

IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/install-atomicredteam.ps1')

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

Install-AtomicRedTeam -InstallPath "C:\Windows\Temp" -Force Installation of AtomicRedTeam Failed. Cannot convert null to type "System.DateTime".

Cor-J commented 2 years ago

Hello,

@secTeach Did you manage to bypass this issue?

clr2of8 commented 2 years ago

I believe this is an issue with your PowerShell environment. For example, if you run Get-InstalledModule do you receive the same error? There are some suggested work arounds here. https://github.com/PowerShell/PowerShellGetv2/issues/135