5,621 questions with Windows Server PowerShell tags

Sort by: Updated
2 answers

How to fix: The user profile Service service failed the sign-in. user profile cannot be loaded

Dear Team I have an issue with users through the business and branches. The domain account fail to load with error: The user profile Service service failed the sign-in. user profile cannot be loaded. It's affecting part of the users, it's not a daily…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,038 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,659 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,663 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,621 questions
asked 2023-11-14T07:18:36.81+00:00
Census Mathebula 0 Reputation points
edited an answer 2025-02-07T13:01:50.7933333+00:00
Kapil Arya 8,211 Reputation points MVP
1 answer

Validating inactive user list and excluding removing inactive users from AD groups

test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test…

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,621 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,795 questions
asked 2025-02-06T04:00:54.7333333+00:00
Varma 1,385 Reputation points
answered 2025-02-07T12:11:03.59+00:00
Marcin Policht 34,175 Reputation points MVP
4 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,824 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,734 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,544 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,621 questions
asked 2025-02-02T21:02:21.7733333+00:00
Roger Roger 6,741 Reputation points
commented 2025-02-07T09:53:49.4233333+00:00
Xintao Qiao-MSFT 6,190 Reputation points Microsoft Vendor
1 answer

powershell script is not working as expect

I wanted to cancel all running or pending runs in a Logic App Standard workflow(from a custome days) But I think the below script is not working as expected. Variables $ResourceGroupName = "ResourceGroupName " $LogicAppName =…

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,621 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,795 questions
asked 2025-02-07T07:19:29.9166667+00:00
answered 2025-02-07T07:21:19.0266667+00:00
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,621 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,795 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,148 questions
asked 2025-01-30T05:14:57.5566667+00:00
JYLVEN TARRAJA 80 Reputation points
commented 2025-02-07T05:05:28.1133333+00:00
JYLVEN TARRAJA 80 Reputation points
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,673 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,621 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,795 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,148 questions
asked 2025-01-31T00:15:56.0166667+00:00
JYLVEN TARRAJA 80 Reputation points
commented 2025-02-07T03:52:40.06+00:00
Sandeep G-MSFT 20,701 Reputation points Microsoft Employee
3 answers

How to downgrade Java version default installed into Azure Portal from Java 17 to Java 11

Java Maven compatibility issues. Java version 17 and Maven version 3.6 is the default versions in my Azure CLI. Steps to replicate Login to azure portal Click on the Azure CLI icon Azure CLI poweshell terminal opens up Type mvn -X Following…

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,621 questions
asked 2022-05-16T08:12:53.63+00:00
CHEKOOR, Jaya 1 Reputation point
edited the question 2025-02-06T16:20:13.1533333+00:00
TP 102.4K Reputation points
3 answers One of the answers was accepted by the question author.

Invoke-WebRequest to a web server with self-signed SSL certificate

I have an IIS website hosted in a Windows 2019 server. I enbled HTTPS/SSL using a self-signed certificate. Now in a client machine, I wanto use Invoke-WebRequest to connect to the server using HTTPS and it fails wjith no doubt. Invoke-WebRequest: The…

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,621 questions
asked 2023-09-04T11:08:45.92+00:00
Neo 421 Reputation points
edited an answer 2025-02-06T15:03:47.18+00:00
Koopee 0 Reputation points
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,621 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,795 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,148 questions
asked 2025-01-24T02:13:58.1833333+00:00
JYLVEN TARRAJA 80 Reputation points
edited the question 2025-02-06T13:49:52.03+00:00
Rakesh Gurram 11,735 Reputation points Microsoft Vendor
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,988 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,621 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,795 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,148 questions
asked 2025-01-30T05:02:33.4+00:00
JYLVEN TARRAJA 80 Reputation points
commented 2025-02-06T07:22:22.7533333+00:00
Harshitha Eligeti 1,455 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

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 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,265 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,621 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,795 questions
asked 2025-01-29T09:05:33.8533333+00:00
von Lachner, Matthias 20 Reputation points
edited the question 2025-02-06T06:15:45.38+00:00
Xyza Xue_MSFT 28,051 Reputation points Microsoft Vendor
1 answer

How can i change the scripts so i can use react in my vs code

PS C:\Users\bauma\Desktop\Weather-react-Q> npx create-react-app . npx : File C:\Program Files\nodejs\npx.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Polici es at…

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,621 questions
asked 2025-02-05T11:07:43.2266667+00:00
Ruta Baumane 0 Reputation points
answered 2025-02-06T05:38:48.1633333+00:00
Ian Xue 39,286 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

I am facing an issue where both Windows PowerShell V1.0 and SharePoint Online Management Shell

I am facing an issue where both Windows PowerShell and SharePoint Online Management Shell open briefly and then close immediately, even when I try running them as an administrator. I have attempted basic troubleshooting, including running PowerShell in…

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,991 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,621 questions
asked 2025-02-05T04:35:16.87+00:00
Jayesh Kashte 20 Reputation points
commented 2025-02-05T08:55:13.35+00:00
Jayesh Kashte 20 Reputation points
1 answer

I am facing an issue where both Windows PowerShell V1.0 and SharePoint Online Management Shell

I am facing an issue where both Windows PowerShell and SharePoint Online Management Shell open briefly and then close immediately, even when I try running them as an administrator. I have attempted basic troubleshooting, including running PowerShell in…

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,991 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,621 questions
asked 2025-02-05T04:34:17.2066667+00:00
Jayesh Kashte 20 Reputation points
answered 2025-02-05T06:50:24.44+00:00
RaytheonXie_MSFT 38,646 Reputation points Microsoft Vendor
1 answer

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,734 questions
Microsoft Exchange
Microsoft Exchange
Microsoft messaging and collaboration software.
671 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,621 questions
asked 2025-02-02T05:13:01.9+00:00
Avinash 20 Reputation points
commented 2025-02-05T01:31:58.37+00:00
Jake Zhang-MSFT 8,935 Reputation points Microsoft Vendor
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,734 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.
565 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,787 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,621 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,795 questions
asked 2025-01-28T05:39:48.2333333+00:00
JYLVEN TARRAJA 80 Reputation points
commented 2025-02-05T01:26:43.1633333+00:00
Jake Zhang-MSFT 8,935 Reputation points Microsoft Vendor
2 answers

Set-LocalUser : An unspecified error occurred: status = 3221226252

I am trying to change user password based on below script but getting the error "Set-LocalUser : An unspecified error occurred: status = 3221226252". $pks=Get-Date foreach($pk in…

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,621 questions
asked 2025-01-15T16:09:03.5766667+00:00
Prashant Mishra 26 Reputation points
commented 2025-02-04T22:52:26.89+00:00
JuliusPIV 86 Reputation points
0 answers

Changing Created Timestamps to Match Modified Timestamps for JPG and MP4 Files Using PowerShell

i copied my photo and videos form my phone to laptop How can the created timestamps for both JPG and MP4 files be changed to match their modified timestamps on a laptop, using PowerShell ISE? The solution should also include subfolders in the operation.

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,663 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,621 questions
asked 2025-02-04T07:48:18.1066667+00:00
vishnu sai akhil gadi 20 Reputation points
0 answers

Update-Help: Failed to update Help for the module(s) 'ConfigDefenderPerformance' with UI culture(s) {en-US}

Hello Community, I tried to update the Help modules. but I failed . Any suggestion? Best Regards, MV

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,621 questions
asked 2025-02-02T23:42:41.6466667+00:00
marcelo veintimilla 5 Reputation points
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,988 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,621 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