Переименование учетных записей администратора и гостя в пакетном файле

377
David Doyle

Если возможно, как переименовать учетные записи администратора и гостя в пакетном файле? Я пытаюсь написать сценарий, который исправит многие уязвимости для киберпатриотов. Пока у меня есть

@echo off  :: The title of the script title CyberPatriot Script  :: De-activates the guest account net user guest /active:no  :: Activates the firewall for all users netsh advFirewall set allprofiles state on  :: Enables Windows auto updates reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUOptions /t REG_DWORD /d 4 /f  ::this will change the minimum length of the password net accounts /minpwlen:10 ::this will change the maximum age of the password net accounts /maxpwage:30 ::this will change the minimum age of the password net accounts /minpwage:5 ::this will change the number of passwords stored net accounts /uniquepw:5   pause 
-2
Вы можете запустить `wmic`? Это требует повышенных привилегий. Aulis Ronkainen 5 лет назад 0
Добро пожаловать в Супер пользователя! Какие исследования вы провели? :) bertieb 5 лет назад 0
Вы, вероятно, должны иметь только один пробел в `` Auto Update`` (вместо `` Auto Update``). Будьте осторожны, когда вы воссоединяете линии, которые были разбиты на части для целей отображения. Scott 5 лет назад 0

0 ответов на вопрос