Small logger bugfixes
This commit is contained in:
@@ -129,7 +129,15 @@ install_splunk() {
|
||||
# Download Hardcoded Splunk
|
||||
wget --progress=bar:force -O /opt/splunk-8.0.2-a7f645ddaf91-linux-2.6-amd64.deb 'https://download.splunk.com/products/splunk/releases/8.0.2/linux/splunk-8.0.2-a7f645ddaf91-linux-2.6-amd64.deb&wget=true'
|
||||
fi
|
||||
dpkg -i /opt/splunk*.deb
|
||||
if ! ls /opt/splunk*.deb 1> /dev/null 2>&1; then
|
||||
echo "Something went wrong while trying to download Splunk. This script cannot continue. Exiting."
|
||||
exit 1
|
||||
fi
|
||||
if ! dpkg -i /opt/splunk*.deb > /dev/null; then
|
||||
echo "Something went wrong while trying to install Splunk. This script cannot continue. Exiting."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
/opt/splunk/bin/splunk start --accept-license --answer-yes --no-prompt --seed-passwd changeme
|
||||
/opt/splunk/bin/splunk add index wineventlog -auth 'admin:changeme'
|
||||
/opt/splunk/bin/splunk add index osquery -auth 'admin:changeme'
|
||||
|
||||
4
Vagrant/resources/windows/MenuStyle_Default_Win7.reg
Normal file
4
Vagrant/resources/windows/MenuStyle_Default_Win7.reg
Normal file
@@ -0,0 +1,4 @@
|
||||
Windows Registry Editor Version 5.00
|
||||
|
||||
[HKEY_LOCAL_MACHINE\SOFTWARE\IvoSoft\ClassicStartMenu]
|
||||
"MenuStyle_Default"="Win7"
|
||||
@@ -1,7 +1,7 @@
|
||||
# Import the registry keys
|
||||
Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Making Windows 10 Great again"
|
||||
Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Importing registry keys..."
|
||||
regedit /s a:\MakeWindows10GreatAgain.reg
|
||||
regedit /s c:\vagrant\scripts\MakeWindows10GreatAgain.reg
|
||||
|
||||
# Remove OneDrive from the System
|
||||
Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Removing OneDrive..."
|
||||
|
||||
@@ -13,6 +13,7 @@ If ($(hostname) -eq "win10") {
|
||||
# Because the Windows10 start menu sucks
|
||||
choco install -y --limit-output --no-progress classic-shell -installArgs ADDLOCAL=ClassicStartMenu
|
||||
& "C:\Program Files\Classic Shell\ClassicStartMenu.exe" "-xml" "c:\vagrant\resources\windows\MenuSettings.xml"
|
||||
regedit /s c:\vagrant\resources\MenuStyle_Default_Win7.reg
|
||||
}
|
||||
choco install -y --limit-output --no-progress NotepadPlusPlus GoogleChrome WinRar
|
||||
|
||||
|
||||
Reference in New Issue
Block a user