简体   繁体   中英

Running powershell network script at computer startup will fail

an Hyper-V Server 2019 attempts to run a network powershell script at computer startup, through the Task Scheduler, however this script will not run at startup, nothing happens.

Once the Hyper-V server has booted, if the script is manually launched through the Task Scheduler, it will run.

Could it be possible that the script will fail to run because the network is not available at that time?

在此处输入图片说明

As suggested by @Hazrelle, delaying the script start for 5 minutes did the trick. I have followed instructions in this article:

https://www.maketecheasier.com/start-scheduled-tasks-with-delay-windows/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM