8,330 questions with Windows for business | Windows Server | User experience | PowerShell tags
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
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
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
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
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…
Windows for business | Windows Server | User experience | PowerShell
Connect-AipService is failing
I need to do Enable-AipService via PowerShell as it is not possible through any of the GUI:s. I get an error on command Connect-AipService before even login prompt comes up. Error: Connect-AipService : The attempt to connect to the Azure Information…
Azure Information Protection
Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
Fetching All Directory Roles Assigned to Users Using PowerShell
Hi, I am developing a function to retrieve directory roles assigned to a user and get details based on the user ID, including whether the roles are assigned as eligible or active. I have been using, which provides the information in the format I need,…
Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
Connect-MsolService : Access Denied.
Connect-MsolService : Access Denied. You do not have permissions to call this cmdlet.
Windows for business | Windows Server | User experience | PowerShell
Powershell check file modified date & send email if updated (only once)
Script sends email if a new file is found in that folder. And does not send email if already been sent. Runs every hour in the windows task scheduler. Can you check the code? Maybe you can tell me how to fix it and optimize it. Thank you. $TodayDate =…
Exchange Online
Windows for business | Windows Server | User experience | PowerShell
Error while using Test-OrganizationRelationship: "Object reference not set to an instance of an object"
Hi, I am trying to set a bidirectional Organization Relationship between two Microsoft 365 tenants. I've set up the two relationships in the two tenants, with the necessary domains, but when I go to test it with the command Test-OrganizationRelationship…
Exchange Online
Windows for business | Windows Server | User experience | PowerShell
How to generate M365 Product license report in Power BI
Hello Everyone, I see the Usage Report in the M365 Admin Center and they are helpful. However, I am looking for a way to generate a report on our product licensing usage. Similar to the view from the Entra ID -> Licenses -> All Products. Where…
Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Graph
How to fix Error Acquiring Token
I'm getting this error whenever i try to connect to Exchange online using PowerShell as Admin and I can't figure out how to fix it. Error Acquiring Token: Unknown Status: Unexpected Error: 0xffffffff80070520 Context: (pii) Tag: 0x21420087 (error code…
Exchange Online
Exchange | Exchange Server | Management
Windows for business | Windows Server | User experience | PowerShell
Why do you make it impossible to ask a question in ANY community forum?
I always have to dig and drill and go through millions of irrelevant questions. Why can't you simply put a link right at the top to just ask a question. I was on the Tech community. I looked all over the place and there is NOTHING to click on that lets…
Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other
System.IO.FileSystemInfo - isInheritanceBlocked ScriptProperty
Goodmorning. $folders = Get-ChildItem -Directory -Path "C:\Folders" My collegue (Same machine, both are admins) can see this method $folders[0].isInheritanceBlocked (Boolean) I don't. Could you tell me why and how can I see the method (I saw…
Windows for business | Windows Server | User experience | PowerShell


How to access Office365/Azure using powershell without an Azure subscription
Hi, We currently have office365 licenses and sometimes a new of ours gets a log in failure loop, eg. User sign-ins (non-interactive) Sign In error code : 50173. The solution is to run "Revoke-AzureADUserAllRefreshToken -ObjectId xxxx-xxx-xxx-xx…
Windows for business | Windows Server | User experience | PowerShell
Need Accurate result Size on Disk using Powershell Script, When Bytes are Null
Problem Statement: Not able to get accurate value for Size on Disk for App-V folder , I tried using below PS Command based on the length Get-ChildItem -Path $path -Recurse -File -ErrorAction SilentlyContinue | ForEach-Object { try{ $size =…
Windows for business | Windows Server | User experience | PowerShell
