locked
Powershell Network cannot be 127.0.0.1 RRS feed

  • Întrebare

  • I don't know if anyone out there can help. I have a powershell script that runs on a terminal in Kiosk mode and when it starts up it goes through a number of checks before completing and opening a specific URL. This script was i=not created by me i am just the new guy that is trying to make this all work better. What it does during startup is it verifies the network connection then pull the current IP Address into memory so it can transmit it to the database to be used for remote support. Currently the issue is that sometimes when the device boots it is pulling the IP before the device has sufficient time to get a valid IP from the dhcp and thus it is sending back to the database an ip of 127.0.0.1. mostly with around 3 or 4 reboots cycles it comes right until the next time it boots then its back to the rebooting. Can anyone suggest a string of code that could be used as an error checking to say if the IP does not start with 192.168 then retry in 10s.??

    Please help.

    duminică, 16 august 2020 03:59

Toate mesajele