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
831 stars 195 forks source link

Install failed : Cannot convert null to type "System.DateTime". #170

Open dylanc24 opened 10 months ago

dylanc24 commented 10 months ago

Hi,

I tried to install Invoke Atomic Red Team using this command :

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

But i got this error :

Install-AtomicRedTeam : Installation of AtomicRedTeam Failed.
At line:2 char:1
+ Install-AtomicRedTeam -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-AtomicRedTeam

Cannot convert null to type "System.DateTime".
stretfordStart commented 9 months ago

I also had this issue on an occasion, but after using this workaround: https://github.com/PowerShell/PowerShellGetv2/issues/135#issuecomment-305440065 it worked.