Skip to main content

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.

0 votes
1 answer
6 views

Why are UTF-8 paths (differently) escaped in outputs across core CLI utilities?

Let's say that I'm a psychopath who names my files like: [-] `{title: "Non-Metadata", id: "s4a4ji"}`{.JSON5}.dir That's my best attempt at making the most hideous plausible ...
RokeJulianLockhart's user avatar
0 votes
1 answer
11 views

PowerShell manipulation of `for` results

A welcome-to-PowerShell guide has the PowerShell equivalents of the commands pwd, cd, ls, find, cp, rm, mkdir, touch, cat, tail, grep, uname, mkfs, ping, man, and cut: https://mathieubuisson.github.io/...
Alex's user avatar
  • 178
0 votes
2 answers
24 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.
Travis Elijah's user avatar
-1 votes
0 answers
29 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 ...
Robin K's user avatar
  • 99
2 votes
1 answer
44 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: ...
konto's user avatar
  • 41
0 votes
1 answer
70 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/...
coda's user avatar
  • 101
-1 votes
1 answer
39 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 ...
mobin's user avatar
  • 1
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 ...
dg lr's user avatar
  • 57
0 votes
1 answer
60 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 ...
Mik's user avatar
  • 11
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\...
fmotion1's user avatar
  • 127
-1 votes
1 answer
118 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 ...
user avatar
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\...
Kirikan's user avatar
  • 33
0 votes
0 answers
74 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 = ...
Daan's user avatar
  • 481
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\[...
DorderaDomo's user avatar
-1 votes
0 answers
30 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 = &...
Lord Lance's user avatar

15 30 50 per page
1
2 3 4 5
27