8,331 questions with Windows for business | Windows Server | User experience | PowerShell tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

The power shell cannot use basic commands

System: windows11 When I execute a command in powershell, I cannot use it; For example, 'ping','java','nodejs' I can execute it correctly in CMD. I'm sure it's already added to the 'path' variable. But it still won't execute in…

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other
asked 2022-12-19T02:24:55.957+00:00
布布子 21 Reputation points
commented 2025-08-29T19:09:53.1766667+00:00
Bladas 0 Reputation points
1 answer

How to set common resolution for all connected display through PowerShell

Require a PowerShell code that sets all the displays connected including the primary display to a maximum common resolution.

Windows for business | Windows Server | User experience | PowerShell
asked 2025-08-06T14:05:26.22+00:00
Sreekanth N Kartha 60 Reputation points
answered 2025-08-28T12:48:20.2333333+00:00
gastone canali 241 Reputation points Volunteer Moderator
1 answer

Azure Powershell Runbook Unable to Parse Webhook Data

Hi Folks, I've been trying to get a script to run, as a pre-event for Azure Update Manager. I've got it to run and do various things, but I am having serious issues getting it to parse the webhook correctly. Using Powershell 7.2 (was using 7.1…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-03-19T03:09:00.5766667+00:00
BrianVpl 0 Reputation points
answered 2025-08-28T07:52:04.1633333+00:00
Nathan Matchett 0 Reputation points
2 answers

Error Adding User to Shared Team Channel via Microsoft.Graph.Teams PowerShell Module

Recently, our existing GraphAPI Powershell automation (Microsoft.Graph.Teams v1.0) that we use for creating shared team channels and setting up user permissions has stopped working with the following error: New-MgTeamChannelMember: Parameter set cannot…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-08-27T15:15:07.8966667+00:00
Cooper, Brian D 0 Reputation points
commented 2025-08-27T19:10:00.31+00:00
Cooper, Brian D 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to set the Entra ID User or Guest account expiry date to prevent login / disabled?

Using PowerShell Graph SDK or any other means, how can I set the Expiration date of my Entra ID User, or Guest 7 days from now or…

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Entra | Microsoft Entra External ID
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
Microsoft Security | Microsoft Entra | Other
asked 2025-01-30T06:21:57.39+00:00
EnterpriseArchitect 6,166 Reputation points
edited a comment 2025-08-27T06:37:15.7266667+00:00
Wojiewojwoj 0 Reputation points
3 answers

Using Webview2 with PowerShell

Hello, I'm working with a PowerShell script that displays a WebView2 window in a Windows Forms GUI. However, I'm having trouble running Javascript code within the WebView2 window. When I try using the "ExecuteScriptAsync" method, it locks up…

Developer technologies | Windows Forms
Windows for business | Windows Server | User experience | PowerShell
asked 2023-04-27T09:36:08.5466667+00:00
Christopher Pque 15 Reputation points
answered 2025-08-21T22:42:59.0333333+00:00
Someone 0 Reputation points
6 answers One of the answers was accepted by the question author.

How to remove apps from user context and deploy this script via Intune.

Hi everyone, I was trying to remove some apps such as Chrome/Firefox/Zoom and others from many computers in my organization. These apps were installed manually by the user without admin rights(User Context), I was trying to create a script to remove…

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Intune | Other
asked 2023-07-20T17:47:21.36+00:00
TZ 46 Reputation points
commented 2025-08-21T12:06:11.1366667+00:00
Omveer Singh 0 Reputation points
2 answers One of the answers was accepted by the question author.

how to trigger this DNS field

Hi all How to trigger "Update associated pointer (PTR) record" field for a DNS A record in Windows 2016 DNS servers? When a PTR record for a DNS A record is deleted, the PTR record is not updated even "Update associated pointer (PTR)…

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
asked 2022-04-19T16:02:21.577+00:00
Matt 101 Reputation points
commented 2025-08-19T14:55:21.15+00:00
RM_INC 0 Reputation points
2 answers

WARNING: The version '1.4.8.1' of module 'PackageManagement' is currently in use. Retry the operation after closing the applications.

I can't seem to update modules. I do not know why I keep getting this error. WARNING: The version '1.4.8.1' of module 'PackageManagement' is currently in use. Retry the operation after closing the applications. I'm trying to update Exchange…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-02-14T15:34:54.99+00:00
ComputerHabit 1,041 Reputation points
answered 2025-08-19T08:18:47.5366667+00:00
Obdam, Raymond 0 Reputation points
2 answers One of the answers was accepted by the question author.

Command to get monitor model number and serial number

simple Command to get monitor model number and serial number just like below

Windows for business | Windows Server | User experience | PowerShell
asked 2024-02-06T00:41:39.5633333+00:00
Pavan 20 Reputation points
answered 2025-08-18T06:42:31.8566667+00:00
Hudson McNamara 51 Reputation points
1 answer

Changing Overlay power Mode with script

Hi, I want to change the overlay power mode based on time of the day without having to go to settings -> system -> power and battery -> power mode each time. I am not able to find which command in powercfg will change the OVERLAY power mode, all…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-02-02T09:38:46.71+00:00
Mustaffa Abu-Sedira 0 Reputation points
commented 2025-08-14T10:04:37.93+00:00
Lai, Jerry 91 Reputation points
2 answers

How to fix the error "The remote server returned an error: (405) Method Not Allowed" while trying to automate wiki documentation from azure release pipeline. This occurs when trying to update/create the wiki page from azure build pipeline using PS script.

Error details: Starting: Wiki creation ============================================================================== Task : PowerShell Description : Run a PowerShell script on Linux, macOS, or Windows Version : 2.220.0 Author : Microsoft…

Windows for business | Windows Server | User experience | PowerShell
asked 2023-06-07T07:35:17.0633333+00:00
Tiwari, M (Manika) 0 Reputation points
answered 2025-08-12T20:28:25.8+00:00
Thomas Murnane 81 Reputation points
3 answers

Changing primary user of a device in Intune

Hello All, I ran into issues where our Technicians who reimage and deploy laptop/workstations to our users gets assigned as Primary user on the device. Right now, We have about less than 1000 devices that doesn't have the proper Primary user in Intune.…

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Intune | Other
Microsoft Security | Microsoft Graph
asked 2024-01-22T01:32:59.71+00:00
Jason 15 Reputation points
commented 2025-08-12T19:45:47.22+00:00
Jacob Chabot 0 Reputation points
5 answers

Powershell 5.1 not accepting keyboard input when using Remote Desktop HTML5 Web Client

Install the latest RDS HTML5 client on a RDS deployment as specified here: https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-web-client-admin Open a web browser session and start an RDS session. …

Windows for business | Windows Client for IT Pros | User experience | Remote desktop services and terminal services
Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other
asked 2023-03-24T15:25:41.6533333+00:00
Ag-8821 46 Reputation points
edited a comment 2025-08-11T23:08:12.7066667+00:00
Samuel Roach 0 Reputation points
2 answers One of the answers was accepted by the question author.

Azure CLI ERROR when add extensions: An error occurred. Pip failed with status code 1

Hi everyone I'm trying to add extensions in Azure CLI with the command: az extension add --name subscription however I get the following message: An error occurred. Pip failed with status code 1. Use --debug for more information. Here the debug…

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,410 questions
Windows for business | Windows Server | User experience | PowerShell
Developer technologies | .NET | .NET CLI
asked 2023-12-01T05:55:00.18+00:00
Carlos Ochoa Medrano 45 Reputation points
answered 2025-08-09T16:41:32.51+00:00
Ahmed Ibrahim 0 Reputation points
0 answers

Skype Front End Server Deployment Wizard Fails to Start Services When Automated

I am automating the deployment of Skype for Business Server 2019 front end servers on a Server 2022 OS on prem. When using the commands below to run step one of the deployment wizard, the Skype services fail to start, each with an error of "Check to…

Windows for business | Windows Server | User experience | PowerShell
Microsoft 365 and Office | Skype for Business | Windows
asked 2024-03-21T15:24:26.03+00:00
Neil676 6 Reputation points
commented 2025-08-06T12:34:52.0966667+00:00
Mathew 0 Reputation points
1 answer

Install batch file from powershell

Hello Community! I'm going mad last few days, trying to run this batch file from PS, or convert it natively so it can run on PowerShell script, it is all to be installed via inTune This is the batch file: @echo off certutil -addstore…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-08-03T11:11:43.35+00:00
Manuel Muñoz Soria 0 Reputation points
commented 2025-08-04T14:57:54.23+00:00
MotoX80 36,556 Reputation points
0 answers

Requesting a Cloud Shell.Failed to provision a Cloud Shell: {"code":"TenantDisabled","message":"Cloud Shell has been disabled in directory 'da0749be-51dd-419e-bbbd-6e8dde7db7db'."}

can someone help me with the below issue in Azure when I try to open cloudshell Requesting a Cloud Shell.Failed to provision a Cloud Shell: {"code":"TenantDisabled","message":"Cloud Shell has been disabled in directory…

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Entra | Microsoft Entra ID
asked 2024-08-23T12:57:14.29+00:00
abraham mathew 15 Reputation points
edited a comment 2025-08-03T07:59:14.6733333+00:00
VarunTha 14,865 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

Querying Win32_PageFileSetting results in empty response

I am trying to query some information from Win32_PageFileSetting WMI class and I am unable to gather any kind of information. I tried on multiple versions of PowerShell including: Major 5, Minor 1, Build 22621, Revision 4249 Major 5, Minor 1, Build…

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
Windows for business | Windows Client for IT Pros | User experience | Other
asked 2024-11-12T14:24:48.2033333+00:00
Krasimir Rangelov 265 Reputation points
commented 2025-08-02T17:09:57.39+00:00
Krasimir Rangelov 265 Reputation points
3 answers

Error loading a nuget package in power shell.

Hi, I'm trying to load the Azure.DigitalTwins.Core -Version 1.4.0 package in azure cloud shell (power shell) and I'm getting the following error. How can I solve it? PS /home/p82salul/LocalFunctionProj> dotnet add package…

Windows for business | Windows Server | User experience | PowerShell
asked 2023-05-11T08:40:48.1633333+00:00
Lucía Sánchez 45 Reputation points
commented 2025-08-01T09:23:17.5566667+00:00
Laurent SOKOLOFF 0 Reputation points