Menu

Close
  • Home
  • Login
Subscribe
Menu

CMD

A 8-post collection

Page 1 of 1

Get public IP from command line

To get your machines public IP from the command line, run the following command: nslookup myip.opendns.com resolver1.opendns.com »

Dan Anstis Dan Anstis on CMD, DNS, Debugging 07 January 2019

Execute Service Under its Own SVCHOST Process

In order to move a service from a shared SVCHOST process into its own SVCHOST process: Check the current SVCHOST processes, and the services assigned: tasklist »

Dan Anstis Dan Anstis on Svchost, Windows, CMD 29 January 2016

Check returned SSL certificates from website using OpenSSL

The following command will return the certificate chain from a website using OpenSSL: openssl.exe s_client -connect www.google.com:443 -prexit -showcerts »

Dan Anstis Dan Anstis on CMD, Certificate, OpenSSL 28 January 2016

Remotely Enable PowerShell Remoting

In order to remotely enable PS remoting we can leverage PSEXEC (http://live.sysinternals.com.au/psexec.exe). psexec \\[computer name] -u [admin account name] -p »

Dan Anstis Dan Anstis on CMD, PowerShell 13 January 2016

Connect to remote windows share with other user account

In order to connect to a remote Windows server via CIFS using a different user account, enter the following command in a Command Prompt (CMD) window: »

Dan Anstis Dan Anstis on CMD 22 September 2015

Troubleshoot SMTP with Telnet

Open a telnet session: From a command prompt, type telnet, and then press ENTER. Type set local_echo on a computer running Microsoft Windows® 2000 Server »

Dan Anstis Dan Anstis on CMD, Telnet, Email 22 July 2015

Creation of dummy files with FSUTIL

The following command will create a dummy file in the specified path with the specified size (in bytes): FSUTIL FILE CREATENEW <path\filename> < »

Dan Anstis Dan Anstis on CMD 21 July 2014

Show non present devices in device manager

To show non present devices in device manager, open the command prompt and type the following: set DEVMGR_SHOW_NONPRESENTDEVICES=1 devmgmt.msc »

Dan Anstis Dan Anstis on CMD 10 July 2014
Page 1 of 1
Dan's Notes © 2025
Proudly published with Ghost