Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Shutdown command  (Read 4546 times)

0 Members and 1 Guest are viewing this topic.

Vasco Rodrigues

    Topic Starter


    Starter

    • Experience: Familiar
    • OS: Windows 7
    Shutdown command
    « on: October 12, 2013, 02:48:02 PM »
    Im trying to shutdown a Computer in my house, using Shutdown /s /m username
    But im getting a "Access Negated (5)", how do i get access to the other computer?

    Thanks in advance.

    foxidrive



      Specialist
    • Thanked: 268
    • Experience: Experienced
    • OS: Windows 8
    Re: Shutdown command
    « Reply #1 on: October 12, 2013, 06:18:41 PM »
    Use administrator credentials for the remote computer.

    Vasco Rodrigues

      Topic Starter


      Starter

      • Experience: Familiar
      • OS: Windows 7
      Re: Shutdown command
      « Reply #2 on: October 13, 2013, 03:09:39 AM »
      Use administrator credentials for the remote computer.
      how do i get domain admin rights?

      foxidrive



        Specialist
      • Thanked: 268
      • Experience: Experienced
      • OS: Windows 8
      Re: Shutdown command
      « Reply #3 on: October 13, 2013, 04:12:48 AM »
      how do i get domain admin rights?

      From your domain admin, at a guess. :)

      Vasco Rodrigues

        Topic Starter


        Starter

        • Experience: Familiar
        • OS: Windows 7
        Re: Shutdown command
        « Reply #4 on: October 13, 2013, 05:47:56 AM »
        From your domain admin, at a guess. :)
        how do i know who is my domain admin   ???

        foxidrive



          Specialist
        • Thanked: 268
        • Experience: Experienced
        • OS: Windows 8
        Re: Shutdown command
        « Reply #5 on: October 13, 2013, 06:12:55 AM »
        how do i know who is my domain admin   ???

        Code: [Select]
        @Echo Ask your IT department

        Vasco Rodrigues

          Topic Starter


          Starter

          • Experience: Familiar
          • OS: Windows 7
          Re: Shutdown command
          « Reply #6 on: October 13, 2013, 10:26:33 AM »
          In other not related issue, im trying to make a game in Batch but my Healing "Command" isnt working:
          Code: [Select]
          :Heal
          echo You try to heal yourself
          if %mana% geq 10 (
          set /a mana=%mana%-%Random% %%10 +5
          set /a hp=%hp%+%Random% %%20 +5
          echo %name% Heals himself
          echo %hp%
          pause
          cls
          goto Monster
          ) else (
          echo You dont have enough mana!(you need atleast 10)
          )
          pause
          cls
          goto Battle
          i think is the random part that is wrong
          Rest of the code:
          Code: [Select]
          @echo off
          set hp=75
          set maxhp=100
          set monhp=70
          set maxmonhp=100
          set mana=25
          set maxmana=50

          :Start
          cls
          echo What is thy name
          set /p name=
          echo So your name is %name%!
          pause
          cls
          echo Would you like to battle THE GREAT ORC?
          set /p battle=
          if %battle%==yes or %battle%==Yes or %battle%==y (
          goto Battle
          ) else (
          exit )

          :Battle
          cls
          echo %name% it is your move! What would you like to do?
          echo %name% HP %hp%/%maxhp% MANA %mana%/%maxmana%
          echo THE ORC %monhp%/%maxmonhp%
          echo.
          echo Press S for Slash
          echo Press H for Heal
          echo Press M for Magic regen

          set /p attack=
          if %attack%==s goto Slash
          if %attack%==h goto Heal
          if %attack%==exit exit
          if %attack%==m (
          goto Mgrg
          ) else (
          goto Battle )

          :Slash
          echo You Slash the Orc
          set /a monhp=%monhp%+%Random% %%15 + 10
          goto Monster

          :Heal
          echo You try to heal yourself
          if %mana% geq 10 (
          set /a mana=%mana%-%Random% %%10 +5
          set /a hp=%hp%+%Random% %%20 +5
          echo %name% Heals himself
          echo %hp%
          pause
          cls
          goto Monster
          ) else (
          echo You dont have enough mana!(you need atleast 10)
          )
          pause
          cls
          goto Battle

          Lemonilla



            Apprentice

          • "Too sweet"
          • Thanked: 70
          • Computer: Specs
          • Experience: Experienced
          • OS: Windows 7
          Re: Shutdown command
          « Reply #7 on: October 13, 2013, 01:55:57 PM »
          Make a new thread.
          Quote from: patio
          God Bless the DOS Helpers...
          Quote
          If it compiles, send the files.