1
0
mirror of https://github.com/elisspace/Wakanda-Forever.git synced 2026-08-29 15:44:11 +00:00

Major changes

This commit is contained in:
q0phi80
2022-07-17 22:54:03 -04:00
parent a5626d3f9b
commit a1355b0332
2 changed files with 4 additions and 4 deletions

View File

@@ -149,9 +149,9 @@ resource "aws_instance" "user-workstation" {
inline = [
"net user Administrator /active:yes",
"net user Administrator ${var.WinRM_PASSWORD}"
]
]
connection {
connection {
type = "winrm"
user = "admin"
password = var.WinRM_PASSWORD

View File

@@ -1,9 +1,9 @@
# Join the Windows 10 to the domain
# Start-Sleep -Seconds 300
Start-Sleep -Seconds 300
$domain = "first.local"
$password = ConvertTo-SecureString "Password@1" -asPlainText -Force
$username = "admin@first.local"
$credential = New-Object System.Management.Automation.PSCredential($username,$password)
Add-Computer -DomainName $domain -NewName "WKSTN-001" -Credential $credential
Add-Computer -DomainName $domain -NewName "WKSTN001" -Credential $credential
Invoke-Command -Scriptblock {net localgroup "Remote Desktop Users" "first\domain users" /add}
Restart-Computer -Force