Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell loop? newbie in powershell logic.

$
0
0

Hi All.

I have a challenge regarding a script.

I want to chech if a file exists on a remote virtual server(this works).

if the file exists i want to close down the vm(this works) and remove a legagy adapter from the virtual machine.

so what i need is the logic, to determine if the file is on the VM, if not the powershell script should sleep for 5 minutes, and then try again, and again until the file is there(this is part of a deployment scenario).

Hope someone can help me.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>