5,614 questions with Windows Server PowerShell tags

Sort by: Updated
0 answers

A positional parameter cannot be found that accepts argument

Hi All I used the following syntax to grant "TempPolicy1" globally. However, I am encountering an error while trying to remove this policy "TempPolicy1" globally Please guide me. Grant-CsApplicationAccessPolicy -PolicyName…

Microsoft Exchange Online
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,776 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,716 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,525 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,614 questions
asked 2025-02-02T21:02:21.7733333+00:00
Roger Roger 6,731 Reputation points
0 answers

PowerShell Script for Accessing Sent Emails in Outlook and Exchange

I am developing a PowerShell script to retrieve sent email IDs from my Outlook sent mailbox for both the "To" and "CC" sections, from the beginning of the email account to the current date. I managed to create a script that works for…

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,716 questions
Microsoft Exchange
Microsoft Exchange
Microsoft messaging and collaboration software.
659 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,614 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
3,009 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,078 questions
asked 2025-02-02T05:13:01.9+00:00
Avinash 20 Reputation points
2 answers

How to generate a report for the list of all enterprise application that is using a single sign on (SSO)

Please asking for your help on how to generate a report to view the list of all Enterprise applications using a single sign on authentication via in a powershell. Thank you in advance

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,929 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,614 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,783 questions
Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,078 questions
asked 2025-01-30T05:02:33.4+00:00
JYLVEN TARRAJA 80 Reputation points
answered 2025-02-01T18:15:26.6233333+00:00
Harshitha Eligeti 1,455 Reputation points Microsoft Vendor
5 answers

Error "Insufficient privileges to complete the operation" in Powershell - Works ok on Graph Explorer though

Hi, I'm new to using graph and ran a query on the graph explorer which worked ok: https://graph.microsoft.com/v1.0/groups/xxxxxxxxxxxxxxxx/membersWithLicenseErrors?$select=userPrincipalName Now, I am trying to the equivalent command in powershell and it…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,929 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,614 questions
asked 2022-09-29T12:08:58.743+00:00
Chanderjeet Rai 1 Reputation point
answered 2025-01-31T20:28:09.33+00:00
Kannaiahgari, Saritha 0 Reputation points
1 answer One of the answers was accepted by the question author.

Powershell script for Microsoft Entra to reset the password in AD account user after 14 days

Please asking for your help on how to create a script in a powershell to reset the password of the AD users (Microsoft Entra) after in the 14days. Thank you in advance

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,614 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,783 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,078 questions
asked 2025-01-30T05:14:57.5566667+00:00
JYLVEN TARRAJA 80 Reputation points
commented 2025-01-31T08:47:31.2466667+00:00
SUNOJ KUMAR YELURU 14,976 Reputation points MVP
2 answers

How to generate a list in exchange, user have set a rules in Auto Forwarding emails to Another Mailbox using powershell

Please help me to generate a report via in a powershell, to view the list of mailbox name, Inbox rule, Forward to, Redirect to Forward as Attachment and rule status. Thank you

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,716 questions
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
564 questions
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,782 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,614 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,783 questions
asked 2025-01-28T05:39:48.2333333+00:00
JYLVEN TARRAJA 80 Reputation points
answered 2025-01-31T07:06:45.07+00:00
Jake Zhang-MSFT 8,850 Reputation points Microsoft Vendor
1 answer

How to generate a report via powershell,list of all Enterprise applications using a single sign on authentication

Hi, Good day Please asking on your expertise in generating a list of enterprise applications in Microsoft Entra to identify who are using the Single Sign On authentication. Thank you in advance.

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,627 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,614 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,783 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,078 questions
asked 2025-01-31T00:15:56.0166667+00:00
JYLVEN TARRAJA 80 Reputation points
answered 2025-01-31T06:09:27.5866667+00:00
Sandeep G-MSFT 20,381 Reputation points Microsoft Employee
1 answer

Connect-PnPOnline: Access denied/unauthorized operation

I am simply trying to manage an existing site by adding/removing folders and files, nothing special. I am new to the App Registration approach, but I read through lots of documentation and in the end I always see the requirement of having…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,157 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,614 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,783 questions
asked 2025-01-29T09:05:33.8533333+00:00
von Lachner, Matthias 0 Reputation points
answered 2025-01-30T02:26:47.2366667+00:00
Xyza Xue_MSFT 27,966 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

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,782 questions
Microsoft Exchange
Microsoft Exchange
Microsoft messaging and collaboration software.
659 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,614 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,783 questions
asked 2025-01-27T07:05:14.4733333+00:00
JYLVEN TARRAJA 80 Reputation points
commented 2025-01-28T05:02:04.59+00:00
Kavya 490 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.
873 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,614 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,783 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,630 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,614 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,783 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,078 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.
563 questions
asked 2025-01-24T02:13:58.1833333+00:00
JYLVEN TARRAJA 80 Reputation points
commented 2025-01-27T01:34:38.3666667+00:00
JYLVEN TARRAJA 80 Reputation points
1 answer

i am getting catastrophic error while installing wsl in my windows 11.

i tried all the methods and everything is already enabled, such as linux subsystem for windows in control panel, virtualization in system BIOS, but nothing is working

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,611 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,614 questions
asked 2025-01-25T15:20:58.4533333+00:00
Vishal Dhamu 0 Reputation points
answered 2025-01-26T01:42:25.2533333+00:00
S.Sengupta 21,986 Reputation points MVP
2 answers One of the answers was accepted by the question author.

inactive mailboxes

Hi All, I have a few inactive mailboxes under a retention policy in the Microsoft Purview Portal (Data Lifecycle Management → Retention policies → RP01). Let's say the policy is named RP01, and its GUID is u98k89mn-9876-ht68-mjki-kj78oophgy768. Exporting…

Microsoft Exchange Online
Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
1,366 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,716 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
2,215 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,614 questions
asked 2024-12-26T16:40:30.9166667+00:00
Glenn Maxwell 12,211 Reputation points
accepted 2025-01-24T06:03:47.0866667+00:00
Glenn Maxwell 12,211 Reputation points
2 answers One of the answers was accepted by the question author.

Linux Distribution

Hi All, I want to install Ubuntu 22.04 LTS on Windows Server 2019. I am following the MS article linked below: https://learn.microsoft.com/en-us/windows/wsl/install-manual#downloading-distributions The article mentions performing the steps listed, but…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,886 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,564 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,624 questions
Windows Server Infrastructure
Windows Server Infrastructure
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Infrastructure: A Microsoft solution area focused on providing organizations with a cloud solution that supports their real-world needs and meets evolving regulatory requirements.
560 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,614 questions
asked 2025-01-02T17:39:19.91+00:00
Glenn Maxwell 12,211 Reputation points
accepted 2025-01-24T06:03:32.73+00:00
Glenn Maxwell 12,211 Reputation points
1 answer One of the answers was accepted by the question author.

How to force PS output to English instead of Espanol?

I have a WIndows Server 2012 configured with es-ES as the default language. Is there a way to get PowerShell commands to output in English? [SYSTEM@ssave-Windows-P ~] TestUser$ diskpart Microsoft DiskPart versi▒n 6.3.9600 Copyright (C)…

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,614 questions
asked 2021-02-11T20:56:02.79+00:00
Sameer Save 26 Reputation points
commented 2025-01-24T00:47:33.35+00:00
Johannes Kingma 1 Reputation point
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,611 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,614 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,783 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
1 answer One of the answers was accepted by the question author.

Need powershell command to export Multiple “Teams Call-Queues” data in to a .csv file

I used to export all call-queues data when it was on skype platform without any issues, but with Teams platform, when i run the command to export and pipe the data into a .csv FILE, it never exports "overflowactiontarget" &…

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,614 questions
asked 2020-12-10T08:05:37.857+00:00
Sunil Chittor 96 Reputation points
commented 2025-01-23T12:21:51.5366667+00:00
Support 0 Reputation points
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,614 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,783 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
3 answers One of the answers was accepted by the question author.

Automating with PowerShell - Move user's onedrive files to an archive folder on SharePoint when offboarding employee

Currently we go through a manual process of; login to office365 with global admin. go to the user's properties and create onedrive link to the user's files. click the link, select all files/folders then move them to a sharepoint archive…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,157 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,614 questions
asked 2022-08-17T11:21:09.027+00:00
Kevin Carbonaro 21 Reputation points
commented 2025-01-22T12:56:01.5466667+00:00
Jos Lieben 1 Reputation point
4 answers

Intune PowerShell - Enforce script signature check

Could someone explain the PowerShell script Enforce script signature check in the Intune Portal? https://intune.microsoft.com/#view/Microsoft_Intune_DeviceSettings/DevicesMenu/~/powershell There isn't any documentation or instructional piece available…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,929 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,614 questions
Microsoft Intune Configuration
Microsoft Intune Configuration
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Configuration: The process of arranging or setting up computer systems, hardware, or software.
1,987 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,494 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,783 questions
asked 2023-11-29T01:41:23.4466667+00:00
EnterpriseArchitect 5,606 Reputation points
commented 2025-01-22T10:32:17.24+00:00
Mark Destreel 0 Reputation points