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.

6 votes
1 answer
437 views

Microsoft Edge persistently restores tab groups every time the browser is started, even when the startup setting is configured to "Open specific pages" (custom startup URLs). There is no ...
Mischa's user avatar
  • 101
1 vote
1 answer
143 views

Executive Summary In Windows 11, I need the PowerShell commands (if they exist) which correspond to: Settings -> Time & Language -> Language & Region -> Region (Subheading) -> &...
Daniel's user avatar
  • 301
0 votes
0 answers
15 views

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 ...
user348514's user avatar
1 vote
1 answer
124 views

The following command works in PowerShell: .\bcs.ps1 -sites a.com,b.guide,c.com But produces an error when PowerShell is called from the command prompt. I removed the inner quotes and that doesn't ...
MiscellaneousUser's user avatar
1 vote
0 answers
74 views

I keep getting this error randomly when running some simple powershell scripts I have, for games. Sometimes when I get this error I open and close Windows Terminal and then the script works. Sometimes ...
gyozo kudor's user avatar
0 votes
1 answer
385 views

I'm running the build of a complex Visual Studio solution and one of the error messages is the following: 'pwsh.exe' is not recognized as an internal or external command, operable program or batch ...
Dominique's user avatar
  • 3,227
3 votes
0 answers
53 views

On a Windows 11 (version 10.0.26200.8037) box, the file association for .ps1 (PowerShell script) files is intentionally set to open all files with that extension in a text editor. Thus, double-...
Amazon Dies In Darkness's user avatar
1 vote
0 answers
58 views

I want to use PowerShell to scan C:\ for PDF files excluding the C:\Windows and C:\Program Files folders and copy them to my OneDrive folder. Here is what I have so far. It copies ONLY 1 PDF to ...
kostas m's user avatar
1 vote
0 answers
51 views

I have this Remote Desktop Server, built on Windows Server 2016. The server is booting very slow. And logging in as an RDS user, takes several minutes, waiting on the Printer policy. Now I found a big ...
Around Nijkerk's user avatar
2 votes
1 answer
281 views

In Bash you can prefix a Space to you command to stop command from being added to history git commit -am "message" cp existing.file new.file How to do the same on Windows? A solution for ...
Tom Huntington's user avatar
7 votes
3 answers
445 views

No matter what is shown in the Windows language and region settings (and by extension in Office language/region settings if they are set to match Windows' language), the display language (UICulture) ...
user avatar
0 votes
2 answers
176 views

A newish (Sept) install of win10 Pro 22H2 (OS Build 19045.6466) on new MSI mobo w/ AMD Ryzen 5 5500GT The native Powershell was working fine for awhile. After a period of time when I didn't use it, ...
whawn's user avatar
  • 45
5 votes
1 answer
211 views

How to trigger a command periodically with a precise interval similar to watch -p(about ±0.5ms) in Windows from the command line, except using watch -p itself in Unix-like environments, e.g. Cygwin? ...
145a's user avatar
  • 51
16 votes
4 answers
3k views

How do I (an admin) run a command as a different user, and see their view of the world, on Windows? i.e. what is the equivalent in cmd and/or powershell of the unix commands sudo -u some_user ...
James Tocknell's user avatar
3 votes
1 answer
251 views

Every source I can find recommends terminating a powershell script on error by throwing an exception. This results in a good deal of repetitive and irrelevant diagnostic output. For example, the ...
FreonPSandoz's user avatar

15 30 50 per page
1
2 3 4 5
410