https://docs.microsoft.com/ko-kr/windows-server/administration/windows-commands/auditpol-set
https://superuser.com/questions/1059822/change-audit-policy-through-the-registry
auditpol /set /category:"Logon/Logoff" /success:enable /failure:enable
로그인 감사 켜기
감사 모두 켜기
auditpol /set /user:mikedan /exclude /category:* /success:enable
auditpol /set /category:detailed Tracking /success:enable
https://www.axcelsec.com/2017/12/host-configuration-assessment-windows.html
secedit /export /cfg cfg.ini > nul
net user administrator > netuseradmin.txt
auditpol.exe /get /category:* > auditpol.txt
netsh advfirewall show allprofiles > firewall.txt
net accounts > netaccount.txt
gpresult /f /h evid/gporesult.html > nul
accesschk /accepteula -q -a * > accesschk.txt
이렇게 해서 쓰라고 하네요
https://docs.microsoft.com/ko-kr/windows/security/threat-protection/security-policy-settings/user-rights-assignment
https://docs.microsoft.com/ko-kr/windows/security/threat-protection/security-policy-settings/allow-log-on-locally
SeInteractiveLogonRight 로그온 할당
secedit /export /cfg cfg.ini > nul
type cfg.ini | grep "^SeDenyNetworkLogonRight\|^SeDenyBatchLogonRight\|^SeDenyInteractiveLogonRight"
grep 구지 설치 할 필요가 없다 그냥 노트로 열면됨 편집해서.
notepad cfg.ini
안나오면 끝에 Guest 수정 해서 입력 하면 된다
SeDenyNetworkLogonRight = Guest
SeDenyInteractiveLogonRight = Guest
이런식으로 수정 해서 넣기 SeDenyInteractiveLogonRight 로컬 로그인
구지 설치 안해도 됨
https://chocolatey.org/install 이거 먼져 설치 해야 설치됨 ㅎㅎ 파워쉘로 하면 어렵지 않다.
choco install grep -y
설치를 미리 해야 한다.
https://hj-kwon.tistory.com/28
내보내기
md d:\secedit
secedit /export /cfg d:\secedit\cfg.ini > nul
tar -cvzf secedit.zip d:\secedit
만약을 위해 압축 하기
notepad d:\secedit\cfg.ini
수정하기
SeDenyBatchLogonRight = Guest
없다면 삽입 해주기
적용하기
secedit /configure /db test.sdb /cfg d:\secedit\cfg.ini
입력 하기는 안됨 -_-;; 아쉽게.. 이건 됨. db는 그냥 아무거나 적으면 된다. 없다면
https://docs.microsoft.com/ko-kr/windows/security/threat-protection/security-policy-settings/deny-log-on-as-a-service
로그인 관련 거부 관련 많다 좌측에 참고.
SeDenyServiceLogonRight = Guest
SeDenyRemoteInteractiveLogonRight = Guest
서비스 로그인 거부 원격 로그인 거부.
https://docs.microsoft.com/ko-kr/windows/security/identity-protection/access-control/security-identifiers 여기서 ID 검색
https://docs.microsoft.com/ko-kr/windows/security/threat-protection/security-policy-settings/allow-log-on-locally
로컬 로그인 허용 부분 수정
SeInteractiveLogonRight S-1-5-32-546 게스트 제거
*S-1-5-32-544,*S-1-5-32-545,*S-1-5-32-551
기존으로 있는 애들. 이건 건들면 안된다.
gpupdate /force
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/secedit-import
아무리 해도 수정이 안된다 ㅠ
아쉽게 입력은 오류가 나서 되질 않는다. 출력만 가능 gpedit.msc에서 수작업으로 수정 해야 하는듯
https://superuser.com/questions/774728/event-4797-an-attempt-was-made-to-query-the-existence-of-a-blank-password-for-a
auditpol /backup /file:"%userprofile%\Desktop\auditpol.bak"
auditpol /clear
감사 에러가 자꾸 날때. 다시 설정 하기 이렇게 하고 다시 등록 하면 된다
auditpol /restore /file:"%userprofile%\Desktop\auditpol.bak"
복구 하기
첫댓글 https://www.technipages.com/windows-administrator-account-login-screen
https://docs.microsoft.com/en-us/windows/security/identity-protection/user-account-control/user-account-control-group-policy-and-registry-key-settings
https://docs.microsoft.com/ko-kr/windows/security/identity-protection/access-control/special-identities
https://www.axcelsec.com/2017/12/host-configuration-assessment-windows.html
https://serverfault.com/questions/911131/how-can-i-locate-registry-key-for-group-policy-settings 레지스트로 찾을수 없다고 하네요
https://docs.microsoft.com/ko-kr/windows/security/threat-protection/security-policy-settings/user-rights-assignment
https://docs.microsoft.com/ko-kr/windows/security/threat-protection/security-policy-settings/allow-log-on-locally
SeInteractiveLogonRight 로그온 할당
SeDenyInteractiveLogonRight = Guest,*S-1-5-21
실험
https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/allow-log-on-through-remote-desktop-services
SeRemoteInteractiveLogonRight = *S-1-5-32-544
,*S-1-5-32-555 삭제
실험
https://blog.naver.com/dorisolution/222412764817 검사 배치파일