Anka disable beta seed (#4564)

* Remove current beta seed program

* format unenroll output
This commit is contained in:
Aleksandr Chebotov
2021-11-22 15:18:46 +03:00
committed by GitHub
parent 04aeb7bfd4
commit 0365a15eb6
2 changed files with 15 additions and 0 deletions

View File

@@ -232,6 +232,17 @@ function Show-StringWithFormat {
}
}
function Remove-CurrentBetaSeed {
param(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $HostName
)
$command = "sudo /System/Library/PrivateFrameworks/Seeding.framework/Versions/Current/Resources/seedutil unenroll"
Invoke-SSHPassCommand -HostName $HostName -Command $command | Out-String
}
function Test-AutoLogon {
param(
[Parameter(Mandatory)]