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

59

u/OptionX Jul 29 '24

Just set the desktop to a solid blue and you'll have the same experience. /s

4

u/[deleted] Jul 29 '24

Well played, sir

18

u/Certain-Community438 Jul 29 '24

My brain insisted on reading this title as "uninstallation script" cos that was the only thing which made sense to me.

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.

7

u/pleachchapel Jul 29 '24

Here's a great one step method:

Don't

2

u/BWMerlin Jul 29 '24

Try using start-process and the -argument option to pass your install arguments to the installer.

2

u/MrPatch Jul 29 '24

The second command ... I dont know if it works because it doesnt give me any error.

This is either because it's working as expected or not working at all. It can be difficult to be certain when there is no feedback.

The easiest way to be sure it has executed and what it's done is to run PROCMON then run your installation script. Procmon will allow you to filter for WindowsSensor.MaverickGyr.exe and you can observe the installation from there. You should see it perform all the installation steps and you can verify that the sensor is installed manually afterwards (ie does the driver show up on the system? Is the relative port open? can you connect to it from your crowdstrike console?)

That should allow you to confirm or not if your second command is running as expected.

1

u/jsiii2010 Jul 29 '24

The command is different for every application unless they have an msi version. You need to contact their support.

13

u/[deleted] Jul 29 '24

[removed] — view removed comment

8

u/Frogtarius Jul 29 '24

To mitigate the pxefail, you can't hack what doesn't boot up.

6

u/NeverLookBothWays Jul 29 '24

It’s still a good product, despite the recent blunder. It’s not like we’re discussing Norton or McAfee.

2

u/[deleted] Jul 29 '24

[removed] — view removed comment

4

u/NeverLookBothWays Jul 29 '24 edited Jul 29 '24

Oh for sure, huge lesson learned there too. It's an enterprise solution, so you wouldn't typically see it in small businesses or on home computers, but it's also a very effective system for fending off cyber-attacks as it sits above the OS at the kernel level and picks up on attack behaviors. A lot of their service is actually outsourcing the detection and remediation side of the system so IT departments are not burdened as much with keeping up with threats (which there are many). CS has an advantage here because they are so widespread...they can pick up on a bad actor and prevent them from attacking the many other customers they manage.

That said, there is definitely an issue with the kernel driver they use, as it does not validate the definition files (which are also loaded as binaries at kernel start). So one bad definition file pretty much brought down millions of devices as the issue caused a kernel panic. And because the signed driver portion is flagged as a kernel start driver, it made Windows unable to unload it and boot without it. So definitely some lessons learned there for both Crowdstrike and Microsoft (as well as for us as I helped fix about a thousand endpoints affected). Even though this is technically not Microsoft's fault, they will likely look at ways to further harden the boot process from drivers that pull in additional code at runtime.

1

u/Zedboy19752019 Jul 30 '24

1300 computers bluescreened in my company. About 20 of them had to be replaced. As of today we have 10 left that are down.

-4

u/SatisfactionLow9324 Jul 29 '24

Your question seems related to the outage last July19 haha

8

u/meesterdg Jul 29 '24

What ever would make you think that