Windows 10: Powershell docker image, Restart-Computer cmd missing 'ComputerName' parameter

Discus and support Powershell docker image, Restart-Computer cmd missing 'ComputerName' parameter in Windows 10 Gaming to solve the problem; Trying to remotely restart a windows computer with powershell and Restart-Computer command. Powershell is running from a docker container with... Discussion in 'Windows 10 Gaming' started by freand0203, Dec 2, 2024.

  1. Powershell docker image, Restart-Computer cmd missing 'ComputerName' parameter


    Trying to remotely restart a windows computer with powershell and Restart-Computer command. Powershell is running from a docker container with mcr.microsoft.com/powershell image, and from within the docker container i am running a powerhell script. The script is also tested on a windows 11 machine with powershell and it works as expected.Output from the script running from powershell in docker, PowerShell 7.4.2.PS /> /root/scripts/restart.ps1Restart-Computer: /root/scripts/restart.ps1:9Line 9 Restart-Computer -ComputerName&n

    :)
     
    freand0203, Dec 2, 2024
    #1

  2. CMD and PowerShell Closing after a couple of seconds, CMD and Powershell closing.

    My Laptop is fine i didnt download any viruses, Didnt mess with system files nor modify it. After a normal restart, A message that pops up for half a second saying "This app wont work on this computer" Or something like that (The messages appears and disappears too fast its hard to make out the text) and the cmd icon appears for a split second in the taskbar. I searched for fixes and i got told to use the sfc /scannow command to scan for possibly corrupted or missing files.

    I opened CMD and ran the command but it just closes after a few seconds. I tried not inputing any commands and it still did. I tried running it on Powershell and turns out it also closes. I recorded a video of me doing it.

    And I have followed several steps to fix my laptop, One of them is like :

    1. Follow the instructions on this site You Can See, the instructions I've followed ,Like :

    • download and install the tool called Autoruns.
    • Download Media Creation Tool from Microsoft.
    But, after I followed this, there is still no change on my laptop.

    And how can i recover the command processor folder and does that help with my with cmd problem? If not, How can i fix my cmd?
     
    Muhammad Fathur Rahman Wijaya, Dec 2, 2024
    #2
  3. ryanly Win User
    GPU-Z what command line parameter ?

    Current /? (-?) or / help (-help) parameter is invalid
     
    ryanly, Dec 2, 2024
    #3
  4. Powershell docker image, Restart-Computer cmd missing 'ComputerName' parameter

    CMD and PowerShell

    Try these first to see if they work:

    Open Start, type: CMD

    Right click CMD

    Click Run as administrator

    Type in at the prompt OR Copy and Paste these one at a time : (Hit enter after each)

    Dism /Online /Cleanup-Image /CheckHealth

    Dism /Online /Cleanup-Image /ScanHealth

    Dism /Online /Cleanup-Image /RestoreHealth

    Also run the System File Checker utility:

    Open Start, type: CMD

    Right click CMD

    Click Run as administrator

    At the Command Prompt, type: sfc/scannow

    This will check for any integrity violations

    Restart your system

    Also, press Windows key + R

    Type: optionalfeatures.exe

    Hit Enter

    Scroll to the bottom

    Uncheck Windows PowerShell

    Click OK

    Restart if prompted

    press Windows key + R

    Type: optionalfeatures.exe

    Hit Enter

    Scroll to the bottom

    Check Windows PowerShell

    Click OK

    Restart if prompted
     
    Andre for Directly, Dec 2, 2024
    #4
Thema:

Powershell docker image, Restart-Computer cmd missing 'ComputerName' parameter

Loading...
  1. Powershell docker image, Restart-Computer cmd missing 'ComputerName' parameter - Similar Threads - Powershell docker image

  2. Powershell docker image, Restart-Computer cmd missing 'ComputerName' parameter

    in Windows 10 Software and Apps
    Powershell docker image, Restart-Computer cmd missing 'ComputerName' parameter: Trying to remotely restart a windows computer with powershell and Restart-Computer command. Powershell is running from a docker container with mcr.microsoft.com/powershell image, and from within the docker container i am running a powerhell script. The script is also tested...
  3. Are Powershell same as CMD?

    in Windows 10 Gaming
    Are Powershell same as CMD?: seems to do the saAME https://answers.microsoft.com/en-us/windows/forum/all/are-powershell-same-as-cmd/0afdbbb0-6edb-4ef2-9b64-07b63e698c55
  4. CMD and Powershell RUSH

    in Windows 10 Network and Sharing
    CMD and Powershell RUSH: Hi mods,My Windows 10 is running cmd and power shell automatically even though I didn't open them. Some errors are popping up and browsers are closing automatically. I captured the picture with my phone because it also freezes my pc mouse. Please help....
  5. Psexec with cmd parameters?

    in Windows 10 Network and Sharing
    Psexec with cmd parameters?: Hi All, I am trying to run a command on a remote computer using psexec, and I can get it to run fine by just calling the .exe, but I also need to have 2 parameters included in the command, but I can't get it to work. Here is my example: I can run this fine: psexec.exe -i...
  6. Powershell with CMD/c to run external command with Parameters

    in Windows 10 Customization
    Powershell with CMD/c to run external command with Parameters: Greeting, I have an old command line application call Commandline.exe. it run with a parameter to check then show the result. but it need extra "Enter" to confirm like: commandline.exe -s 4567890 So I preparing the an answer file which is on an "Enter" crlf...
  7. CMD wmic parameter?

    in Windows 10 Network and Sharing
    CMD wmic parameter?: Good morning, I'm practicing again and I'm facing another problem which I can't solve despite Google. I want to use the "wmic volume get Driveletter" to read the drive letter of a drive named:"test". But I can't get it to set the parameters so that only the drive:test is...
  8. Powershell and cmd no network

    in Windows 10 Ask Insider
    Powershell and cmd no network: I got my windows from school try to install choco package manager or adding the repo to power shell . non are working as its saying that there is no internet on both cmd and powershell tried ping and curl its the same. But my browser and other apps have great network . Is...
  9. Powershell: Add-VpnConnectionTriggerDnsConfiguration missing -AllUserConnection parameter

    in Windows 10 Network and Sharing
    Powershell: Add-VpnConnectionTriggerDnsConfiguration missing -AllUserConnection parameter: I've set up a split-tunnel VPN connection, and am trying to force that connection to use the remote connection's DNS server. To do this, I'm trying to use Add-VpnConnectionTriggerDnsConfiguration in PowerShell. However, the VPN connection is in the Global Phone Book....
  10. CMD and PowerShell

    in Windows 10 BSOD Crashes and Debugging
    CMD and PowerShell: Hi all, I run Windows 10, v 1803. Clicking Start, typing CMD, there is only "Command Prompt (desktop application)". Win key + X shows "Windows PowerShell" and "Windows PowerShell (Admin)". If after Win key+R I choose Windows PowerShell" pops up a message: Same with...