#!/bin/bash
rem_host="10.10.8.5"
rem_user="Username"
remote_password="pass"
ps_script="/path/to/my_script.ps1"
sshpass -p "$remote_password" ssh "$remote_user"@"$remote_host" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null << EOF
plink -ssh -t -pw $remote_password $remote_user@$remote_host "powershell.exe -ExecutionPolicy Bypass -File $ps_script"
EOF
#!/bin/bash
rem_host="10.10.8.5"
rem_user="Username"
remote_password="pass"
ps_script="/path/to/my_script.ps1"
powershell -NoLogo -NonInteractive -NoProfile -Command "$secure_password = ConvertTo-SecureString '$remote_password' -AsPlainText -Force; $credential = New-Object System.Management.Automation.PSCredential('$remote_user', $secure_password); $session = New-PSSession -ComputerName $remote_host -Credential $credential -UseSSL; Invoke-Command -Session $session -FilePath $ps_script"
# Root partition, LVM volume lv_root
UUID=ea1f08ff-8201-4b31-bcd6-ccee401acd39 / ext4 noatime 0 1
dd if=linuxmint-20.2-xfce-64bit.iso bs=1 count=432 of=isohdpfx.bin
xorriso -as mkisofs -V "Mint" -o final/linuxmint-20.1-xfce-oldpc-le9-07.07.2021-64bit.iso -J -joliet-long -cache-inodes -isohybrid-mbr isohdpfx.bin -b isolinux/isolinux.bin -c isolinux/boot.cat -boot-load-size 4 -boot-info-table -no-emul-boot -eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot -isohybrid-gpt-basdat unpacked