go back to

official website of Mohamad Shahrim

snippets of command or code that I consider useful

search files faster

dir "\searchterm" /s

list out running services

net start

generate hash of a file

certutil -hashfile "C:\Users\Administrator\Desktop\tehee.txt" sha256

find system boot time

systeminfo|find "Boot Time"

install specific Laravel

composer create-project laravel/laravel="8.6.12" myproject

echoing text to file without quotes

echo|set /p="Hello" > test.txt

display current directory

echo %cd%

fix gitignore not working

git rm -r --cached . git add . git commit -m "fixed untracked files"

show list of Domain Accounts

net users /domain

check current user connecting to server

quser

or

quser /SERVER:172.16.1.10

get file associations, and program

assoc .py ftype Python.File

Nmap network analysis

nmap -sV -sC -O -n -oA nmapscan 192.168.0.1

show information about Windows activation

slmgr /dli

reposition Chrome tab

Ctrl + Shift + PageUp/PageDown

update Composer

composer self-update

update Git

git update-git-for-windows

list drives

wmic logicaldisk get deviceid, volumename, description

setting up OpenSSH

Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 Start-Service sshd Set-Service -Name sshd -StartupType 'Automatic' Get-NetFirewallRule -Name *ssh*

logo generated using https://inkpx.com/word-art-generator


This page was last updated on 8th Jan 2026