r/PowerShell • • Jul 29 '24

Crowdstrike Installation Script

UPDATE!!!!
Below powershell commands works
C:\Users\Domain1\Desktop\Crowdstrike\WindowsSensor.MaverickGyr.exe /VERYSILENT /NORESTART /PASSIVE CID=[CID number]
I will try it now deploying to computers via sccm.

THANK YOU GUYS!

Hi. i need your help here.
I want to install crowdstrike without user interaction using powershell.
First , I run this command, it works but it have a user interaction
C:\Users\Domain1\Desktop\Crowdstrike\WindowsSensor.MaverickGyr.exe /VERYSILENT /NORESTART CID=[CID number]

The second commands i used was below:
C:\Users\Domain1\Desktop\Crowdstrike\WindowsSensor.MaverickGyr.exe /INSTALL /QUIET /NORESTART /PASSIVE CID=[CID number]
I dont know if it works because it doesnt give me any error.

Note: Once I succeeded on this. I will use the command to install crowdstrike using sccm

Thank you for any help.

5 Upvotes

17 comments sorted by

View all comments

7

u/raip Jul 29 '24

You have conflicting arguments, /passive shows a minimal UI with no prompts, /quiet is for no UI or prompts. Pick one, not both.

The install log is stored in %TEMP% by default, but you can pass something like /log "C:\Logs" to store them somewhere else. The quotes are required.

Start-Process is alright but since you're installing via SCCM you don't even need PowerShell so this isn't really the correct sub. Nothing in this is PowerShell so far.