About 26,400 results
Open links in new tab
  1. How do I run multiple commands on one line in PowerShell?

    In a cmd prompt, you can run two commands on one line like so: ipconfig /release & ipconfig /renew When I run this command in PowerShell, I get: Ampersand not allowed. The `&` …

  2. PowerShell equivalent to DISM's /Cleanup-Image in Windows 10

    Apr 17, 2024 · The parameters of Dism commands are an almost 1:1 to the parameters of PowerShell's Dism cmdlets, with the main difference being cmdlets use - instead of /, coupled …

  3. windows - Powershell - execute commands without show them in …

    Jun 10, 2022 · Powershell - execute commands without show them in powershell terminal? Ask Question Asked 3 years, 6 months ago Modified 3 years, 6 months ago

  4. Run Powershell with parameters from batch file - Super User

    Mar 2, 2021 · You can run PowerShell commands from cmd/bat files by passing the commands as an argument to the powershell command. Make you batch file look like this. Note, I have …

  5. Most PowerShell commands not working - Super User

    Dec 30, 2020 · PowerShell 5.1 is the last version of PowerShell 5.x, the next version, is PowerShell Core 6. PowerShell 7 is the current version, replaces both PowerShell 5.1 and …

  6. View full history for powershell, not just current session

    Feb 17, 2019 · 34 Powershell now handily remembers history from previous sessions, and I can get to earlier commands simply by using the up-arrow. What I would like though is to be able …

  7. PowerShell es-es Language Installation: ErrorCode -2147418113

    Sep 21, 2023 · Run a Windows Disk Cleanup with the below PowerShell to pick all the files and system files to cleanup, let it finish, reboot, and then retry the language commands.

  8. PowerShell equivalent to the Unix `which` command?

    Does PowerShell have an equivalent to the which command found in most (if not all) Unix shells? There are a number of times I'd like to know the location of something I'm running from the …

  9. What is the ampersand sign (&) before commands in PowerShell?

    Feb 9, 2023 · You can use the call operator to execute scripts using their filenames. The example below shows a script filename that contains spaces. When you try to execute the script, …

  10. How to run a PowerShell "multiline-oneliner" from cmd.exe?

    Nov 5, 2023 · Easiest solution, put everything inside a .ps1 file, and use powershell -noprofile -file "script.ps1". Although I would recommend a full powerscript over a batch script every day, if …