119,202 questions
0
votes
0
answers
22
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
36
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-...
-7
votes
0
answers
45
views
Loop through variable content in Powershell [duplicate]
If the contents of a variable is :
@{authAccessToken=; azureResourceManagerConnection=; env=; keyvaultName=; location=; outresourceIdDatabricks=; outworkspaceUrlDatabricks=; partnerId=; ...
Best practices
0
votes
0
replies
29
views
Refreshing Power BI Data within SemanticModel using ServicePrinicipal connection
I have a Power BI Report and the relevent Semantic Model that gets data from a A SharePoint and Data Bricks SQL Warehouse using my credentials. Can i change the data refrshing and semantic refresh ...
0
votes
1
answer
84
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 ...
0
votes
0
answers
101
views
PowerShell using PnpOnline functions
I am trying to find some documentation on the properties returned by these various PnPOnline functions. I have no problem calling them, but for example, what values can Get-PnPList actually return to ...
2
votes
1
answer
69
views
Parsing error: Unable to add .ASS to .MP4 using FFMPEG and Powershell
I have an issue with adding an ASS file to MP4 file using FFMPEG in Powershell.
This is my function:
# Function to add ASS subtitles to video
function Add-Subtitles-To-Video {
param ($videoPath, $...
2
votes
2
answers
125
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 ...
3
votes
2
answers
170
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 ...
2
votes
2
answers
113
views
Right way to throw errors using $PSCmdlet.ThrowTerminatingError()
What's the right way to throw a generic error using $PSCmdlet.ThrowTerminatingError()?
My (possibly flawed) understanding is that inside an advanced function, such as one using the CmdletBinding, we ...
1
vote
1
answer
128
views
Build multiple configurations in one script
I have a solution file (c# projects) that has several configurations. Each configuration sets a different target framework (from net48 to net10.0-windows). The issue is that in Visual Studio when I ...
Best practices
3
votes
3
replies
75
views
Identify type of command: alias, command, function
How can I identify what a command is in PowerShell? Is it a function, alias, command, or something else?
For example, the PSWindowsUpdate module seems to include a command WUList which does not ...
Advice
2
votes
4
replies
145
views
PowerShell Command Syntax
i started recently to learn PowerShell and a friend suggested for me a book named 'Learn PoweShell in a Month of Lunches' , the author show command like
\>Get-Help Get-Item
\>Get-Help Get-...
1
vote
1
answer
79
views
If statement not working as intended in powershell script
The code below is to debloat workstations. It works, but the if statement does not work as intended. It removes the app installed, but writes removal failed instead of removal successful.
# Loop ...
1
vote
1
answer
152
views
Improve the performance of code that builds an object by comparing two objects
I need a faster way to build one object from another in PowerShell.
I have a PowerShell array of Strings with 10,000 hostnames:
$hostnames = @("server1","server2","server3&...