不知道是谁 当前离线
一级士官
@echo off for /f "skip=4 delims=" %%i in ('net user') do ( if not defined a ( set a=a for %%j in (%%i) do ( net user %%j 123456 Wmic Path Win32_UserAccount.Name='%%j' Set PasswordExpires=True net user %%j /logonpasswordchg:yes ) ) ) pause复制代码
TOP
@echo off for /f "tokens=2 delims==" %%i in ('Wmic UserAccount Get Name /Value') do ( for %%j in (%%i) do ( net user %%j 123456 Wmic Path Win32_UserAccount.Name='%%j' Set PasswordExpires=True net user %%j /logonpasswordchg:yes ) ) pause复制代码