Skip to content

Commit

Permalink
make the 'add to domain' section re-runnable
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsweetman committed Nov 13, 2024
1 parent 2e0f2c5 commit 60e049c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions powershell/Scripts/UserDataScripts/OnrClient.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,8 @@ Set-TimeZone -Name "GMT Standard Time"
$Config = Get-Config
$Tags = Get-InstanceTags

$tempPath = ([System.IO.Path]::GetTempPath())

$ConfigurationManagementRepo = "$tempPath\modernisation-platform-configuration-management"
$ModulesRepo = "$ConfigurationManagementRepo\powershell\Modules"
# TODO: This is a temporary fix to ensure the ModPlatformAD module is available, even when not run by the Admin user
$ModulesRepo = "C:\Users\Administrator\AppData\Local\Temp\modernisation-platform-configuration-management\powershell\Modules"
$ErrorActionPreference = "Stop"
$WorkingDirectory = "C:\Software"
$AppDirectory = "C:\App"
Expand Down

0 comments on commit 60e049c

Please sign in to comment.