Logo
RSS Feed

📘 Windows BTFM


Created: 23.09.2020

FUC

(Frequently Used Commands)

User

Get user’s SID:

wmic useraccount where name='veronicazvereva' get sid
# or
whoami /user # for current user

System

USB

Mounting

USB devices on are mounted automatically, but VHD drives might need to be mounted manually. To do so, go to disk management utility, choose Attach VHD from the top menu, select it, open and ok.

DISKPART

diskpart
DISKPART> list volume
DISKPART> select disk 0
DISKPART> clean # wipe the selected disk
DISKPART> list partition
DISKPART> select partition 1
DISKPART> active 
DISKPART> format fs=ntfs label=test qiuck
DISKPART> delete partition

Remote

FTP

Processes

Memory

Files

# search for a pattern or word (like grep)
findstr [flags] [term] path filename

Compare

Network

ipconfig 
netstat
arp 

About

References

[1] Windows Command Line