Skip to content
Snippets Groups Projects
Commit 58b82efb authored by Anders Slaaen's avatar Anders Slaaen
Browse files

yadda

parent 598b4913
No related branches found
No related tags found
No related merge requests found
...@@ -4,16 +4,8 @@ if( !(Test-Path -Path "C:\flag.txt")) { ...@@ -4,16 +4,8 @@ if( !(Test-Path -Path "C:\flag.txt")) {
New-Item -Path "C:\flag.txt" New-Item -Path "C:\flag.txt"
echo "if" echo "if"
#get-executionpolicy New-ItemProperty -Path "REGISTRY::HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" -Name AllowInsecureGuestAuth -PropertyType "DWORD"
#Set-ExecutionPolicy RemoteSigned -Force Set-ItemProperty -path "REGISTRY::HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" -Name "AllowInsecureGuestAuth" -value "1"
#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
Set-DNSClientServerAddress -InterfaceIndex (Get-NetAdapter).InterfaceIndex -ServerAddresses 192.168.0.3 Set-DNSClientServerAddress -InterfaceIndex (Get-NetAdapter).InterfaceIndex -ServerAddresses 192.168.0.3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment