Windows Command Line Cheat Sheet

/ Comments off

Wmic useraccount list wmic group list wmic sysaccount listFor domain controllers, this should provide a listing of all user accounts and groups in the domain. Download asmaul husna dan artinya doc. The “sysaccount” version provides you with system accounts built-in and otherwise,which is useful for any extra accounts that may have been added by rootkits. Identify any local system accounts that are enabled (guest, etc.)wmic USERACCOUNT WHERE “Disabled=0 AND LocalAccount=1” GET Name”.

  1. Batch Commands Cheat Sheet
CheatLine

Batch Commands Cheat Sheet

Number of Logons Per USERIDwmic netlogin where (name like “%skodo”) get numberoflogons. Get Domain Names And When Account PWD set to ExpireWMIC UserAccount GET name,PasswordExpires /Value Patch ManagementNeed to know if there are any missing patches on the system? WMIC can help you find out with this command: wmic qfe listThe QFE here stands for “Quick Fix Engineering”.The results also include the dates of install should that be needed from an auditing standpoint.