mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 15:04:58 +00:00
Update bootstrap.js
This commit is contained in:
parent
d18c51bf0f
commit
65181b84e4
14
bootstrap.js
vendored
14
bootstrap.js
vendored
|
@ -18,9 +18,9 @@ exports.main = function(args) {
|
||||||
PS.execCommand("dir | Unblock-File");
|
PS.execCommand("dir | Unblock-File");
|
||||||
|
|
||||||
// Allow CROS to ADO
|
// Allow CROS to ADO
|
||||||
console.log("Adjusting CROS policy to ADO...");
|
//console.log("Adjusting CROS policy to ADO...");
|
||||||
REG.write(REG.HKCU, "SOFTWARE\\Policies\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Lockdown_Zones\\4", "1406", "00000000", REG.DWORD);
|
//REG.write(REG.HKCU, "SOFTWARE\\Policies\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Lockdown_Zones\\4", "1406", "00000000", REG.DWORD);
|
||||||
REG.write(REG.HKLM, "SOFTWARE\\Policies\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Lockdown_Zones\\4", "1406", "00000000", REG.DWORD);
|
//REG.write(REG.HKLM, "SOFTWARE\\Policies\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Lockdown_Zones\\4", "1406", "00000000", REG.DWORD);
|
||||||
|
|
||||||
// Register HTA file association
|
// Register HTA file association
|
||||||
console.log("Registering HTA file association...");
|
console.log("Registering HTA file association...");
|
||||||
|
@ -46,7 +46,7 @@ exports.main = function(args) {
|
||||||
try {
|
try {
|
||||||
var process = processList[i];
|
var process = processList[i];
|
||||||
if (process.Caption == "mshta.exe") {
|
if (process.Caption == "mshta.exe") {
|
||||||
console.warn("Will be kill process ID: " + process.ProcessID);
|
console.warn("Will be kill process ID:", process.ProcessID);
|
||||||
SYS.killProcess(process.ProcessID);
|
SYS.killProcess(process.ProcessID);
|
||||||
sleep(1000);
|
sleep(1000);
|
||||||
}
|
}
|
||||||
|
@ -55,13 +55,13 @@ exports.main = function(args) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// open web application
|
// Opening HTML application
|
||||||
if (typeof(args) !== "undefined") {
|
if (typeof args !== "undefined") {
|
||||||
SHELL.run(["app.hta"].concat(args));
|
SHELL.run(["app.hta"].concat(args));
|
||||||
} else {
|
} else {
|
||||||
SHELL.run("app.hta");
|
SHELL.run("app.hta");
|
||||||
}
|
}
|
||||||
|
|
||||||
// echo welcome
|
// print welcome
|
||||||
console.log("welcome");
|
console.log("welcome");
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user