Questions tagged [powershell]
Windows PowerShell is a command line shell and scripting language for Windows that supersedes the CMD.exe shell and batch language. PowerShell is also an automation engine for Windows that provides functionality similar to Windows Script Host and VBScript.
6,131 questions
0 votes
1 answer
66 views
How to auto-skip already unzipped files with Windows Powershell
We have a script for unzipping batches of files in subfolders into their own folders within said subfolders that we receive for work, but sometimes we get items already in an unzipped folder named for ...
3 votes
0 answers
73 views
How can I run a ps1 script from the context menu in Windows Terminal - but ALWAYS open a new WT window instead of the script running in a new tab?
I have set up some right-click context menu entries for .ps1 files to run PowerShell scripts in Windows Terminal instead of ConHost. Screenshot: So I can run a one-off script elevated or un-elevated ...
0 votes
0 answers
29 views
Error adding IPP printer with powershell
I am trying to add an IPP printer with powershell using the following command. Add-Printer -IppURL "ipps://10.0.0.30:631/printers/QC_Lab" I get an error saying one of the parameters are ...
1 vote
1 answer
35 views
how do I get activate.bat to work using pycharm powershell as terminal [closed]
I'm trying to set up virtual env for pytest using pycharm which is using powershell for the terminal and the activate.bat is not recognized and neither is the .\activate.bat it suggests
0 votes
1 answer
163 views
Install OBS VirtualCam silently
I have OBS VirtualCam installer taken from here: https://github.com/CatxFish/obs-virtual-cam/releases and I want to install it silently from PowerShell script like this: - powershell: | ...
1 vote
2 answers
82 views
Consolidate csv lines
I need to take multiple line items of a csv file and consolidate them into fewer lines while maintaining the information, as in the tables shown below: Turning this: Fave Fruit Student Apples Dave ...
1 vote
1 answer
50 views
Export-WindowsImage Loop Not working with SWM files but works with WIM files
I needed to update some drivers on some Win11 installation thumb drives we have. These were made via the Media Creation Tool from MS so, these aren't some fancy homemade images. The thumb drives ...
1 vote
1 answer
181 views
How to remove uninstalled app from winget list?
So I am having this problem with winget on Windows 11 where it shows programs I have uninstalled still being supposedly installed. Uninstalling them via settings > installed apps only results in ...
-1 votes
1 answer
110 views
How to Set-ExecutionPolicy to LocallySigned?
I seek an Execution Policy which requires local scripts to be signed, and prevent downloaded scripts from being executed. The goal is to disallow unapproved execution of downloaded scripts, and to ...
1 vote
0 answers
75 views
Invisible text displayed in Windows 10 PowerShell
I've noticed that when using Windows PowerShell (to SSH into a computing cluster), sometimes parts of the text displayed in the terminal are missing or invisible -- if I try to select it with my ...
1 vote
1 answer
68 views
VS Code Powershell - In fullscreen, Terminal text moves upward when reopening
I'm using the powershell terminal on VS Code. I fullscreen the terminal because I can see more stuff that way. The text of the terminal moves upward after closing and reopening, but the terminal ...
0 votes
1 answer
124 views
How can I use PowerShell scripting to rename these files?
I am new to Powershell and i need help in renaming multiple video files. So a folder contains files named as below; 1. Episode S01E01.mkv 2. Episode S01E02.mkv 3. Episode S01E03.mkv … … ...
1 vote
1 answer
130 views
How to remove old Unknown USB devices from the list of COM ports?
I have a Windows 10 Enterprise LTSC device to which I need to connect and disconnect different USB devices. I can hear the sound of connect/disconnect and I can see the USB device appear/disappear ...
4 votes
1 answer
166 views
VS Code integrated terminal: How to access suggest widget and PSReadLine MenuComplete via Ctrl+Space?
In VS Code's integrated terminal, Ctrl+Space by default triggers the terminal's suggest widget, but this doesn't show anything after e. g. <command> - or [<type>]:: although the PowerShell ...
2 votes
0 answers
188 views
How to allow Powershell Profile Script to run unsigned when Profile is stored on the Network
A long time ago, the office changed our Network Profile to be stored on a file server, rather than locally (makes complete sense), so they're now in a path along the lines of \\<Domain>.local\...