示例#1
0
        private async void JoinDomainButton_Click(object sender, EventArgs e)
        {
            Enabled = false;
            await DomainJoin.Join();

            Enabled = true;
        }
示例#2
0
        private async void PhaseTwo()
        {
            Table.Enabled = false;
            Logger.Log("Phase two: Join domain...");
            if (await DomainJoin.Join())
            {
                await Misc.InstallScheduledTask(null, "2");

                await Misc.SetAutoLogon(true);

                if (!Misc.IsAutoLogonSet())
                {
                    await Misc.InstallScheduledTask(Properties.Resources.SuperCALPhaseThree, "3");
                }
                Misc.RestartWindows();
            }
            else
            {
                Logger.Log("\n\nIf you would like to retry this phase, double press anywhere on SuperCAL, and then select \"Actions\" -> \"Phase Two (Domain Join)\" -> \"Start Phase Two...\"");
            }
        }