
아래와 같이 "비밀번호 변경" 창을 여는 Windows 명령(명령줄을 통해 전송됨)이 있습니까?
답변1
답변2
시도해 볼 수 있는 몇 가지 작업은 다음과 같습니다.
마이크로소프트는 말한다이는 control password.cpl
명령줄에서 작동해야 하지만 도메인으로 제어되지 않는 컴퓨터의 Windows 7에서는 얻을 수 없습니다.
명령을 사용하는 것도 start control password.cpl
도움이 될 수 있습니다.
여기 또 다른 것이 있습니다시도하라는 명령rundll32.exe shell32.dll,Control_RunDLL password.cpl
그래도 작동하지 않으면 명령줄에서 다음을 사용하여 수행할 수 있습니다.net user [username] [newpassword]
답변3
나는 사용했다오토핫키이를 위해.
user
변수를 대상 사용자로 변경합니다 .
파일을 저장하고 시작 폴더에 해당 파일의 바로가기를 만듭니다.
설명을 위해 모든 줄 끝에 주석이 달렸습니다 ;
.
Windows 사용자 비밀번호 변경 GUI.ahk
#NoEnv
SetWorkingDir %A_ScriptDir%
#Warn
CoordMode, Mouse, Window
SendMode Input
#SingleInstance Force
SetTitleMatchMode 2
SetTitleMatchMode Fast
DetectHiddenWindows Off
DetectHiddenText On
#WinActivateForce
#NoTrayIcon
SetControlDelay 1
SetWinDelay 0
SetKeyDelay -1
SetMouseDelay -1
SetBatchLines -1
#Persistent
#MaxThreadsPerHotkey 2
WindowsChangeUserPasswordGUI:
user := "Administrator" ; user
WinGetTitle, title, A ; Active Window Enable On Top
WinGetClass, class, A ; Active Window Enable On Top
WinGet, exe, ProcessName, A ; Active Window Enable On Top
WinSet, AlwaysOnTop, On, %title% ahk_class %class% ahk_exe %exe% ; Active Window Enable On Top
Run, netplwiz ; User Accounts
WinWait, User Accounts ahk_class #32770 ahk_exe netplwiz.exe ; User Accounts
WinSet, Transparent, 0, User Accounts ahk_class #32770 ahk_exe netplwiz.exe ; Make User Accounts Window Transparent (Not Visible)
WinSet, AlwaysOnTop, Off, %title% ahk_class %class% ahk_exe %exe% ; Active Window Disable On Top
ControlSendRaw, SysListView321, %user%, User Accounts ahk_class #32770 ahk_exe netplwiz.exe ; Select Specified User
ControlGet, selected, List, Selected, SysListView321, User Accounts ahk_class #32770 ahk_exe netplwiz.exe ; Get Selected User
selected := RegExReplace(selected, "\t.*", "") ; Get Pure User Name, Remove User Groups
ControlClick, Button6, User Accounts ahk_class #32770 ahk_exe netplwiz.exe,, Left, 1, NA ; Reset Password Button
WinWait, Reset Password ahk_class #32770 ahk_exe netplwiz.exe ; Reset Password
WinSetTitle, Reset Password ahk_class #32770 ahk_exe netplwiz.exe, , Reset Password %selected% ; Set Window Title Reset Password User
WinGetPos, passX, passY, passW, passH, Reset Password ahk_class #32770 ahk_exe netplwiz.exe ; Get Window Position Of Reset Password
x := (A_ScreenWidth - passW) / 2 ; Set The Coordinates For Screen Center
y := (A_ScreenHeight - passH) / 2 ; Set The Coordinates For Screen Center
WinMove, Reset Password ahk_class #32770 ahk_exe netplwiz.exe,, %x%, %y% ; Move Reset Password Window To Screen Center
WinWaitClose, Reset Password ahk_class #32770 ahk_exe netplwiz.exe ; Wait For Reset Password Window To Close
WinClose, User Accounts ahk_class #32770 ahk_exe netplwiz.exe ; Close User Accounts Window
ExitApp ; ExitApp
Return
답변4
어떤 Windows 시스템에서도 더 이상 비밀번호.cpl이 표시되지 않습니다. 더 이상 사용되지 않을 수 있습니다. 그러나 이 모호한 명령은 암호 대화 상자를 시작하는 데 여전히 작동하는 것 같습니다.
C:\Windows\explorer.exe shell:::{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0}
그것이 당신에게 유용하길 바랍니다.