sh file that make a server reboot then needed, and I have to convert this command in .batch for windows and in Powershell too I can't find how to pass the variables for user, pass and the instruction not to chech the SSL certificate in the windows version. Can anyone help? thank you
Linux SH file (working)
#!/bin/sh
ip_address=192.168.0.5
username=myuser
password=mypass
wget --no-check-certificate --user=$username --password=$password -qO- https://$ip_address/reboot
Windows Batch file (in progress)
@echo off
set ip_address=192.168.0.5
set username=myuser
set password=mypass
start https://%ip_address%/reboot
rem so far it open the requested URL, but it checks the SSL certificate so it blocks the execution, and i don't know how to pass user and password
.batch
it's.bat