File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,10 @@ function Invoke-SoftwareUpdate {
6464
6565 $ipAddress = Get-AnkaVMIPAddress - VMName $TemplateName
6666
67+ # Unenroll Seed
68+ Write-Host " `t [*] Reseting the seed before requesting stable versions"
69+ Remove-CurrentBetaSeed - HostName $ipAddress | Show-StringWithFormat
70+
6771 # Install Software Updates
6872 # Security updates may not be able to install(hang, freeze) when AutoLogon is turned off
6973 Write-Host " `t [*] Finding available software"
Original file line number Diff line number Diff line change @@ -232,6 +232,17 @@ function Show-StringWithFormat {
232232 }
233233}
234234
235+ function Remove-CurrentBetaSeed {
236+ param (
237+ [Parameter (Mandatory )]
238+ [ValidateNotNullOrEmpty ()]
239+ [string ] $HostName
240+ )
241+
242+ $command = " sudo /System/Library/PrivateFrameworks/Seeding.framework/Versions/Current/Resources/seedutil unenroll"
243+ Invoke-SSHPassCommand - HostName $HostName - Command $command | Out-String
244+ }
245+
235246function Test-AutoLogon {
236247 param (
237248 [Parameter (Mandatory )]
You can’t perform that action at this time.
0 commit comments