From 56e204b1df8f0dd9d4e8bd5586b3a39d59bcfd36 Mon Sep 17 00:00:00 2001 From: Anders Slaaen <anderks@sstud.ntnu.no> Date: Wed, 18 May 2022 11:23:47 +0200 Subject: [PATCH] tester --- source/orchestrationLogic/HEAT/bootup.ps1 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/source/orchestrationLogic/HEAT/bootup.ps1 b/source/orchestrationLogic/HEAT/bootup.ps1 index 4e4065e3..49dd3486 100644 --- a/source/orchestrationLogic/HEAT/bootup.ps1 +++ b/source/orchestrationLogic/HEAT/bootup.ps1 @@ -4,14 +4,14 @@ 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 + #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 -- GitLab