https://cafe.daum.net/candan/GGFN/311?svc=cafeapi 예전 자료
https://devblogs.microsoft.com/scripting/generate-random-letters-with-powershell/ 여기 글을 읽어 보면 된다고 한다
https://stepbystep1.tistory.com/10 아스키 코드표(ASCII Table) 여기서 숫자 대역을 고르면 된다.
https://kin.naver.com/qna/detail.naver?d1id=1&dirId=104&docId=424136716 해답을 주신 모모님 ㅎㅎb 능력자
https://learn.microsoft.com/ko-kr/powershell/scripting/learn/deep-dives/everything-about-arrays?view=powershell-7.2 범위에 대한 소개
powershell -command "-join ((65..90) + (97..122)|get-random -count 15| % {[char]$_})"
원본 영문 대소문자만 랜덤 하게 15자 출력 하게 한다
powershell -command "-join ((35..38) + (65..90) + (97..122)|get-random -count 15| % {[char]$_})"
중간에 특수 문자를 넣는다 나올때도 있고 아닐때도 있다
powershell -command "-join ((35..38) + (65..90) + (97..122)|get-random -count 124| % {[char]$_})"
최장은 127 이라고 한다 계정 암호 가능. 124 까지 랜섬 숫자 출력 하다고 하는 명령어다.
powershell -command "-join ((35..38) + (48..57) + (65..90) + (97..122)|get-random -count 124| % {[char]$_})"
(35..38) 특수문자
(48..57) 숫자
(65..90) 대문자
(97..122) 소문자
암호로 쓸수 있는 것이 한정 되어 있어요.
싸이트에서 이용 할수도 있어요.
https://hi098123.tistory.com/46
하지만 아무래도 명령어 입력 하는 경우 싸이트 접속이 안되니 ㅎㅎ 쓰는 거랍니다.
https://learn.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/password-must-meet-complexity-requirements
암호로 쓸수 있는 특수 문자 범위 (~!@#$%^&*_-+=`|\(){}[]:;"'<>,.?/) 생각 보다 범위가 많네요 ㅎㅎ..
https://stackoverflow.com/questions/65853805/what-are-the-valid-country-codes-available-for-the-windows-net-user-command
국가 지역 코드
082 한국
net user guest /countrycode:082
이렇게 하면 한국만 접속 가능 한것 같다.
net user Guest /times:F,4AM-5AM
F는 요일을 의미 한다 아침 4AM 부터 5AM 까지만 가능 하게 하기 ㅎㅎ;;
M,T,W,Th,F,Sa,Su 월화수목.. F는 금요일 만 4~5시 까지만 가능 하게 하기
net user Guest /workstations:홍길동
이렇게 하면 test란 워크 스테이션만 접근 가능 하다. 하지만 test가 없기 때문에. 접근 불가.. 하다는 소리.
powershell -command "-join ((48..57) + (65..90) + (97..122)|get-random -count 15| % {[char]$_})"
만들면 될듯 워크는 영문 숫자로만 가능 하다.
https://windowscage.com/net-user-command-to-check-password-expire-details/
기타 계정 만료 날짜. 완료가 되면 팝업으로 협박 한다고 한다 다시 바꾸라고 ㅎ
powershell -command "-join ((35..38) + (48..57) + (65..90) + (97..122)|get-random -count 124| % {[char]$_})"
예를 들자면
net user guest "홍길동"
홍길동 부분에 암호를 넣으면 되는 거죠
https://hec-ker.tistory.com/310 암호 바꾸는 것에 대해서.
https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/cc771865(v=ws.11)
net user guest /passwordreq:yes
리부팅 하면 변경 된다.
net user guest
상태 확인
echo 지역 코드 그냥 도움말 한국어로 도와 주는 것 의미 없는? ㅠㅠ..
net user Administrator /countrycode:082
net user DefaultAccount /countrycode:082
net user Guest /countrycode:082
net user WDAGUtilityAccount /countrycode:082
echo 게스트 접속 시간 정하기
net user Guest /times:F,4AM-5AM
echo 게스트 워크 스테이션 제한하기
powershell -command "-join ((48..57) + (65..90) + (97..122)|get-random -count 15| % {[char]$_})"
net user Guest /workstations:홍길동
REM "게스트 이름 변경 하기 이름을 20자 까지 할수 있다고 하네요"
powershell -command "-join ((35..38) + (48..57) + (65..90) + (97..122)|get-random -count 20| % {[char]$_})"
net user Guest /fullname:"홍길동"
첫댓글 랜덤 파워쉘의 경우 https://cafe.daum.net/candan/GGFN/381
조금 빠르네요 파워쉘은
https://www.grc.com/passwords.htm 싸이트
REM "이름을 20자 까지 할수 있다고 하네요"
powershell -command "-join ((35..38) + (48..57) + (65..90) + (97..122)|get-random -count 20| % {[char]$_})"
net user Guest /fullname:"홍길동"