Skip to content

Commit fe507ae

Browse files
author
user
committed
Temporary fix for PoshRSJob installation. Related to #7
1 parent 3d59019 commit fe507ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ RUN pwsh -command Install-Module -Name Microsoft.Graph.Beta.Reports -RequiredVer
1010
RUN pwsh -command Install-Module -Name Microsoft.Graph.Beta.Security -RequiredVersion 2.20.0
1111
RUN pwsh -command Install-Module -Name Microsoft.Graph.Identity.DirectoryManagement -RequiredVersion 2.20.0
1212
RUN pwsh -command Install-Module -Name PoshRSJob -RequiredVersion 1.7.4.4
13+
RUN pwsh -command mkdir /tmp/posh
14+
RUN pwsh -command Invoke-WebRequest -UseBasicParsing -Uri 'https://www.powershellgallery.com/api/v2/package/PoshRSJob/1.7.4.4' -OutFile '/tmp/posh/PoshRSJob.1.7.4.4.nupkg'
15+
RUN pwsh -command Register-PSRepository -Name local -SourceLocation /tmp/posh -InstallationPolicy Trusted
16+
RUN pwsh -command Install-Module PoshRSJob -Verbose -Scope AllUsers -Repository local
1317
RUN mkdir -p /root/.config/powershell
1418
RUN echo 'Write-Host -ForegroundColor Yellow "DFIR-O365RC: PowerShell module for Microsoft 365 and Entra ID log collection"' > /root/.config/powershell/Microsoft.PowerShell_profile.ps1
1519
RUN echo 'Write-Host -ForegroundColor Yellow "https://github.com/ANSSI-FR/DFIR-O365RC"' >> /root/.config/powershell/Microsoft.PowerShell_profile.ps1

0 commit comments

Comments
 (0)