Skip to main content

All Questions

Tagged with
0 votes
0 answers
34 views

When does "Date modified" change for files in Windows Explorer as I want to use it in Powershell? [duplicate]

I'd like to understand the behaviour of the "Date modified" in Windows Explorer. There is a process which syncs folders with csv files beetween a data provider and a network share. I'm ...
Hisager's user avatar
  • 37
1 vote
1 answer
21 views

PowerShell Script to Enable/Disable WiFi or Bluetooth Using WinRT APIs

I created a PowerShell script to programmatically enable or disable WiFi or Bluetooth radios on a Windows system using the Windows.Devices.Radios namespace and WinRT APIs. The script handles the ...
Carsten's user avatar
  • 2,125
0 votes
1 answer
18 views

How to Toggle Airplane Mode in Windows Using PowerShell?

I want to toggle airplane mode in Windows programmatically using PowerShell. After some research, I found that this can be done through COM interfaces and native Windows APIs. Below is a script I’ve ...
Carsten's user avatar
  • 2,125
0 votes
0 answers
22 views

Script Execution from PowerShell ISE vs. Run with PowerShell Gives Different Screen Sizes for Multiple Displays

My laptop is connected to two additional HDMI monitors of different models. The PowerShell script reports sizes and positions of the three display screens. The display working areas are reported ...
PS4streaming's user avatar
1 vote
1 answer
32 views

Change the default text editor for Powershell to Notepad++

I want to use Notepad++ instead of Notepad to edit my Pod configurations in Kubernetes. kubectl edit pods my-pod I tried to change the EDITOR environment variable, but I am getting all kinds of errors ...
Subzero123's user avatar
2 votes
3 answers
63 views

How to pass environment variables to Start-Process using ArgumentList?

I'd like to be able to pass environment variables from one PowerShell process to another. I have an "entrypoint" script, let's call it Script1.ps1. From Script1.ps1, I would like to pass an ...
jkix's user avatar
  • 502
-1 votes
0 answers
19 views

Why does VS Code's integrated terminal hide some error popups?

I just started working with VSCode and C++ (on Windows). I just compiled a program, and when I try to execute it form a integrated Powershell terminal, nothing happens, and I get no visible errors, ...
LoneCodeRanger's user avatar
-4 votes
0 answers
54 views

Windows 11 Script to change volume [closed]

I'd like to write a script that changes the master volume of Windows first to 0%, then to 25%, then closes. I want to place it in the startup folder, so whenever I start my PC, the volume gets ...
alex's user avatar
  • 593
-3 votes
0 answers
29 views

How to have Powershell script send an email only on Failure [closed]

I found an AD Health script that runs some AD health checks. How can I have the script send an email only if one or more of the checks fail? <# .SYNOPSIS Get-ADHealth.ps1 - Domain ...
winsysadmin's user avatar
1 vote
0 answers
26 views

Build a hierarchy of Windows features for Windows 10 and 11 using PowerShell

NOTE: This question is specifically about Windows 10 and 11, not Windows Server. To get a list of Windows features on a given Windows 10 or 11 machine I know I have to use Get-WindowsOptionalFeature -...
Simon Elms's user avatar
  • 19.5k
-4 votes
1 answer
59 views

Restart service quietly [closed]

I have an application where i need to restart the service for that application in windows 10 every hour. Is there a powershell script or a background restart of some sort that can be user to restart ...
overhauler's user avatar
-3 votes
0 answers
41 views

File dialog not opening in Excel and Word [closed]

I don't know why if I'm trying to select a file or even try to save as then file dialog starts loading for a long time and I guess Word get crashed, due to this I'm not able to do my work. Let me know ...
VKK's user avatar
  • 27
1 vote
1 answer
38 views

Powershell Move-Item fails to move contents of current directory to new subdirectory

I am an absolute novice and have tried to resolve this issue following a variety of tuts and how-tos as well as ChatGPT assistance to no avail. My objective is to reorganize a locally downloaded ...
wrx20l's user avatar
  • 13
2 votes
1 answer
64 views

Is there an event corresponding to the start of a new process that I can subscribe to without administrative privileges?

The following code starts conhost.exe which, in turn, starts a new instance of pwsh.exe. Process start events are filtered until the pwsh.exe process whose parent is that instance of conhost.exe is ...
alx9r's user avatar
  • 4,174
2 votes
1 answer
75 views

How to List Files in an ISO Image Without Mounting It?

I'm working on a script to list the files in the root directory of an ISO image. Currently, the script requires mounting the ISO to access and list the files, but I want to achieve this without ...
Jabu's user avatar
  • 134

15 30 50 per page
1
2 3 4 5
547