diff --git a/source/orchestrationLogic/HEAT/bootup.ps1 b/source/orchestrationLogic/HEAT/bootup.ps1 index 49dd34866fa508f09ca191180b855a3261db8376..3c386b8cf5fd40fed9dfe15e4fbf72a7a7b8a258 100644 --- a/source/orchestrationLogic/HEAT/bootup.ps1 +++ b/source/orchestrationLogic/HEAT/bootup.ps1 @@ -4,16 +4,8 @@ if( !(Test-Path -Path "C:\flag.txt")) { New-Item -Path "C:\flag.txt" echo "if" - #get-executionpolicy - #Set-ExecutionPolicy RemoteSigned -Force - #Get-executionpolicy - #New-ItemProperty -Path "REGISTRY::HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" -Name AllowInsecureGuestAuth -PropertyType "DWORD" - #New-ItemProperty -Path "REGISTRY::HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name EnableLinkedConnections -PropertyType "DWORD" - #Set-ItemProperty -path "REGISTRY::HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" -Name "AllowInsecureGuestAuth" -value "1" - #Set-ItemProperty -Path "REGISTRY::HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "EnableLinkedConnections" -Value "1" - #Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled True -Profile Any - - + New-ItemProperty -Path "REGISTRY::HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" -Name AllowInsecureGuestAuth -PropertyType "DWORD" + Set-ItemProperty -path "REGISTRY::HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" -Name "AllowInsecureGuestAuth" -value "1" Set-DNSClientServerAddress -InterfaceIndex (Get-NetAdapter).InterfaceIndex -ServerAddresses 192.168.0.3