Skip to main content
The 2024 Developer Survey results are live! See the results

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
0 answers
14 views

Suppress shell output of vscode on poweshell in windows terminal

When I start vscode from powershell command line I get: PS C:\Applications> Code PS C:\Applications> [main 2024-07-24T14:05:08.273Z] update#setState disabled [main 2024-07-24T14:05:08.274Z] ...
Avi T's user avatar
  • 1
0 votes
1 answer
17 views

LibreOffice + Powershell, --convert-to pdf: define "PageRange" value as variable?

I have a Powershell script that calls LibreOffice to write a specified range of pages from a text file (.fodt) to a PDF file. The following command works perfectly and creates a PDF file containing ...
foolishgrunt's user avatar
0 votes
0 answers
26 views

How to Set the Path for `~` in PowerShell

I have a PowerShell session where I defined the following environment variables: HOMEPATH. USERPROFILE. I set both to the same value. For instance, D:\User. I expect, when I run cd ~ in the same ...
Royi's user avatar
  • 569
0 votes
0 answers
28 views

Cannot reclaim hard disk space from Docker in Windows

I have a problem with reclaiming hard disk space used by an application which used Docker for installation. I have read some articles about reclaiming disk space used by Docker by nothing seems to ...
km1234's user avatar
  • 101
0 votes
0 answers
16 views

How to diagnose recurring unwanted language settings in Microsoft Edge? [closed]

Following this question, in my Microsoft Edge browser on Windows, where I have admin privileges, there is a setting in the edge://settings/languages section for "Preferred languages". ...
Foad's user avatar
  • 682
0 votes
0 answers
21 views

Script that checks whether agents running on workstation need idea where to write output [closed]

I want to write a script that checks whether specific software is running on a computer, i manage around 200 computers and I think this is the best way to check whether the necessary security agents ...
Lukas Yčas's user avatar
0 votes
0 answers
27 views

Invoke-PnPTenantTemplate -Verbose will raise this error "Acquiring oAuth token for permission scope Group.ReadWrite.All. Access token acquired"

I have 2 office 365 tenants (Source & Destination). I used this command to get the Source communication site template inside my PowerShell 7.0 version 7.3.4:- PS C:\Users\mohan> Connect-...
microsoftdeveloperdesigner's user avatar
0 votes
1 answer
34 views

How to copy files from one location to another using powershell and skipping files that are corrupt or that cannot be read?

I am looking to use powershell to copy all file from one location to another, however sometimes a file in the current directory is corrupt and cannot be copied. Powershell seems to stop and not ...
Dr_Xunil's user avatar
  • 338
0 votes
1 answer
66 views

Automatically run PowerShell script as administrator

I'm trying to create a script to add/modify some registry keys. To test it I'm modifying simple keys from the power modes on my laptop. However I'm struggling to create a ps1 file that opens with ...
Augusto Barbosa's user avatar
0 votes
1 answer
60 views

Unable to install Powershell 7 on Windows Server 2016 DataCenter .. Error "Access denied"

I have purchased a VM where I connect to it using RDP. now I downloaded 2 files from the web; Microsoft Edge exe file + PowerShell 7.0 MSI file, as follow: - then using the administrator user >>...
microsoftdeveloperdesigner's user avatar
0 votes
1 answer
72 views

How can I run a batch file on macOS?

I've been attempting to install a mod for Elden Ring on Mac, and it uses a batch file to install and launch. I can't seem to get it to run with Wine, receiving these errors: 0074:err:ntoskrnl:...
matthew kuni's user avatar
0 votes
0 answers
47 views

Looking for a way (shell/powershell) to healthcheck socks5 proxies and forward requests to the healthiest one

I have 3 socks5 proxies on 3 different servers, the addresses are as follows: socks5://192.168.100.139:10051 socks5://192.168.9.160:10051 socks5://127.0.0.1:9150 Due to their nature they are ...
Fermichem's user avatar
  • 109
1 vote
0 answers
48 views

Use Powershell to enable "Only allow a magic packet to wake the computer" checkbox in a network adapter?

I would like to have a Powershell script which enables the "Only allow a magic packet to wake the computer" checkbox, which is the bottom one shown in this image: I tried this, but it doesn'...
EllipticalInitial's user avatar
0 votes
0 answers
20 views

How to run a command using command line arguments for Windows Terminal using wt command?

I'm trying to setup my environment. The below code is working, I just need to execute "Code ." in the new tab opened. Tried doing -Command 'code .' , -c 'code .' , but no luck. Here's my ...
sohdata's user avatar
  • 101
1 vote
1 answer
58 views

How to change "Original size" of paper in printer using Powershell

Good day! The standard paper for our users is A4. However, after printer installation, the "Original size" always defaulted to A3 or Letter. Even after trying to save printing preferences ...
Alex's user avatar
  • 39

15 30 50 per page
1
2 3 4 5
395