Use DomainJoin account instead of admin
This commit is contained in:
parent
659e33b454
commit
2c37386c8e
@ -24,7 +24,7 @@ If ($Null -eq $NewComputerName) {
|
|||||||
$NewComputerName = Read-Host -Prompt "Please enter desired computer name then hit enter"
|
$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"
|
Write-Host "Waiting for RPC Service"
|
||||||
(Get-Service RpcSs).WaitForStatus("Running")
|
(Get-Service RpcSs).WaitForStatus("Running")
|
||||||
|
@ -159,7 +159,7 @@
|
|||||||
</AutoLogon>
|
</AutoLogon>
|
||||||
<FirstLogonCommands>
|
<FirstLogonCommands>
|
||||||
<SynchronousCommand wcm:action="add">
|
<SynchronousCommand wcm:action="add">
|
||||||
<CommandLine>net use \\ucs.sawtooth.claremontmakerspace.org\software /user:SAWTOOTH\Administrator REPLACE_WITH_PASSWORD</CommandLine>
|
<CommandLine>net use \\ucs\software /user:DomainJoin REPLACE_WITH_PASSWORD</CommandLine>
|
||||||
<Description>Set Up UCS Share</Description>
|
<Description>Set Up UCS Share</Description>
|
||||||
<Order>1</Order>
|
<Order>1</Order>
|
||||||
</SynchronousCommand>
|
</SynchronousCommand>
|
||||||
|
Loading…
Reference in New Issue
Block a user