Thursday, April 17, 2025

Windows Commands

Below command will display the directories and files in Windows
#Below code show directories and file in current folder
dir
Below command will create certificate in pkcs12 format. Please note that you need to place crt file and private key file in same directory you are running the command
#Below code will create certificate in pkc12 format
certutil -mergepfx mycertificatename.crt mycertificatename.pfx
Below command will display computer name in windows
hostname
Below command will display ip configurations in windows
ipconfig
Below command will display network address details in windows
#need to provide your computername in the below command instead of computername
nslookup computername