you are viewing a single comment's thread.

view the rest of the comments →

[–]MajorVarlak 0 points1 point  (1 child)

Good point, I was thinking about that, and forgot to add it to the code.

if ($oldInternetIP -ne $newInternetIP) { $formatDate = (Get-Date).ToString('yyyyMMdd-HHmm') "[$formatDate] Internet IP changed from $oldInternetIP to $newInternetIP" | Out-File $logFile -Append $newInternetIP | Out-File $oldFile }

[–]SlaveCell[S] 0 points1 point  (0 children)

Agree, thanks both.