Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Windows cmd.exe Command-Prompt ► ««« »»»

Generate file hash via command prompt!


Sometimes you need the SHA value of a file, in the command prompt you can create a file hash under Windows 11, 10, ...!



Hash algorithms: MD2 MD4 MD5 SHA1 SHA256 SHA384 SHA512 are supported by  certutil -hashfile and can be created from any file quite quickly without having to resort to free external tools!

Contents:

1.) ... Simple commands to create a file hash! 
2.) ... Help for certutil to use more functions!




1.) Simple commands to create a file hash! 

MD5:
certutil -hashfile C:\Windows\System32\shell32.dll MD5
SHA256
certutil -hashfile C:\Windows\System32\shell32.dll SHA256

Here is the output from the Windows command prompt!



C:\Users\Nenad> certutil -hashfile C:\Windows\System32\shell32.dll MD5
MD5 hash of C:\Windows\System32\shell32.dll:
0cf8873869c194165de388a865841a9c
CertUtil: -hashfile command ran successfully.

C:\Users\Nenad> certutil -hashfile C:\Windows\System32\shell32.dll SHA256
SHA256 hash of C:\Windows\System32\shell32.dll:
d2aa4f4fd9b115ea5f3810da644a70b8b6ab06a2d1b40135ce3be45431f798e2
CertUtil command ran successfully: -hashfile.

C:\Users\Nenad>




-
▲ Back to the top ▲


2.) Help for certutil to use more functions!



CertUtil -?               Displays a list of commands.

CertUtil -dump-?    Displays the help text for the "dump" command.

CertUtil -v -?           Displays all help text for all commands.
 


CertUtil Commands:




-dump   Maps configuration information or files.
-asn   Analyze ASN.1 file
     
-decodehex   Decodes a hexadecimal encoded file.
-decode   Decodes a Base64 encoded file.
-encode   Encodes a file using Base64.
     
- deny   Denies the pending request.
-resubmit   Resubmits the pending request.
-setattributes   Sets attributes for the pending request.
-setextension   Sets extension for the pending request.
-revoke   Revokes the certificate.
-isvalid   Displays the current certificate disposition.
     
-getconfig   Determines the default configuration.
-ping   Sends signal to the Certificate Services Active Directory request interface.
-pingadmin   Sends signal to the Certificate Services Active Directory management interface.
-CA Info   Show certification authority information
-approx.cert   Gets the CA certificate.
-ca.chain   Gets the CA certificate chain.
-GetCRL   Gets the blacklist.
-CRL   Publishes new blacklists [resp. delta lock only].
-shut down   Shuts down Active Directory Certificate Services.
     
-installCert   Installs the CA certificate.
-renewCert   Renews the CA certificate.
     
-schema   Maps the certificate scheme.
-view   Maps the certificate view.
-db   Maps the binary database.
-deleterow   Deletes the server database series.
     
-backup   Backs up Active Directory Certificate Services.
-backupDB   Backs up the Active Directory Certificate Service database.
-backupKey   Backs up Active Directory Services certificate and private key.
-restore   Restores Active Directory Certificate Services.
     
-restoreDB   Restores the Active Directory Certificate Services database.
-restoreKey   Recovers Active Directory Services Certificate and Private Key.
-importPFX   Imports certificate and private key.
-dynamicfilelist   Displays a dynamic file list.
-databaselocations   Displays the database path.
-hashfile   Generates the crypto. Hash of a file and displays it.
     
-store   Maps certificate store.
-addstore   Adds a certificate to the store.
-delstore   Deletes a certificate from the store.
-verifystore   Verifies a certificate in the store.
-repair store   Repairs key mapping or updates certificate properties or key security descriptors.
-viewstore   Maps certificate store.
-viewdelstore   Deletes a certificate from the store.
-dsPublish   Publishes certificate or revocation list in Active Directory.
-ADTemplate   View Active Directory templates
-Template   View enrollment policy templates
-TemplateCAs   Displays certificate authorities for template.
-CATemplates   Displays certificate authority templates.
-enrollmentServerURL   View, add, or delete enrollment server URLs for a certificate authority
-ADCA   View Active Directory Certificate Authorities
-CA   View Enrollment Policy Certificate Authorities
     
-Policy   View registration policy
-PolicyCache   View or clear cached entries for enrollment policies
-CredStore   View, add, or delete credential store entries
-InstallDefaultTemplates   Installs default certificate templates.
-URLCache   Displays or clears URL cache entries.
-pulse   Impulse auto logon events
-Machine Info   Displays Active Directory computer object information.
-DC Info   View domain controller information
-EntInfo   Displays company information.
-TCA info   Show certification authority information
-SCInfo   Displays smart card information.
     
-SCRoots   Manages smart card root certificates.
     
- verify keys   Verifies the public-private key pair.
-verify   Verifies certificate, certificate revocation list or chain.
-syncWithWU   Sync with Windows Update
-generateSSTFromWU   Generate SST from Windows Update
- sign   Resigns the revocation list or the certificate.
     
-vroot   Creates/Deletes Web Virtual Root and releases.
-vocsproot   Creates/Deletes Web Virtual Root for OCSP web proxy
.    
-addEnrollmentServer   Add registration server application
-deleteEnrollmentServer   Delete registration server application
-oid   Displays or sets the name of the object ID.
- error   Displays the message text of the error code.
-gereg   Displays the registry value.
-setreg   Sets the registry value.
-delreg   Deletes the registry value.
     
-ImportKMS   Imported user. and Z. for archiving in the DB.
-Import Cert   Imports a certificate file into a database.
-GetKey   Retrieves archive recovery blob. private key.
-RecoverKey   Recovers the archived private key.
-MergePFX   Merges PFX files.
-ConvertEPF   Converts PFX files to an EPF file.
-?   Displays this syntax message.



-
▲ Back to the top ▲


FAQ 126: Updated on: 31 May 2022 15:19 Windows
Windows-Console

Export a list of running processes as a text file with cmd.exe!


Its easy to export a list of running processes as a text file using the command prompts cmd.exe on Windows 11, 10, etc 1. exporting the running
Windows-Console

Adjust lock screen duration from command prompt!


Adjust lock screen duration from command prompt is a little-known option on Windows 11, 10, and MS Server OS   Content: 1. The lock screen display
Windows-Console

Directly open command prompt in each folder!


Here is the solution to open the command prompt directly in each folder without much effort on all Windows 11, 10, and MS Server operating systems  
Windows-Console

Find out programs that start with Windows via the command prompt?


You can find out programs that start with Windows via the classic command prompt on all MS Windows OS Everyone probably knows the practical ►  Autostart
Windows-Console

Change directory or drive in command prompt!


Sometimes you just need to change directory or even drive in Command Prompt on all MS Windows Desktop and Server OS Everyone probably knows how easy it
Windows-Console

Which programs access the Internet cmd.exe command!


Sometimes you just want to see what programs are accessing the internet, luckily you can do that from the classic command prompt with netstat 1. Show
Windows-Console

robocopy or xcopy from command prompt on MS Windows OS!


Should I use robocopy or xcopy from the command prompt on MS Windows OS eg to copy and sync the directories? Thanks to the robocopy or xcopy commands, you

»»

  My question is not there in the FAQ
Asked questions on this answer:
Keywords: windows, console, generate, file, hash, command, prompt, sometimes, need, value, create, under, algorithms, sha1, Questions, Answers, Software




    

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + Q-Dir
  + DirPrintOK
  + FontViewOK
  + MeinPlatz
  + DesktopOK
  + ProcessKO
  + WinBin2Iso
  + ThisIsMyFile
  + TheAeroClock
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Windows 2021 | Windows 10 | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2023 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu
0.077


► Customize the pagefile.sys in Windows 10/11 (paging file)? ◄

► Scroll or jump to the selected object / files when filtering? ◄

► QuickTextPaste does not save the settings, how can I uninstall it? ◄

This website uses cookies to ensure you get the best experience on our website more Infos & Privacy Policy
....