2,759 questions with PowerShell-related tags

Sort by: Updated
1 answer

Set-MgUserPhotoContent: Status 500 (InternalServerError) when uploading photo

Hi everybody, we are currently facing the challenge, to sync the user photo in our local Active Directory to EntraID. We disabled the possibility for users to change their photo in M365, because we want to manage the photos centraly and locally. My first…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,882 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,759 questions
asked 2025-01-20T09:29:49.72+00:00
Lukas Priwitzer 0 Reputation points
answered 2025-01-27T14:05:55.13+00:00
Akhil Nasalwai - MSFT 165 Reputation points Microsoft Vendor
1 answer

How to generate list of user in exchange have a setup of email forwarding and also the recipient via powershell

Please help, how to generate a list via powershell. List of all user have a setup of Email forwarding and their recipients. Thank you in advance

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,773 questions
Microsoft Exchange
Microsoft Exchange
Microsoft messaging and collaboration software.
647 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,609 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,759 questions
asked 2025-01-27T07:05:14.4733333+00:00
JYLVEN TARRAJA 20 Reputation points
commented 2025-01-27T11:26:35.9133333+00:00
Kavya 315 Reputation points
1 answer

Issues using managed dependencies in Azure Functions with PowerShell - ExchangeOnlineManagement

Hi everyone, I am trying to deploy a simple Azure Function using PowerShell. However, I cannot load any modules. I have a module for ExchangeOnlineManagement I declared it in the requirements file. I also added managed depedencies to the host.json file…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,351 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,759 questions
asked 2025-01-22T14:52:47.9933333+00:00
Michał Pawlicki 0 Reputation points
commented 2025-01-27T10:50:46.9666667+00:00
Michał Pawlicki 0 Reputation points
1 answer

How to update existing azfrontdoor route using powershell

test.axv3-dns.com is configured default how to update test2.axv3-dns.com using powershell.

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
731 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,759 questions
asked 2025-01-24T12:26:22.95+00:00
Yuvaraj Duraisamy 20 Reputation points
accepted 2025-01-27T08:39:40.03+00:00
Yuvaraj Duraisamy 20 Reputation points
1 answer

Using Git commands with Service Principal authentication.

I have been granted service principal access to my Azure DevOps repository. Below is the script I'm using: $resource="499b84ac-1321-427f-aa17-267ca6975798" $TenantId=" " $ClientId=" " $ClientSecret=" " $TokenUri =…

Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
871 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,609 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,759 questions
asked 2024-09-03T15:38:19.2033333+00:00
Ahwan Mishra 140 Reputation points
edited the question 2025-01-27T04:57:18.43+00:00
Rakesh Gurram 11,475 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Two Azure Domain, how to switch account when generating a report via powershell?

Please help me on this. Two azure domain, want to generate a report using a powershell unable to switch account for the other domain. How to switch account to other azure domain when generating a report via powershell. Thank you

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,609 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,759 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,010 questions
Microsoft Power Platform Training
Microsoft Power Platform Training
Microsoft Power Platform: An integrated set of Microsoft business intelligence services.Training: Instruction to develop new skills.
558 questions
asked 2025-01-24T02:13:58.1833333+00:00
JYLVEN TARRAJA 20 Reputation points
commented 2025-01-27T01:34:38.3666667+00:00
JYLVEN TARRAJA 20 Reputation points
1 answer

Get Directory roles which assigned to users (Eligible or active both)

Hi, I am working on to collect details of directory roles which are assigned on user and get that details by powershell cli and mggraph api. I have "Get-MgUserTransitiveMemberOfAsDirectoryRole -UserId " but that is providing me only roles…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,882 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,821 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,759 questions
Microsoft Entra Private Access
Microsoft Entra Private Access
Microsoft Entra Private Access provides secure and deep identity-aware, Zero Trust network access to all private apps and resources.
78 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,010 questions
asked 2025-01-10T09:20:54.9333333+00:00
VJ 25 Reputation points
commented 2025-01-26T18:28:22.9233333+00:00
Raja Pothuraju 11,520 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Disable/enable the public network access on a webapp

Hello Q&A, Is it possible to disable/enable the public network access on a azure webapp with PowerShell?

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,759 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,213 questions
asked 2023-08-31T18:35:16.2166667+00:00
Nibbler 656 Reputation points
commented 2025-01-26T02:07:29.92+00:00
Scott Hodson 0 Reputation points
3 answers

how to fix The term 'az' is not recognized as the name of a cmdlet, function, script file ?

Hi when I run the command "az dt list -o table" in Powershell from visual studio code, I get the following error: The term 'az' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the…

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
707 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,759 questions
asked 2023-06-14T11:46:21.3133333+00:00
Gnetchejo, Patrick Juvet 85 Reputation points
commented 2025-01-24T14:11:15.93+00:00
Andrew Fournier 0 Reputation points
2 answers

Does verb 'pintohome' be fully disable since later version of win10?

I have a powershell script helps to pin some folder to Frequent Folder to quickly achieve them. It used to work well on win10. But recently i found it that the script will be fully stucked unless i kill the window or thread, but its still ok the do it…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,007 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,759 questions
asked 2024-11-14T12:04:01.5066667+00:00
Steins 41 Reputation points
answered 2025-01-24T13:10:31.2433333+00:00
Steins 41 Reputation points
0 answers

Powershell script export users have unlimited membership

Hello, Is it possible to create powershell script of exporting users that have unlimited membership excluding groups like Domain users etc? Right now I am using this script for temporary group assignment but since I started using this just recently I…

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,821 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,759 questions
asked 2025-01-24T11:08:15.3966667+00:00
Danny 0 Reputation points
2 answers

SharePoint Online: Find Duplicate Documents using PowerShell

Could someone post a working script for getting a list of duplicate files in Sharepoint Online? The scripts formerly posted no longer work.

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,225 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,759 questions
asked 2025-01-07T17:04:14.4366667+00:00
44785390 0 Reputation points
commented 2025-01-24T08:34:40.7766667+00:00
Ling Zhou_MSFT 20,940 Reputation points Microsoft Vendor
2 answers

Doc sourcing script not working

Hello, I have a PowerShell 7.4 script saved locally that I need to run with parameters. when I type command. PS C:\Users\Me>. \Graph_SPO_shared_files1.ps1: File C:\Users\me\PS_Scripts\Graph_SPO_shared_files1.ps1 -Sites…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,759 questions
asked 2025-01-22T16:21:40.3733333+00:00
DKADM 0 Reputation points
answered 2025-01-24T08:27:58.0266667+00:00
Kavya 315 Reputation points
1 answer One of the answers was accepted by the question author.

PowerShell script to wipe\reset windows modern devices without user interaction

I attempted to reset a modern Windows device using various PowerShell scripts at different permission levels, including silent mode. However, a prompt still appears during the process. Is there a PowerShell script available that can wipe the device's…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,759 questions
asked 2025-01-17T07:22:34.65+00:00
Sreekanth N Kartha 20 Reputation points
accepted 2025-01-24T06:59:04.98+00:00
Sreekanth N Kartha 20 Reputation points
2 answers One of the answers was accepted by the question author.

Configuring the Azure Storage Account Access keys automated regular rotation?

What is the best way to enable and configure the Azure Storage Account Access keys automated regular rotation? I need to get both Azure Storage Account Access keys regularly rotated daily. Thank you.

Azure Storage Explorer
Azure Storage Explorer
An Azure tool that is used to manage cloud storage resources on Windows, macOS, and Linux.
273 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,339 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,882 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,759 questions
asked 2025-01-20T05:48:21.6466667+00:00
EnterpriseArchitect 5,606 Reputation points
commented 2025-01-24T05:04:01.0533333+00:00
Nandamuri Pranay Teja 330 Reputation points Microsoft Vendor
1 answer

Add-AppxPackage -AppInstallerFile fails with 0x800706BA, The RPC server is unavailable.

I'm trying to install some .appinstaller files via PowerShell. The appinstaller and packages are in SharePoint (requires auth). I'm unsure how to fix this. What do I need? Add-AppxPackage -AppInstallerFile…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,759 questions
asked 2025-01-22T19:19:59.3566667+00:00
Carlo Mendoza 151 Reputation points
answered 2025-01-24T01:03:54.8533333+00:00
Karlie Weng 19,106 Reputation points Microsoft Vendor
1 answer

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 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,547 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,609 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,759 questions
asked 2025-01-23T16:23:40.4466667+00:00
Rafael Silva 0 Reputation points
answered 2025-01-23T18:29:51.0333333+00:00
CrazyKats 160 Reputation points
2 answers

Internal Server Error - 500 - Graph Beta auditLogQuery

I receive (both from Graph Explorer and Powershell 7) the error: Internal Server Error - 500 when run a POST to create an auditLogQuery search: To Reproduce: Go to https://developer.microsoft.com/en-us/graph/graph-explorer Select 'POST' and beta …

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,882 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,759 questions
asked 2025-01-15T13:36:34.4333333+00:00
Lorenzo Cavagna 0 Reputation points
edited an answer 2025-01-23T13:59:18.5333333+00:00
Lorenzo Cavagna 0 Reputation points
0 answers

Issue with Sharepoint User Profile Sync from EntraID

Hello, I am encountering an issue with Sharepoint not updating User Profiles that are updated Entra ID to Sharepoint Online, and deleted users from Entra are still cached in Sharepoint. So we want to force a sync and trying to execute the…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,882 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,125 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,759 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,010 questions
asked 2025-01-22T11:59:46.48+00:00
PauloHurtig-5859 0 Reputation points
edited the question 2025-01-23T01:32:51.86+00:00
AllenXu-MSFT 22,856 Reputation points Microsoft Vendor
0 answers

Access denied when trying to update Windows Subsystem for Linux (wsl)

Im using Visual studio code and it gives me this message "Windows Subsystem for Linux must be updated to the latest version to proceed. You can update by running 'wsl.exe --update'. For more information please visit https://aka.ms/wslinstall Press…

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,609 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,759 questions
asked 2025-01-22T20:22:15.34+00:00
Manuel Carrero 0 Reputation points
edited the question 2025-01-22T20:29:58.2+00:00
Manuel Carrero 0 Reputation points