From 2c37386c8e6d8ed45a1bd810d46c4953fcbb9aa5 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 16 Sep 2022 01:13:09 -0400 Subject: [PATCH] Use DomainJoin account instead of admin --- Set-ComputerName.ps1 | 2 +- autounattend.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Set-ComputerName.ps1 b/Set-ComputerName.ps1 index eb91ad0..304c87a 100755 --- a/Set-ComputerName.ps1 +++ b/Set-ComputerName.ps1 @@ -24,7 +24,7 @@ If ($Null -eq $NewComputerName) { $NewComputerName = Read-Host -Prompt "Please enter desired computer name then hit enter" } -$cred = New-Object System.Management.Automation.PsCredential("SAWTOOTH\Administrator", (ConvertTo-SecureString "REPLACE_WITH_PASSWORD" -AsPlainText -Force)) +$cred = New-Object System.Management.Automation.PsCredential("SAWTOOTH\DomainJoin", (ConvertTo-SecureString "REPLACE_WITH_PASSWORD" -AsPlainText -Force)) Write-Host "Waiting for RPC Service" (Get-Service RpcSs).WaitForStatus("Running") diff --git a/autounattend.xml b/autounattend.xml index a59e4dd..e03baca 100755 --- a/autounattend.xml +++ b/autounattend.xml @@ -159,7 +159,7 @@ - net use \\ucs.sawtooth.claremontmakerspace.org\software /user:SAWTOOTH\Administrator REPLACE_WITH_PASSWORD + net use \\ucs\software /user:DomainJoin REPLACE_WITH_PASSWORD Set Up UCS Share 1