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.
400
questions
0
votes
2
answers
21
views
Searching all XMLs in a folder that are missing a specific tag, Windows 10?
I have a folder with hundreds of XML files. I Need to search all (*.xml) files to find files that do not contain a specific tag, and somehow present me the list of those XML files missing the tag.
-1
votes
0
answers
27
views
Powershell (Win) stopped working with Win32 internal error
I know this question is unmistakably generic, sorry for that. Sadly PS stopping to function does not come with a simple "Powershell stopped working, here's why." kind of error. So at the ...
2
votes
1
answer
41
views
Terminal Powershell differences
When I type dir /A into terminal I get desirable output, but when I type the same to Powershell i get
dir : Cannot find path 'C:\A' because it does not exist.
+ CategoryInfo : ObjectNotFound: ...
0
votes
1
answer
61
views
winget not finding OpenSSL
I want to install OpenSSL using winget and am following https://winget.run/pkg/ShiningLight/OpenSSL (installing Git is not an option, I have gone through https://stackoverflow.com/questions/50625283/...
-1
votes
1
answer
36
views
When updating Wsl I Get an Error
enter image description hereenter image description hereI have Windows 11 machines
I installed docker and after installing I got an error "wsl --update"
And when I run the code wsl --update ...
0
votes
1
answer
65
views
How to solve a final pb when merging a series of .ts file with concat command of FFmpeg?
I had dowloaded some videos from the Internet, feaw years ago…
I obtained many files: a series of files in .ts
In my example: a series of 306 files named from segment1_4_av.ts to segment306_4_av.ts
A ...
0
votes
1
answer
50
views
I can't insert long paths in the "Target" box in Windows 11 shortcut properties (might consider using vbs or batch)
I'm trying to create a Windows shortcut that will be put in my startup folder. The shortcut starts a program (Discord), but with a 1-minute delay. I'm doing this because my (ancient) core i3-2100 PC ...
0
votes
1
answer
32
views
Getting the Display Version of the current computer with Powershell7 (I.E.: 22H2). But ReleaseId conflicts with DisplayVersion
I've read a bunch of threads on here about this and I want to get the Windows edition (22H2 for instance).
This is the code:
$ReleaseID = (Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\...
-1
votes
1
answer
117
views
Output of hostname -I not making sense to me
I'm trying to understand networking, and I've noticed my router's local IP address is 10.0.0.1, but my computer's local ip address (found from hostname -I in a WSL shell) is 172,17.xx.xx. When I run ...
0
votes
1
answer
33
views
How to mimic Windows Security UI rights via Powershell
I have a folder that contains bunch of *.exe and *.dll files (not necessarily all in root) and I want to Forbid Write to {S-1-1-0} (Everyone) on all these files.
I've tried:
Get-ChildItem -Path c:\my\...
0
votes
0
answers
71
views
How to install SQL Server Developer edition on Windows 2022 Azure Pipelines?
Installing SQL Server Express on Windows 2022 Azure Pipelines is easy.
Here is my code:
function Test-IsAdmin {
$currentUser = [Security.Principal.WindowsIdentity]::GetCurrent()
$principal = ...
0
votes
1
answer
33
views
Windows Terminal, Command Prompt, and PowerShell cannot change directory to or start in a folder with Asian characters
I'm on Windows 10.
I have this problem where I'm unable to start the terminal (which I set up to start with Powershell), or changing directory to this folder:
D:\Scanlation\神作家・紫式部のありえない日々\Upscaled\[...
-1
votes
0
answers
29
views
Powershell script isn't splitting a video into multiple videos for each chapter
I made a script in pwsh to split video files into separate files for each chapter:
Get-ChildItem -Recurse -Include *.mp4, *.mkv, *.avi, *.mov, *.ts | ForEach-Object {
$ffmpegOutput = &...
0
votes
1
answer
41
views
Run script elevated as different user on remote machine
I have a Windows Scheduled Task that runs a Powershell script file A.ps1. This task runs mostly locally and does NOT need elevation/administrator access. However, a few steps need to run on a remote ...
0
votes
0
answers
39
views
How to remove escape sequence from VSC terminal?
Just recently these escape sequences have been showing up on my PowerShell terminal inside VS Code. I've attached a picture of what this looks like:
However, inside the PowerShell terminal itself, it ...