This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable IIS Feature | |
Write-Host "Installing IIS..." | |
Install-WindowsFeature -name Web-Server -IncludeManagementTools | |
# Restart IIS | |
Write-Host "Restarting IIS..." | |
Restart-Service W3SVC | |
Write-Host "IIS and .NET 6.0 installation completed." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "random" { | |
} | |
resource "random_string" "username" { | |
length = 8 | |
special = false | |
upper = false | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enable-WSManCredSSP -Role "Server" -Force | |
Enable-WSManCredSSP -Role client -DelegateComputer * -Force | |
Set-Item -Path "wsman:\localhost\service\auth\credSSP" -Value $True -Force | |
New-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\CredentialsDelegation -Name AllowFreshCredentialsWhenNTLMOnly -Force |