8,331 questions with Windows for business | Windows Server | User experience | PowerShell tags
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
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
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
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
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

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
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

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
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

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

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

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
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
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
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
Windows for business | Windows Server | User experience | PowerShell
Developer technologies | .NET | .NET CLI
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

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


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
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


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…