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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user