743 questions with Windows for business | Windows Server | User experience | PowerShell tags
Unable to use eDiscovery over Azure Application
Hello everyone, I am creating a script to export Search jobs (done already), since microsoft have decomitioned this, but being blocked because lack of permissions, even doing over an Azure App with application permissions for…
Windows for business Windows Server User experience PowerShell
How to automate creation of On-premise AD groups using powershell from Domain controller machine
How to automate creation of On-premise AD groups using powershell from Domain controller machine
Windows for business Windows Server User experience PowerShell
I need to retrieve the values in the cfCardNumber attribute with PowerShell
I have users in a specific OU in Active Directory and need to retrieve the values in the cfCardNumber attribute which is in the Attribute Editor. I have tried for an individual; Get-ADuser -Identity "joe.bloggs" -Properties * | Select-Object…
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
Error in the below code
Hi All, Could you identify what is the error in the below code. wget…
Windows for business Windows Server User experience PowerShell

⚠️Unable to enable the Real-time Protection in Windows Security
Microsoft Windows [Version 10.0.26100.4351] (c) Microsoft Corporation. All rights reserved. C:\Windows\System32>winmgmt /salvagerepository and WMI repository is consistent C:\Windows\System32>"C:\Program Files\Windows…
Windows for business Windows Server User experience PowerShell
"Activate" function with new-mgteam
We create teams for our school using Powershell. We used to use the Powershell command new-team for this. Now we use the Graph module with new-mgteam. Since we created the teams with new-mgteam, the teams no longer need to be activated by an owner, but…
Microsoft Teams Development
Windows for business Windows Server User experience PowerShell
Microsoft Security Microsoft Graph
Microsoft Teams Microsoft Teams for business Other
Unable to publish PBIX via REST API (400 Bad Request)
Hello! My name is Yevhenii, I am a BI developer currently exploring publishing Power BI reports using the REST API. I have encountered a persistent issue: I am unable to publish PBIX files via the REST API (POST /imports returns 400 Bad Request), even…
Windows for business Windows Server User experience PowerShell
I want to bulk insert from blob-to-blob. where I am having files names text files
function Copy-AzureBlobWithFileList { param ( [string]$SourcePath, # e.g. https://account.blob.core.windows.net/container/folder?SAS [string]$DestPath, # e.g. https://account.blob.core.windows.net/container2/folder?SAS …
Windows for business Windows Server User experience PowerShell
BAT Files No Longer Open on Double-Click After Upgrading to Windows 11
After upgrading to Windows 11, .bat files no longer execute on double-click. Instead, nothing happens. Prior to the upgrade, these files opened and executed normally in Command Prompt. Here's what I have tried: Attempted to set cmd.exe as the default…
Windows for business Windows Server User experience PowerShell

Set-MgUserLicense not allowing adding license "No license changes provided"
I am able to remove licenses but trying to add the license returns the error "Set-MgUserLicense : No license changes provided. At least one license to add or remove must be specified." Attempted several variations of SkuPartNumber lookup…
Windows for business Windows Server User experience PowerShell
Why PowerShell doesn't pop up?
During the Fundamentals course I created a sandbox but the PowerShell window doesn't pop up This question is related to the following Learning Module
Windows for business Windows Server User experience PowerShell
Uploading a file in yammer using the api uploadsmallfile
I am trying to upload a file using the yammer api endpoint "**https://www.yammer.com/api/v4/uploadsmallfile.json**" Below Script I am using: # Set the URI of the REST endpoint $uri =…
Windows for business Windows Server User experience PowerShell
Are there guidelines for building useful scripts in Constrained Language Mode?
PowerShell Constrained Language mode exists, at least ostensibly, to ensure that unsafe practices are not performed on locked-down machines. Great idea. Now, an unfortunate side-effect of this mode is that - all my scripts, which I attempt to execute on…
Windows for business Windows Server User experience PowerShell
is it possible to download powershell 4 for windows 2008?
is it possible to download powershell 4 for windows 2008?
Windows for business Windows Server User experience PowerShell
Cannot set up MFA over Powershell: Access Denied
Hello Everyone I have this nifty script to manage my users: function AssignPhoneNumber { # Connect to Microsoft-teams Connect-MicrosoftTeams # User Principal Name (UPN) of the user $userUPN = Read-Host "Enter the Username" …
Windows for business Windows Server User experience PowerShell
how to fix pnp site design
PS C:\Windows\System32> Connect-PnPOnline -Url “https://banaorphanagecenter-admin.sharepoint.com” -ClientID " ad32dd23-4609-4eac-9853-6b5385323bd1" -Tenant "2e641e1f-d29f-4350-ae08-5a57de56c077" -Interactive PS…
Windows for business Windows Server User experience PowerShell
how can i fixPS C:\Users\selam> Connect-PnPOnline -Url “https://banaorphanagecenter-admin.sharepoint.com” -ClientID "ad32dd23-4609-4eac-9853-6b5385323bd1" -Tenant "2e641e1f-d29f-4350-ae08-5a57de56c077" -Interactive PS C:\Users\selam> Add-PnPSiteDesign -Ti
PS C:\Users\selam> Connect-PnPOnline -Url “https://banaorphanagecenter-admin.sharepoint.com” -ClientID "ad32dd23-4609-4eac-9853-6b5385323bd1" -Tenant "2e641e1f-d29f-4350-ae08-5a57de56c077" -Interactive PS C:\Users\selam>…
Windows for business Windows Server User experience PowerShell
how to fix PS C:\Users\selam> Add-PnPSiteDesign -Title "selam Design" -SiteScriptIds "ad32dd23-4609-4eac-9853-6b5385323bd1" -Description "selam custom site Template" -WebTemplate TeamSite Add-PnPSiteDesign: Could not find the resource "PnP.PowerShell.Comm
PS C:\Users\selam> Add-PnPSiteDesign -Title "selam Design" -SiteScriptIds "ad32dd23-4609-4eac-9853-6b5385323bd1" -Description "selam custom site Template" -WebTemplate TeamSite Add-PnPSiteDesign: Could not find the…
Windows for business Windows Server User experience PowerShell
PowerShell 7.5.1 PS C:\Windows\System32> Add-PnPSiteDesign -Title "selam Design" -SiteScriptIds " ad32dd23-4609-4eac-9853-6b5385323bd1" -Description "selam custom site Template" -WebTemplate TeamSite Add-PnPSiteDesign: Could not find the resource "PnP.Pow
PowerShell 7.5.1 PS C:\Windows\System32> Add-PnPSiteDesign -Title "selam Design" -SiteScriptIds " ad32dd23-4609-4eac-9853-6b5385323bd1" -Description "selam custom site Template" -WebTemplate TeamSite Add-PnPSiteDesign:…