예제 #1
0
        private async void JoinWorkButton_Click(object sender, EventArgs e)
        {
            Enabled = false;
            await DomainJoin.Leave();

            Enabled = true;
        }
예제 #2
0
        private async void ReCAL_Click(object sender, EventArgs e)
        {
            Enabled = false;
            await Misc.InstallScheduledTask(Properties.Resources.SuperCALPhaseTwo, "2");

            await DomainJoin.Leave();

            await Misc.SetAutoLogon(false);

            if (await Wipe.Do())
            {
                await McrsCalSrvc.Start();

                CenterToScreen();
                Left = Left - 440;
            }
            Enabled = true;
        }
예제 #3
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...\"");
            }
        }