119,135 questions
Score of 0
2 answers
99 views
Script to check installed version doesn't execute all 'IF' commands
I have the following code that checks remote servers for the version of VM Tools, and acts accordingly depending on which version is installed.
NOTE: I cut the code substantially as it wouldnt let me ...
Score of 0
0 answers
79 views
How to re-launch same Powershell script, with stored credentials
I have this code that has runs fine for some time:
$Arguments = "-executionpolicy bypass -file `"$($myinvocation.mycommand.definition)`" elevated"
write-host "`$Arguments = $...
Score of 0
1 answer
72 views
Can Pandoc convert EPUB to standalone HTML if the text content files are located in the root directory of an EPUB file? [closed]
I use the following command (in PowerShell) to convert EPUB files to standalone HTML files (that is, one EPUB file must be converted to a single, independent, self-contained HTML file):
.\pandoc -f ...
Score of -2
0 answers
100 views
Install Module Command as well as many other command not working [closed]
Recently I've been trying to follow this tutorial https://www.youtube.com/watch?v=__2_41pVHcQ and the first three commands aren't working because I get this error. How to fix this?
PS C:\WINDOWS\...
Score of 2
1 answer
70 views
List non-arbitrary Chocolatey Community packages via OData API
I am trying to communicate with Chocolatey's API to list latest software packages (as part of a PowerShell pipeline I am building). I had a read in their docs, but I don't see a way to query the whole ...
Score of 0
1 answer
67 views
Github Copilot in VS Code do not wait for run_in_terminal commands
Assume the prompt in Github Copilot chat have to call some powershell command. When the command is called the chat does not wait for the result and assumes there was no output. What can be the problem?...
Score of 0
0 answers
113 views
Laravel 13 interactive Artisan prompts immediately exit on Windows 11 (exit code 255)
I'm experiencing a strange issue with Laravel 13 on Windows 11.
Any Artisan command that requires interactive input immediately exits before I can type anything.
For example:
php artisan migrate
...
Score of 1
1 answer
151 views
I do not get powershell results in Windows 11 when queried through TCL exec
in Windows 10 I was using wmic to retrieve the current serial number. Now in Windows 11 I was trying to read it through powershell:
exec powershell.exe -Command "(Get-CimInstance Win32_BIOS)....
Advice
0
votes
2
replies
55
views
scripting/configuring a particular exe in Windows 11 to open as "Run as different user" prompt by default
I am aware of the ways to manually invoke (holding shift as you right-click) this but Im looking for a more user friendly way where this prompt can open by default when a particular exe is opened. ...
Score of 2
2 answers
156 views
PowerShell Write-Host question about behavior not covered in examples and documentation
I'm using Windows 11, and I run my PowerShell script from a desktop icon tied to a command batch file that starts the PowerShell console with the command:
start pwsh.exe -NoExit -NoProfile -...
Advice
1
vote
5
replies
191
views
how do i print without a new line?
i'm learning python for the first time, and it's been going well so far. i have this tutorial website (https://www.w3schools.com/) telling me that i print without a new line like this:
print("...
Score of 0
0 answers
79 views
How can I call my class's method with a switch type parameter? [duplicate]
My class:
# Define a custom class that wraps an array of strings and override the ToString() method.
class StringArray {
static [String] $StartDelimConstant = "[ '"
static [String] ...
Score of 0
0 answers
64 views
True configuration of a PowerShell Light Theme
I have been trying to configure a light theme for PowerShell 7 and thought I had succeeded. These being my settings if the theme is light (my own variable that I give):
Set-PSReadLineOption -BellStyle ...
Score of 1
1 answer
99 views
Ansible execute PowerShell script with admin privileges
In our project, we have a PowerShell script that is on all our remote machines to active or deactivate specific firewall rules. We want to trigger this script with Ansible.
We are trying to do it like ...
Score of -1
1 answer
83 views
mvn not resolved in IntelliJ PowerShell
Why doesn't it work? In CMD / Powershell, it works. Maven's bin is included in PATH. I invalidated caches and restarted the IDE, it didn't help.
Bundled Maven 3.9.11. IntelliJ 2026.1.
mvn -version / ...