for /I %i in (1,1,254) do @ping -n -1 -w 100 [First three octets of IP.%i | find "Reply"
find anything on the system
where /R c:\ [*name*.extension]
Win (8.1 and up):
Powershell (single file or directory)
Get-FileHash ‘C:\path\to\file\[*]’ -Algorithm MD5 | Format-List
Get-Filehash 'c:\path\to\folder(file)\[*]' -Algorith MD5 -ErrorAction Ignore | Format-List (this will ignore any errors)
CertUtil
certutil -hashfile [file] [hashtype]
MD2
MD4
MD5
SHA1
SHA256
SHA384
SHA512
Directory:
for /r %f in (*) do(certutil -hashfile “%f” MD5) | file /v “hashfile command completed successfully” >> output.txt
Add user
net user [username] [password] /ADD
net user /add [username] (will prompt for password)
Add user to a Domain
net user [username] * /ADD /DOMAIN
Delete User
net user [username] /DELETE
Additional Options:
/homedir:pathname change home directory from default
/fullname:"name" specify real name of user
/comment:"text" add a comment to a user account
net localgroup [administrators] show members of a group
net user [username] get full account details
net localgroup administrators [username] /add add user to the administrator group