Windows 10: Shutting Down Win 10 Remotely batch file?

Discus and support Shutting Down Win 10 Remotely batch file? in Windows 10 Ask Insider to solve the problem; Hello all, I've part resolved this but not fully. I run Kodi on a Win 10 Pro machine and that connects to another Win 10 Pro to access movies etc.... Discussion in 'Windows 10 Ask Insider' started by /u/FlashPan73, Feb 7, 2020.

  1. Shutting Down Win 10 Remotely batch file?


    Hello all,

    I've part resolved this but not fully.

    I run Kodi on a Win 10 Pro machine and that connects to another Win 10 Pro to access movies etc.

    I've created a batch script when run on the Kodi box to shutdown the movies box.

    It seems to work but not if the movie box has been logged on. If no user is logged on then my script works:

    net use * /delete /y

    net use \\192.168.0.231 admin password /user:192.168.0.231\admin username

    shutdown -s -f -m \\192.168.0.231 -d up:1:1

    Any ideas as why this does not work if logged on or ideas of tweaks to my script? When I used to run Win 7 I had a similar script that worked fine but did not need the net use command.

    Thanks and cheers

    Edit: Forgot to add. Both machines are not on a domain, just setup as standalone but use the same admin username and password.

    submitted by /u/FlashPan73
    [link] [comments]

    :)
     
    /u/FlashPan73, Feb 7, 2020
    #1
  2. oily_17 Win User

    Batch Files Knowledge Base

    Don't use batch files very much but one I find useful is for creating a list of files in a directory.
    Just copy the text below into Notepad and save as Filelist.bat

    dir /a /-p /o:gen >filelist.txt

    When you run it from a folder it will create a Filelist.txt file,in the same folder, that lists all the files in that folder.Useful when you are too lazy to type all the files out yourself.
     
    oily_17, Feb 7, 2020
    #2
  3. Batch Files Knowledge Base

    Very nice and usefull thanks for contributing.
     
    AphexDreamer, Feb 7, 2020
    #3
  4. Try3 Win User

    Shutting Down Win 10 Remotely batch file?

    Delayed expansion and arrays in Win 10 batch files

    Sorry, I failed to check what I wrote properly. Now corrected.

    I meant to suggest adding
    Code:
    because that will list all the variables beginning with the string SourceFile. Here is a demo bat
    Code:
    that returns, in response to the set fred line,
    Code:
    Shutting Down Win 10 Remotely batch file? [​IMG]

    Denis
     
    Try3, Feb 7, 2020
    #4
Thema:

Shutting Down Win 10 Remotely batch file?

Loading...
  1. Shutting Down Win 10 Remotely batch file? - Similar Threads - Shutting Down Remotely

  2. Shut down error - Win 10

    in Windows 10 Gaming
    Shut down error - Win 10: Also, occasionally have a .exe pop up screen. What is the fix for these errors? https://answers.microsoft.com/en-us/windows/forum/all/shut-down-error-win-10/7676b2c8-d6f1-42c3-8ce8-2d4c76152200
  3. Shut down error - Win 10

    in Windows 10 Software and Apps
    Shut down error - Win 10: Also, occasionally have a .exe pop up screen. What is the fix for these errors? https://answers.microsoft.com/en-us/windows/forum/all/shut-down-error-win-10/7676b2c8-d6f1-42c3-8ce8-2d4c76152200
  4. Shut down error - Win 10

    in Windows 10 BSOD Crashes and Debugging
    Shut down error - Win 10: Also, occasionally have a .exe pop up screen. What is the fix for these errors? https://answers.microsoft.com/en-us/windows/forum/all/shut-down-error-win-10/7676b2c8-d6f1-42c3-8ce8-2d4c76152200
  5. shut down sound win 10

    in Windows 10 Software and Apps
    shut down sound win 10: I have a problem with win 10everything works fine all day i play games without problems but every day at 3 pm you hear the sound as if the power is going off but it doesn't turn off pcevery day at the same timea mysterious problemdoes anyone have any advicei havessd 120gram...
  6. shut down sound win 10

    in Windows 10 Performance & Maintenance
    shut down sound win 10: I have a problem with win 10everything works fine all day i play games without problems but every day at 3 pm you hear the sound as if the power is going off but it doesn't turn off pcevery day at the same timea mysterious problemdoes anyone have any advicei havessd 120gram...
  7. shut down sound win 10

    in Windows 10 Gaming
    shut down sound win 10: I have a problem with win 10everything works fine all day i play games without problems but every day at 3 pm you hear the sound as if the power is going off but it doesn't turn off pcevery day at the same timea mysterious problemdoes anyone have any advicei havessd 120gram...
  8. win 11 shut down

    in Windows 10 Gaming
    win 11 shut down: every time i shut down my PC an error message flashes up and vanishes in less than a second . I have tried SFC & DIM to no avail. can any one suggest how to record this error message>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Log Name: SystemSource:...
  9. Win 10 won't shut down

    in Windows 10 Customization
    Win 10 won't shut down: After new hard drive installation...Win 10 will not shut down. My old hard drive also had Win 10 so I am really baffled by the problem. I unchecked "fast start". That didn't change anything. FYI I did check MSINFO and found that the Bios are legacy. I've been with...
  10. win 10 - shutting down and restart

    in Windows 10 Support
    win 10 - shutting down and restart: why my windows 10 take so much time to shutdown and restart ? i have a 480 gb ssd, 32 gb ram, kaspersky internet security,all updates done. any fix to resolve this ? bye 87080