!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Microsoft-IIS/10.0. PHP/7.4.33 

uname -a: Windows NT LAKE 10.0 build 20348 (Windows Server 2016) AMD64 

IWPD_801(traduongco) 

Safe-mode: OFF (not secure)

C:\Windows\SystemApps\Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy\webapps\inclusiveOobe\js\   drwxrwxrwx
Free 20.76 GB of 99.4 GB (20.89%)
Detected drives: [ a ] [ c ] [ d ] [ e ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     oobeautopilotreboot-vm.js (3.94 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
//
// Copyright (C) Microsoft. All rights reserved.
//

define(['lib/knockout', 'legacy/bridge', 'legacy/events', 'legacy/core'], (ko, bridge, constants, core) => {
    class AutopilotRebootViewModel {
        constructor(resourceStrings) {
            this.rebootMessageText = resourceStrings.UpdateMessageRestartText;

            WinJS.Promise.timeout(3000 /*3 second timeout*/).then(() => {
                this.renameDeviceAsync();
            });
        }

        // Set device name
        //
        // Check to see if the device needs a rename and perform it, if so.
        // This rename happens during the ZDP reboot for several reasons:
        //     a. Rename needs to happen before AADJ, since AAD saves off the name.
        //     b. ZDP could do a reboot, and so rebooting here would save an extra reboot from renaming as well.
        //     c. This would be the natural point users would expect a reboot in OOBE.
        renameDeviceAsync() {
            let autopilotServer = new EnterpriseDeviceManagement.Service.AutoPilot.AutoPilotServer();
            bridge.invoke("CloudExperienceHost.Telemetry.logEvent", "oobeAutopilotDeviceRenameStarted");

            autopilotServer.getStringPolicyAsync("CloudAssignedDeviceName").then(function (policyValue) {

                // Device rename required
                if ((policyValue !== null) && (policyValue !== "")) {
                autopilotServer.getStringPolicyAsync("CloudAssignedDeviceNameLastProcessed").then(function (policyValueLastProcessed) {
                    if (policyValue === policyValueLastProcessed) {
                        bridge.invoke("CloudExperienceHost.Telemetry.logEvent", "CloudAssignedDeviceName: Info: Skip since the same name had already been set");
                        bridge.fireEvent(constants.Events.done, constants.AppResult.success);
                    } else {
                        // Device rename required
                        bridge.invoke("CloudExperienceHost.Telemetry.logEvent", "Device rename required by Autopilot policy");

                        autopilotServer.renameDeviceAsync(policyValue).then(function () {
                            bridge.invoke("CloudExperienceHost.Telemetry.logEvent", "Autopilot device rename completed");

                            // Set flag for OOBE to restart
                            bridge.invoke("CloudExperienceHost.setRebootForOOBE");

                            bridge.fireEvent(constants.Events.done, constants.AppResult.success);
                        }.bind(this), function (err) {
                            let errorJson = core.GetJsonFromError(err);
                            bridge.invoke("CloudExperienceHost.Telemetry.logEvent", "CloudAssignedDeviceName: Failed: renameDeviceAsync", errorJson);

                            bridge.fireEvent(constants.Events.done, constants.AppResult.fail);
                        }.bind(this));
                    }
                }.bind(this), function (err) {
                    let errorJson = core.GetJsonFromError(err);
                    bridge.invoke("CloudExperienceHost.Telemetry.logEvent", "Autopilot device rename failed", errorJson);
                    bridge.fireEvent(constants.Events.done, constants.AppResult.fail);
                }.bind(this));
                } else {
                    // Device rename not required
                    bridge.invoke("CloudExperienceHost.Telemetry.logEvent", "Autopilot device rename not required");
                    bridge.fireEvent(constants.Events.done, constants.AppResult.success);
                }
            }, function (err) {
                let errorJson = core.GetJsonFromError(err);
                bridge.invoke("CloudExperienceHost.Telemetry.logEvent", "Autopilot device rename failed", errorJson);
                bridge.fireEvent(constants.Events.done, constants.AppResult.fail);
            });
        }
    }

    return AutopilotRebootViewModel;
});

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.7614 ]--