Permalink
Browse files

Adding a catalog file to be used to check the integrity of files

  • Loading branch information...
p0w3rsh3ll committed Jun 26, 2017
1 parent fe52f1d commit b4c63827e0b168929c61736a923fea996f3d6f05
View
@@ -4,7 +4,7 @@ Download the Windows Assessment and Deployment Kit
Usage
-----
```
```powershell
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned -Force
# dot sourcing the function stored in get-adkfiles.ps1
. ~/documents\get-ADKFiles.ps1
@@ -17,7 +17,7 @@ Integrity
You can check the integrity of the downloaded files
```
```powershell
Import-Csv ~/documents\SHA256SUMS.csv -Delimiter ";" | Foreach-Object {
if ( (Get-FileHash -Path (Join-Path -Path C:\ADK -ChildPath $($_.File))).Hash -eq $_.Hash) {
@@ -27,3 +27,10 @@ Import-Csv ~/documents\SHA256SUMS.csv -Delimiter ";" | Foreach-Object {
}
}
```
```powershell
if ($PSVersionTable.PSVersion -gt [version]'5.1') {
Test-FileCatalog -Path C:\ADK -CatalogFilePath C:\ADK\catalog.cat -Detailed
}
```
View
Binary file not shown.
View
@@ -4,7 +4,7 @@ Download the Windows Assessment and Deployment Kit
Usage
-----
```
```powershell
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned -Force
# dot sourcing the function stored in get-adkfiles.ps1
. ~/documents\get-ADKFiles.ps1
@@ -17,7 +17,7 @@ Integrity
You can check the integrity of the downloaded files
```
```powershell
Import-Csv ~/documents\SHA256SUMS.csv -Delimiter ";" | Foreach-Object {
if ( (Get-FileHash -Path (Join-Path -Path C:\ADK -ChildPath $($_.File))).Hash -eq $_.Hash) {
@@ -27,3 +27,9 @@ Import-Csv ~/documents\SHA256SUMS.csv -Delimiter ";" | Foreach-Object {
}
}
```
```powershell
if ($PSVersionTable.PSVersion -gt [version]'5.1') {
Test-FileCatalog -Path C:\ADK -CatalogFilePath C:\ADK\catalog.cat -Detailed
}
```
View
Binary file not shown.

0 comments on commit b4c6382

Please sign in to comment.