5,609 questions with Windows Server PowerShell tags

Sort by: Updated
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
answered 2025-01-27T07:27:24.6233333+00:00
Jake Zhang-MSFT 8,400 Reputation points Microsoft Vendor
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.
870 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.
22,999 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.
557 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

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,540 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
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,656 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,355 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,703 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,207 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
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,884 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,603 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,609 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,609 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,540 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
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,609 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,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
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,123 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
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,876 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
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,984 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,471 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-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
1 answer

Blank windows security

I have trouble connecting to university wifi and it state "needed action". So I tried to reset my laptop and choose option keep my files only. When the process done, I tried to connect to the university wifi but the same problem occur. When I…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,603 questions
Windows Server Setup
Windows Server Setup
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
262 questions
Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,890 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,540 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
asked 2025-01-21T02:30:31.6433333+00:00
MUHAMMAD SAID BIN MOHD RIDUAN 0 Reputation points
answered 2025-01-22T08:16:27.0833333+00:00
Daisy Zhou 28,391 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

How to get the details of the all Azure VM's with respective all Tag associated with it in excel sheet with the help of powershell?

Is there any script or command to get the report of all azure VMs in an excel sheet with PowerShell's help, which includes the All tags associated with that, RG, and subscription?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,282 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
asked 2022-07-19T10:42:15.983+00:00
surindersingh dhaliwal 86 Reputation points
commented 2025-01-22T00:56:26.7633333+00:00
Wouter Speybrouck 0 Reputation points
1 answer

Is there any powershell script by which I can find utilization details of the disks attached to a particular virtual machine?

I want to know how much is the free space and how much is the available space for all the disks present in a particular virtual machine ? FYI: The VM is present in Microsoft Azure.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,282 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-17T09:17:05.0266667+00:00
Tajman Kaur 0 Reputation points
commented 2025-01-21T17:35:49.06+00:00
Markapuram Sudheer Reddy 340 Reputation points Microsoft Vendor
1 answer

Send powershell script output to email

I am working on a script to send email the new created server last 30 days ....I have script ready but I want to send output to email accordingly, if there is any new server then it will send email with the new server data but if there is no new server,…

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
asked 2025-01-20T17:39:31.0533333+00:00
Kumari, Nidhi (Cognizant) 20 Reputation points
edited a comment 2025-01-20T19:39:05.39+00:00
Rich Matheisen 47,581 Reputation points
2 answers

Command line to remove confirmation prompt | Remove-CMContentDistribution

Hello Team, please let me know how to execute the command without confirmation prompt like below Remove-CMContentDistribution -PackageId "CON0003A" -DistributionPointName "DP-Contoso.COM"

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
Microsoft Configuration Manager
asked 2025-01-16T11:47:30.75+00:00
Boopathi S 3,601 Reputation points
answered 2025-01-20T02:12:48.4833333+00:00
Simon Ren-MSFT 38,406 Reputation points Microsoft Vendor
2 answers

Massively uninstall applications with PowerShell

Hello Team. I have the following script thanks to colleague Garth Jones and it consists of removing applications by doing a search in the registry, specifically from uninstallstring. I would like to improve it and that instead of being an application it…

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
41,646 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
asked 2022-02-24T19:14:11.803+00:00
Rafael Aguilar 496 Reputation points
answered 2025-01-18T06:44:47.7433333+00:00
Timothy Blunt 0 Reputation points
1 answer

Is there any function by which I can get details of Data disks attached to the VM like Disk Size,Space allocated/Remaining disk space ?

I am trying to get the details for Data Disk attached to the particular VM. The Main purpose is to get notified when the disk space is highly utilized. I can get the names of Data disks attached to the VM , but not getting the details like Disk…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,350 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,282 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-14T09:53:25+00:00
Tajman Kaur 0 Reputation points
commented 2025-01-16T17:38:08.1933333+00:00
Akshay kumar Mandha 2,185 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Run Schedule Task that Connects to Graph

I need to create a Scheduled Task that will run a Powershell script that connects to Graph. What is the best way to setup the task so the creds are passed and it can log into Graph unattended. I have read some have created an App for this in Entra but I…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,876 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
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,999 questions
asked 2025-01-10T20:52:51.7866667+00:00
rr-4098 1,806 Reputation points
accepted 2025-01-16T13:14:30.5933333+00:00
rr-4098 1,806 Reputation points