Windows 10: 10 CMD commands that can be executed with PowerShell

Discus and support 10 CMD commands that can be executed with PowerShell in Windows 10 News to solve the problem; [ATTACH] PowerShell is Microsoft’s own alternative to their own Command Prompt. Earlier, Microsoft announced that they will be open sourcing PowerShell... Discussion in 'Windows 10 News' started by WinClub, Dec 24, 2018.

  1. WinClub New Member

    10 CMD commands that can be executed with PowerShell


    10 CMD commands that can be executed with PowerShell Backup-Device-Drivers-PowerShell-100x100.jpg
    PowerShell is Microsoft’s own alternative to their own Command Prompt. Earlier, Microsoft announced that they will be open sourcing PowerShell and will be bringing it to recent versions and different Linux flavors like Ubuntu, CentOS, Red Hat Enterprise Linux, OpenSUSE, [...]

    This post 10 CMD commands that can be executed with PowerShell is from TheWindowsClub.com.

    read more...
     
    WinClub, Dec 24, 2018
    #1
  2. wiens Win User

    Not all command lines of CMD are working in Powershell

    In build 14971.1000 Microsoft has changed Command prompt with Powershell in the right-click context Startmenu, see screenshot below.

    Batch files (.bat or .cmd) will also not run properly in Powershell because not all command lines of HELP are working in the Powershell. How do we run batch (.bat) files with command lines that aren't supported in it.

    Consider you have a file "test.bat" on the root of the D: dirve. You can't run in it Powershell by entering "test.bat" on the D: drive. The term will not be recognized. You have to write "D:\test.bat" to run it in Powershell. That is strange behaviour. In
    the old CMD you didn't had to add "D:\" path in the line to run it in the opened directory.

    I know CMD can still be executed in the Startmenu of build 14971.1000, but it looks they are changing this behaviour. It is now hidden from the contextmenu by default.

    For those who prefer to use Command Prompt, you can opt out of the WIN + X change by opening Settings > Personalization > Taskbar, and turning “Replace Command Prompt with Windows PowerShell in the menu when I right-click the Start button or press Windows
    key+X” to “Off”.
     
    wiens, Dec 24, 2018
    #2
  3. tcebob Win User
    Can't run command in PowerShell but OK in Cmd


    I tried the suggested command and it does work manually in Power Shell. But Task Scheduler chokes on it.


    10 CMD commands that can be executed with PowerShell [​IMG]


    If i say "Yes" it breaks up the command string to "%C:\program" with the rest of the command as an argument.
     
    tcebob, Dec 24, 2018
    #3
  4. wiens Win User

    10 CMD commands that can be executed with PowerShell

    Not all command lines of CMD are working in Powershell

    Since Powershell is the main command tool in Windows 10 Insider build 14971.1000 and the CMD has gone in the background I am missing some command lines from "HELP", like "SET" in the Powershell. The HELP command in Powershell is also not working. So as
    said, not all the command lines are not working in PowerShell. Also specific information about the command using for "COPY /?" for more information about the command line etc is also not working in Powershell. I will miss these when Powershell will be the
    only command tool.
     
    wiens, Dec 24, 2018
    #4
Thema:

10 CMD commands that can be executed with PowerShell

Loading...
  1. 10 CMD commands that can be executed with PowerShell - Similar Threads - CMD commands executed

  2. Powershell command execution in the background

    in Windows 10 Gaming
    Powershell command execution in the background: Hi,We can see powershell transcript generated however how can we find what process triggered that execution? It seems to be generated hourly. What can be seen in the transcript is that it is running "PS>Get-Process Select-Object -Property ProcessName"The transcript output as...
  3. Powershell command execution in the background

    in Windows 10 Software and Apps
    Powershell command execution in the background: Hi,We can see powershell transcript generated however how can we find what process triggered that execution? It seems to be generated hourly. What can be seen in the transcript is that it is running "PS>Get-Process Select-Object -Property ProcessName"The transcript output as...
  4. CMD command doesn't work on PowerShell

    in Windows 10 Gaming
    CMD command doesn't work on PowerShell: I'm trying to call 'cmd' inside Windows PowerShell console in order to get to work immediately with Command Prompt mode, but I got this message instead:I know I can use Command Prompt outside of PowerShell, but this is a special case.Any suggestions about how can I revert...
  5. CMD command doesn't work on PowerShell

    in Windows 10 Customization
    CMD command doesn't work on PowerShell: I'm trying to call 'cmd' inside Windows PowerShell console in order to get to work immediately with Command Prompt mode, but I got this message instead:I know I can use Command Prompt outside of PowerShell, but this is a special case.Any suggestions about how can I revert...
  6. Most windows executable commands not recognized by CMD and PowerShell.

    in Windows 10 Gaming
    Most windows executable commands not recognized by CMD and PowerShell.: Out of nowhere commands which involve executables like explorer.exe, msedge.exe, mspaint.exe, where, etc. are not working in command prompt or PowerShell. The output of the command prompt seem to be quite simple: ```C:\Users\grass>where 'where' is not recognized as an...
  7. Most windows executable commands not recognized by CMD and PowerShell.

    in Windows 10 Software and Apps
    Most windows executable commands not recognized by CMD and PowerShell.: Out of nowhere commands which involve executables like explorer.exe, msedge.exe, mspaint.exe, where, etc. are not working in command prompt or PowerShell. The output of the command prompt seem to be quite simple: ```C:\Users\grass>where 'where' is not recognized as an...
  8. Open Cmd via PowerShell, command?

    in Windows 10 BSOD Crashes and Debugging
    Open Cmd via PowerShell, command?: Please i need to open cmd win + r and so i know i need to know how to open it via powershell pls (.bat and so i know it needs to be opened via powershell. Pls PowerShell command to open cmd? Cmd über PowerShell öffnen, Befehl?
  9. Can not execute/run FCAT-VR in powershell or CMD

    in Windows 10 Support
    Can not execute/run FCAT-VR in powershell or CMD: First posting and I do hope thet it is in the right section, if not feel free to move this to the proper one. My problem: I'm trying to execute FCAT VR (not FCAT) in Win10-64 pro as can be found at the Nvidia site https://www.geforce.com/whats-new/gu...d-how-to-guide...
  10. Execute Powershell command on remote computer

    in Windows 10 Network and Sharing
    Execute Powershell command on remote computer: Hello, I would like to execute a PowerShell command on a remote computer. The command is the following: Invoke-Command -ComputerName 10.40.27.174 -ScriptBlock { Get-ChildItem C:\ } -credential User I get the following error: [10.40.27.174] La connexion au serveur...