This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am toksikk on github. | |
* I am toksikk (https://keybase.io/toksikk) on keybase. | |
* I have a public key ASCjlaoGJK97T1kQF1zdQU96miyDWbUmefrPenX3Bua3HAo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-Type -AssemblyName System.Drawing | |
$imageSourcePath = Get-Location | |
$files = Get-ChildItem -Path $imageSourcePath -filter *.jpg | |
$numFiles = $files.Count | |
[Int32]$counter = 0 | |
foreach ($file in $files) { | |
$takenDateUNIXMilli = $file.BaseName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define the script parameters | |
param ( | |
[string]$FilePath = "C:\path\to\hostname\list.txt", | |
[string]$IPAddress = "10.13.37.160" | |
) | |
# Read the list of hostnames from the file | |
$hostnames = Get-Content -Path $FilePath | |
# Iterate over each hostname in the list |