hi guys, how can download MSI package of Osquery f...
# windows
a
hi guys, how can download MSI package of Osquery from Powershell and also install it from Powershell itself.
m
Hello, to download using powershell:
Copy code
#Specify allowed protocols for our download, TLS 1.2+
$Protocols = [System.Net.SecurityProtocolType]'Tls12,Tls13'
[System.Net.ServicePointManager]::SecurityProtocol = $Protocols

#Download osquery
Invoke-WebRequest -Uri "<https://pkg.osquery.io/windows/osquery-5.0.1.msi>" -OutFile "C:\ProgramData\MyTempFolder\osquery.msi"
And then to silent install the msi with powershell:
Copy code
#Install osquery
msiexec /i C:\ProgramData\MyTempFolder\osquery.msi /quiet /qn /norestart /log C:\ProgramData\MyTempFolder\osquery_install.log