119,187 questions
2
votes
1
answer
69
views
Why does a string of my machine name vs [Environment]::MachineName.ToString() produce different outputs in my function?
Why do I have two different output values when I pass a string of my machine name vs using [Environment]::MachineName.ToString()? Somehow the SHA256 sees them differently and I need them to be seen ...
1
vote
1
answer
79
views
Powershell error: The expression after '&' in a pipeline element produced an object that was not valid
I have a script I have created that throws the following error:
The expression after '&' in a pipeline element produced an object that was not valid. It must result in a command name, a script ...
-1
votes
0
answers
88
views
Ffailing to build OpenSSL from msquic via PowerShell during cross compiling due to perl errors [closed]
I am on a Windows machine trying to cross-compile with my cross-compiler to use x86_64 for a Linux target machine. I am trying to use a cross compiler to build msquic via a PowerShell command which ...
-2
votes
1
answer
125
views
Ghosted highlighting in vs code powershell terminal
Look at the images. After the first word of any command, anything written after that is getting highlighted with a grey background (depends on the theme though and it looks worst on lighter themes as ...
2
votes
0
answers
86
views
Find the same not-installed Windows updates as the UI with PowerShell
Here is what Windows Settings shows me:
I try to get the same list using PowerShell. Here is my script
$session = New-Object -ComObject 'Microsoft.Update.Session';
$searcher = $session....
2
votes
2
answers
94
views
PowerShell : how to zip directory based on file name
I have this functioning code that looks in a directory, and zips up all .PDF files it finds into a ZIP archive, and then deletes the original .PDF files:
# Get all files in the directory (non-...
-2
votes
0
answers
60
views
How do Saviynt runbooks and automation workflows work in real-world scenarios? [closed]
I’m currently exploring Saviynt Identity Cloud and trying to gain a deeper, practical understanding of how its runbooks, triggers, and automation capabilities work in real-world enterprise ...
1
vote
1
answer
69
views
InstallShield 2025 Basic MSI - Pass Property to PowerShell deferred custom action?
For InstallShield Premier 2025 and a Basic MSI setup, can someone provide a working sample for passing a Property like TEST_ID to a PowerShell script custom action run as a Deferred in System Context.
...
1
vote
0
answers
72
views
Flutter on Windows: "Building with plugins requires symlink support" and start ms-settings:developers not working in PowerShell
I am working on a Flutter project on Windows 11.
My Flutter version is:
Flutter 3.41.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision db50e20168 (3 weeks ago) • 2026-03-...
Best practices
0
votes
0
replies
46
views
Refreshing Power BI Data within SemanticModel using ServicePrinicipal connection
I have a Power BI Report and the relevant Semantic Model that gets data from a SharePoint and Data Bricks SQL Warehouse using my credentials. Can i change the data refreshing and semantic refresh part ...
0
votes
1
answer
100
views
How to run 2 commands at once, in parallel, auto-executing each command in a pane. For PowerShell but looking for a cross-platform terminal workflow
About running 2 commands at once, for example to run 2 console programs with 1 single command, in PowerShell, one way to do this is with a command in the next format, just by adding ; between each of ...
1
vote
0
answers
204
views
What are all the values that the PowerShell Patterns and Practices cmdlet Get-PnPList actually returns? [closed]
I am trying to determine all the properties returned by various PnPOnline cmdlets in PowerShell. I have no problem calling them, but for example, I want to know all the possible values that Get-...
2
votes
1
answer
86
views
How do I escape this FFmpeg command's filepath in Powershell?
I have an issue with adding an ASS file to MP4 file using FFmpeg in Powershell:
# Function to add ASS subtitles to video
function Add-Subtitles-To-Video {
param ($videoPath, $assPath, $outputPath)
...
2
votes
2
answers
135
views
Creating clickable link to text file in Powershell
I'd like to create a hyperlink to a text file in a Powershell script that'll be run in Windows terminal. I've made it work by hardcoding the link, ex. file://c:/textfile.txt but I'd like to compile ...
4
votes
2
answers
236
views
Powershell can't delete file it opened
I wrote this code below. and it is throwing the error
Cannot remove item BLAHBLAH: The process cannot access the file 'BLAHBLAH' because it is being used by another process.
As SOON as the overall ...
