mirror of
https://github.com/qtkite/defender-control.git
synced 2024-11-04 12:00:15 +00:00
starting as trusted
This commit is contained in:
parent
a690865624
commit
f432bc513d
@ -102,6 +102,10 @@ namespace dcontrol
|
||||
helper->execute<uint8_t>("SevereThreatDefaultAction", wmic::variant_type::t_uint8, 6);
|
||||
helper->execute<uint8_t>("ScanScheduleDay", wmic::variant_type::t_uint8, 8);
|
||||
|
||||
// Delete smart screen
|
||||
// Disable windefend
|
||||
// Set windefend to DEMAND
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -19,8 +19,8 @@ int main(int argc, char **argv)
|
||||
//
|
||||
if (!trusted::is_system_group() && argc == 1)
|
||||
{
|
||||
auto path = util::get_current_path();
|
||||
|
||||
printf("Restarting with privileges");
|
||||
trusted::create_process(util::get_current_path());
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
@ -40,5 +40,6 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
system("pause");
|
||||
return 0;
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
@ -152,7 +152,6 @@ namespace trusted
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
// Being a process as TrustedInstaller
|
||||
//
|
||||
bool create_process(std::string commandLine)
|
||||
|
Loading…
Reference in New Issue
Block a user