Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert command from Certutil to Powershell #144

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

JackStuart
Copy link
Contributor

@JackStuart JackStuart commented Nov 13, 2024

Converting from using Certutil to get a SHA256 to the Powershell Get-FileHash

Copy link
Contributor

Learn Build status updates of commit ad04bd7:

✅ Validation status: passed

File Status Preview URL Details
defender-office-365/tenant-allow-block-list-files-configure.md ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

@chrisda
Copy link
Contributor

chrisda commented Nov 13, 2024

@JackStuart, may I ask why? That DOS-based procedure is used elsewhere, so if we change this one, I'd like to change any others.

@JackStuart
Copy link
Contributor Author

JackStuart commented Nov 14, 2024

Hi @chrisda,

I feel like it's more consistent to update the command from Certutil to PowerShell, as the rest of the doco references PowerShell, including the line immediately above. It doesn't make a lot of sense to open Command Prompt and run certutil solely to get a SHA256, especially when there’s a native PowerShell option available. If it was something more complicated than sure. But I think PS is the best option here

There are 2 other places that Certutil is specifically used to get a SHA256. To me it would make sense to also update them to Powershell as a more native way of doing things

|SHA256|Integer. Separate multiple values by commas. <br/><br/> To find the SHA256 hash value of a file in Windows, run the following command in a Command Prompt: `certutil.exe -hashfile "<Path>\<Filename>" SHA256`.|||

|Attachment SHA256|Text. Separate multiple values by commas. <br/><br/> To find the SHA256 hash value of a file in Windows, run the following command in a Command Prompt: `certutil.exe -hashfile "<Path>\<Filename>" SHA256`.|

@chrisda chrisda merged commit 6103ca0 into MicrosoftDocs:public Nov 14, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants