KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12
System : Windows NT SERVER-PC 10.0 build 26200 (Windows 11) AMD64
User : ServerPC ( 0)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  C:/Windows/SystemApps/Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : C:/Windows/SystemApps/Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy/js/deviceUser.js
"use strict";
var CloudExperienceHost;
(function (CloudExperienceHost) {
    var DeviceUser;
    (function (DeviceUser) {
        function createDeviceUser(username, password) {
            return new WinJS.Promise(function (completeDispatch, errorDispatch, progressDispatch) {
                let provider = new Windows.Security.Cryptography.DataProtection.DataProtectionProvider("local=user");
                let binary = Windows.Security.Cryptography.CryptographicBuffer.convertStringToBinary(password, Windows.Security.Cryptography.BinaryStringEncoding.utf8);

                provider.protectAsync(binary).then(function (protectedData) {
                    let deviceUserManager = new Microsoft.ResourceAccountManager.ResourceAccountSetup();
                    return deviceUserManager.createResourceAccountWithAADAccountAsync(username, protectedData);
                })
                .done(function () { completeDispatch(); }, function (err) { errorDispatch(err); }, function (progress) { progressDispatch(progress); });
            });
        }
        DeviceUser.createDeviceUser = createDeviceUser;
        function activateLicense(contentId, policyId) {
            return new WinJS.Promise(function (completeDispatch, errorDispatch) {
                let deviceUserManager = new Microsoft.ResourceAccountManager.ResourceAccountLicense();
                deviceUserManager.activateLicenseAsync(contentId, policyId).done(completeDispatch, errorDispatch);
            });
        }
        DeviceUser.activateLicense = activateLicense;
        function shouldSkipForAutopilot() {
            return EnterpriseDeviceManagement.Service.AutoPilot.AutoPilotUtilStatics.getOobeSettingsOverrideAsync(EnterpriseDeviceManagement.Service.AutoPilot.AutoPilotOobeSetting.aadAuthUsingDeviceTicket);
        }
        DeviceUser.shouldSkipForAutopilot = shouldSkipForAutopilot;
        function getUPN() {
            return new WinJS.Promise(function (completeDispatch, errorDispatch) {
                let deviceUserManager = new Microsoft.ResourceAccountManager.ResourceAccountSetup();
                completeDispatch(deviceUserManager.upn);
            });
        }
        DeviceUser.getUPN = getUPN;
    })(CloudExperienceHost.DeviceUser || (CloudExperienceHost.DeviceUser = {}));
})(CloudExperienceHost || (CloudExperienceHost = {}));

Anon7 - 2021