728x90
반응형
SMALL
AD 못 쓰니까 불편하네오..................
1. 기존 로컬 보안정책에 "서비스로 로그인" 항목만 수정할 것임
2. 아래 파워쉘은 기존 로컬 보안 정책을 백업하고, 거기에 SeServiceLogonRight 를 추가한 다음, 다시 import 하는 것임
$Username = 사용자 이름
secedit /export /cfg "C:\Jenkins\tmp.inf" | Out-Null
(gc -Encoding ascii "C:\Jenkins\tmp.inf") -replace '^SeServiceLogonRight .+', "`$0,$Username" | sc -Encoding ascii "C:\Jenkins\tmp.inf"
secedit /import /cfg "C:\Jenkins\tmp.inf" /db "C:\Jenkins\tmp.sdb" | Out-Null
secedit /configure /db "C:\Jenkins\tmp.sdb" /cfg "C:\Jenkins\tmp.inf" | Out-Null
Remove-Item "C:\Jenkins\tmp.inf"
Remove-Item "C:\Jenkins\tmp.sdb"
Remove-Item "C:\Jenkins\tmp.jfm"
728x90
반응형
LIST
'Windows Server' 카테고리의 다른 글
(powershell) cmd 창으로 프로그램 실행 후 cmd 창 유지하기 (0) | 2021.12.22 |
---|---|
Windows Server 에 IIS 기반 GIT 구축하기 (0) | 2021.06.27 |
(SfB Server 2015) Skype for Business / 주소록 동기화를 준비하는 중입니다. 검색 결과는 최신이 아닐 수 있습니다. (0) | 2021.05.31 |
(M365) MS Teams MFA 구성하기 (사외에서 다단계 인증 구성하기) (0) | 2021.05.28 |
(M365) Azure AD 전역 관리자 추가 (0) | 2021.05.28 |