"Miscellaneous Windows 10 One Liners ** to be updated from time 2 time"

Published: Sat 24 June 2017

In content.

Miscellaneous Windows 10 One liners

Note: This blog post was written using StackEdit (Online Markdown Editor). You may see some errors.

** if you do not get what you are looking for, kindly look at Microsoft Support Documents, also utilize powershell's built-in feature to spit some common examples which is super helpful.

This article will be updated from time to time.

calculate MD5,SHA1,SHA256 etc hash value **(powershell)** .

PS C:\User\user > ```CertUtil -hashtype ```

http://dillinger.io/CertUtil -hashfile <absolute_relative_file_path> <hash_type>

file_type_absolute_relative_path example:

Absolute file path example: C:\Users\user\file.filetype

Relative file path example: file.filetype

The difference between absolute file path and relative file path is that absolute file path is full path to the file regardless of the file's location in the drive whereas relative file path is given working directory, regardless of full path to the file.

>Example: CertUtil -hashfile C:\User\User\File.ext </span><span class="token md md-code">``</span><span class="token md md-code">``</span><span class="token md md-code"> you should get a bunch of numbers.

MD5,SHA1,SHA256 etc hash value (cmd)

> -> powershell -Command "CertUtil -hashfile </span><span class="token md md-code">``</span><span class="token md md-code">``</span><span class="token md md-code"> </span><span class="token md md-code">``</span><span class="token md md-code">``</span><span class="token md md-code">"

>Following command does exact same operation as above, using command-prompt

[^1]: [https://stackoverflow.com] [Stack Overflow] is the largest online community for programmers to learn, share their knowledge, and advance their careers

[^2]: [https://stackexchange.com] [Stack Exchange]  is a network of 150+ Q&A communities including Stack Overflow, the preeminent site for programmers to find, ask, and answer questions about software development

[^3]: [https://en.wikipedia.org/wiki/Path_(computing)#Absolute_and_relative_paths] [Path: Absolute & Relative] Source: Wikipedia

[1]: https://stackoverflow.com [2]: https://stackexchange.com

social