743 questions with Windows for business | Windows Server | User experience | PowerShell tags

Sort by: Updated
0 answers

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
asked 2025-06-25T14:19:23.2966667+00:00
marafado88 21 Reputation points
0 answers

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
asked 2025-06-24T17:28:57.9966667+00:00
nikita tiwari 25 Reputation points
commented 2025-06-24T19:03:53.05+00:00
Rich Matheisen 47,901 Reputation points
0 answers

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
asked 2025-06-05T03:46:11.62+00:00
John Denney 0 Reputation points
commented 2025-06-20T15:17:49.76+00:00
Rich Matheisen 47,901 Reputation points
0 answers

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
asked 2025-06-19T05:48:42.25+00:00
Tom Vernier 0 Reputation points
0 answers

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
asked 2025-06-13T06:42:22.0766667+00:00
Manideep Ramini 0 Reputation points
commented 2025-06-13T17:50:47.05+00:00
MotoX80 36,291 Reputation points
0 answers

⚠️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
asked 2025-06-13T08:13:58.13+00:00
Delfin Jay Dayunan 0 Reputation points
commented 2025-06-13T08:21:37.3033333+00:00
Delfin Jay Dayunan 0 Reputation points
0 answers

"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
asked 2023-11-14T14:56:32.9+00:00
Philipp Flury 10 Reputation points
commented 2025-06-12T23:45:35.2766667+00:00
Christian Dow 0 Reputation points
0 answers

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
asked 2025-06-06T17:25:31.77+00:00
Євген Фадєєв 0 Reputation points
commented 2025-06-10T18:33:53.1066667+00:00
Sampath 3,750 Reputation points Microsoft External Staff Moderator
0 answers

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
asked 2025-06-09T13:03:09.8966667+00:00
commented 2025-06-10T17:38:24.6666667+00:00
Sampath 3,750 Reputation points Microsoft External Staff Moderator
0 answers

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
asked 2025-06-10T07:36:57.0933333+00:00
Varghese, Amal 0 Reputation points
commented 2025-06-10T11:15:54.1633333+00:00
MotoX80 36,291 Reputation points
0 answers

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
asked 2025-05-08T19:30:39.16+00:00
Dan Robertson 15 Reputation points
commented 2025-06-02T18:58:21.36+00:00
Mollie Velasquez 5 Reputation points
0 answers

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
asked 2025-05-30T14:26:08.8466667+00:00
WiktoriaTk 0 Reputation points
0 answers

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
asked 2023-05-11T09:10:57.6+00:00
Anonymous
edited a comment 2025-05-28T09:58:26.7133333+00:00
Heemeryck, Pieter 5 Reputation points
0 answers

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
asked 2025-05-22T00:05:57.75+00:00
Cameron Stillion 1 Reputation point Microsoft Employee
0 answers

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
asked 2025-05-21T09:59:33.7966667+00:00
Ran Livneh 0 Reputation points
0 answers

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
asked 2025-05-20T09:43:52.9366667+00:00
Bühler Gabriel 81 Reputation points
0 answers

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
asked 2025-05-09T01:43:03.5133333+00:00
selamawit Meresa 0 Reputation points
0 answers

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
asked 2025-05-08T21:18:35.02+00:00
selamawit Meresa 0 Reputation points
0 answers

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
asked 2025-05-08T21:05:39.4+00:00
selamawit Meresa 0 Reputation points
0 answers

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

Windows for business Windows Server User experience PowerShell
asked 2025-05-08T13:46:09.9166667+00:00
selamawit Meresa 0 Reputation points