-1

I would like to have powershell manage network profiles for me depending on where I connect to. Mostly for my three work locations I jump between. I need specific IP off the wireless networks so I can access our servers.

With powershell I can run the scripts to pull SSIDs and then configure the network to set static IPs but is there a way to have powershell monitor for these changes and then set the networks?

EDIT: Can this also be ran in the background so no window needs to be left up?

Jason
  • 3,931
  • 19
  • 66
  • 107

1 Answers1

2

Write a script with a never-ending loop like this:

do
{
    # check whatever you want to check and react to it...

    Start-Sleep -Seconds 30

} until ($false)

Press CRTL+C to terminate

Peter Hahndorf
  • 14,058
  • 3
  • 41
  • 58