blob: db0f10d9222739e92c1af4f49834aacc7c5b7b2c (
plain)
1
2
3
4
5
6
7
8
9
10
|
$scriptName = $MyInvocation.MyCommand.Name
$logFile = "C:\Logs\${scriptName}_log.txt"
Start-Transcript -Path $logFile -Append
Set-MpPreference -DisableRealtimeMonitoring $true -ErrorAction SilentlyContinue
Start-Process -FilePath "C:\software\Sysmon64.exe" -ArgumentList "-accepteula -i C:\software\sysmonconfig-export.xml" -Wait -Verbose
Start-Process -FilePath "C:\Windows\System32\MsiExec.exe" -ArgumentList "/i C:\software\googlechromestandaloneenterprise64.msi /qb" -Wait -Verbose
Start-Process -FilePath "C:\software\npp.exe" -ArgumentList "/S" -Wait -Verbose
[Microsoft.Win32.Registry]::SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "bginfo", "C:\BgInfo\Bginfo.exe C:\BgInfo\BgInfo.bgi /timer:00 /nolicprompt /silent")
Stop-Transcript
|