Windows 10: run a powershell command like a batch file
Discus and support run a powershell command like a batch file in Windows 10 Installation and Upgrade to solve the problem; I am working as a temp on a Windows 7 to Windows 10 migration team. We've encountered a problem with some software, and a solution has been found that... Discussion in 'Windows 10 Installation and Upgrade' started by SlickRCBD, Jul 25, 2020.
Thema:
run a powershell command like a batch file
Loading...
-
run a powershell command like a batch file - Similar Threads - run powershell command
-
Batch File Command???
in Windows 10 GamingBatch File Command???: I want to run a batch file that starts a backup program, but does not execute the next command until that program completes? How do I do this? https://answers.microsoft.com/en-us/windows/forum/all/batch-file-command/3af2ce6b-ace3-43cb-b6fb-5cbff8998736 -
Batch File Command???
in Windows 10 Software and AppsBatch File Command???: I want to run a batch file that starts a backup program, but does not execute the next command until that program completes? How do I do this? https://answers.microsoft.com/en-us/windows/forum/all/batch-file-command/3af2ce6b-ace3-43cb-b6fb-5cbff8998736 -
Starting batch file only opens command prompt versus running the batch file?
in Windows 10 GamingStarting batch file only opens command prompt versus running the batch file?: I'm trying to run one batch file, then another. Instead of running the 2nd batch file, it just opens another black screened command prompt with the name of the batch file as the first line in the command prompt? Any ideas why?... -
Starting batch file only opens command prompt versus running the batch file?
in Windows 10 Software and AppsStarting batch file only opens command prompt versus running the batch file?: I'm trying to run one batch file, then another. Instead of running the 2nd batch file, it just opens another black screened command prompt with the name of the batch file as the first line in the command prompt? Any ideas why?... -
Syntax for Batch file &/or powershell script to run multiple commands
in Windows 10 SupportSyntax for Batch file &/or powershell script to run multiple commands: I wanted a batch file to run the following commands: Start Powershell as administrator cd "C:\Program Files\Macrium\Reflect" regsvr32 RContextMenu.dll regsvr32 RShellEx.dll I can get as far as: Code: echo Start "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" cd... -
Running PowerShell script as a batch file
in Windows 10 Network and SharingRunning PowerShell script as a batch file: Can I run the Power Shell line: "C:\Windows\System32>get-appxpackage *3dbuilder* | remove-appxpackage" from a .Bat file? ***Original title: Removing bloatware***... -
Run Multiple Commands In Powershell?
in Windows 10 Performance & MaintenanceRun Multiple Commands In Powershell?: Hi, I have three drives in my PC. Two of them are SSD's and the third one is a mechanical HDD. I like to optimize them using Powershell. However, as it stands now. I'm running the commands separately for each of my drive, i.e. 1.) Optimize-Volume -DriveLetter C -ReTrim... -
How to run batch file with powershell
in Windows 10 Network and SharingHow to run batch file with powershell: I created a basic batch file that uses "net share" to share a local path. I saved the batch file. When I double click the file I get "access is denied"... note, I am logged on as a admin. Anyways... I figure it has to be run using power shell. I do not know much about... -
Run Multiple Commands In Powershell?
in Windows 10 Performance & MaintenanceRun Multiple Commands In Powershell?: Good job, @lx07. Of course, you had the benefit of knowing the OP wanted to run the same command on 3 targets. Had I been armed with that same information, I might have made that same suggestion, too. That's why we're better working together than working individually. --Ed--