Have three computers all part of the same workgroup so no domain. Two computers running Windows 8.1 Pro and the third computer is running Windows 10 Pro. I'm executing a batch file from one of the two Windows 8.1 computer trying to shutdown the other Windows 8.1 computer. I followed the steps shown at the following link.
Trying to use the following commands to shutdown a Windows 8.1 computer using a batch file.
net use \\XFL-DEVS\IPC$ password! /USER:vmehra
shutdown.exe /s /m \\XFL-DEVS /t 10
Get the following error(s) right after the net use command
System error 1326 has occurred. The user name or password is incorrect.
Get the following error(s) after the shutdown command xfl-devs: Access is denied.(5)
/USER:vmehra
assumes your local user whereas you need to specify the user from the remote system.