5,628 questions with Windows Server PowerShell tags

Sort by: Updated
2 answers

Disable Default "Open Windows PowerShell" Right-Click Menu?

How would one permanently disable Shift+Right-Click "Open PowerShell window here" context menu without simultaneously disabling the PowerShell and Elevated PowerShell Options in the File Explorer File Menu Bar? More info: For Registry Keys…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,074 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,628 questions
asked 2023-08-01T18:34:44.15+00:00
Jonathan Woodward 26 Reputation points
answered 2025-05-07T06:24:57.6566667+00:00
Weiqi Chen 101 Reputation points
6 answers One of the answers was accepted by the question author.

Unauthorized (401) listing synchronization jobs for service principal in MS Graph API

I am trying to use MS Graph API to configure Azure AD Connect Cloud Sync from these [instructions][1] but I am having trouble calling this [endpoint][2] in Powershell using client credentials:…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,594 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,628 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,606 questions
asked 2021-08-24T19:45:48.557+00:00
Anonymous
commented 2025-05-07T05:56:51.9033333+00:00
Elliot Huffman 0 Reputation points
2 answers One of the answers was accepted by the question author.

azcopy.exe - AuthenticationErrorDetail: Signature did not match

I am trying to copy blobs from a folder in one container to folder in another container, both in the same storage account, but am hitting authentication error. I'm using latest powershell 7 on my laptop. $rg = "<resource…

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,486 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,165 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,628 questions
asked 2021-12-08T00:01:03.61+00:00
Greg Yvkoff 151 Reputation points
answered 2025-05-05T01:25:28.4533333+00:00
Optimiste 0 Reputation points
4 answers

SharePoint Online - PnP PowerShell - Sharing Links

Hi MS Q&A, Seeking advice and information if there are any PnP PowerShell cmdlets (not CSOM) available to identify existing Sharing Links in use similar to gaining similar output from the Settings > Site Usage > Shared with External Users…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,229 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,628 questions
asked 2021-09-30T04:44:29.813+00:00
Daniel Chee 276 Reputation points
answered 2025-04-23T19:23:44.8066667+00:00
Jos Lieben 1 Reputation point
4 answers

Unable to install IIS on Server 2019 DC error 0x800f081f

I`m getting this error: I tried the following commands: Microsoft Windows [Version 10.0.17763.3650] (c) 2018 Microsoft Corporation. All rights reserved. C:\Users\Administrator.WIN-ONA542MGLKP>dism /online /enable-feature…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
4,071 questions
Internet Information Services
Windows Server Management
Windows Server Management
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Management: The act or process of organizing, handling, directing or controlling something.
449 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,628 questions
asked 2022-12-03T00:32:53.737+00:00
Lucas Paixao Soares Ribeiro 1 Reputation point
edited a comment 2025-04-22T23:43:10.34+00:00
Lex Li (Microsoft) 6,032 Reputation points Microsoft Employee
4 answers

What is the alternative tool for RSAT for MAC machine?

Hi, We want to install powershell active directory , for that we need Remote Server Administration Tools, Since it is available only for Windows, what is the alternative tool which we can use for RSAT?

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,628 questions
asked 2022-11-28T10:24:49.01+00:00
Krishnamoorthi, Monisha 1 Reputation point
answered 2025-04-22T06:56:27.0066667+00:00
Matteo Redaelli 0 Reputation points
2 answers

How to add LPR port manually?

Hi I'm trying to find a way to add a LPR printer port via PowerShell. The add-printerport creates standard TCP/IP port only. Basically what this Ok button does in the background I'd like to know. Figured so far, that it creates a bunch of…

Windows Server Printing
Windows Server Printing
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Printing: Printer centralized deployment and management, scan and fax resources management, and document services
698 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,628 questions
asked 2021-10-21T23:00:42.687+00:00
GabeCz 1 Reputation point
commented 2025-04-10T13:11:38.59+00:00
rmaizeroi 0 Reputation points
1 answer

get list of AzureDirectory roles that assigned for a specific user by powershell

Hi Support I would like to get a list of AzureDirectory roles that assigned to a specific user by powershell .. i tried many commands but keep getting the error : Get-AzRoleAssignment -SignInName "xxxxx@Anonymous .com" Get-AzRoleAssignment :…

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,628 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,606 questions
asked 2021-10-15T09:26:03.41+00:00
sarmed nazar 71 Reputation points
commented 2025-04-10T11:10:53.1166667+00:00
Kanika Gupta 0 Reputation points Microsoft Employee
5 answers

4 keywords - Azure CLI, Azure PowerShell, Azure Cloud Shell and Bash

Hello everyone, Someone please explain why do we have 4 options in Azure cloud for any scripting? Also explain me the differences between the four options as shown below. 1. Azure CLI, 2. Azure PowerShell, 3. Azure Cloud Shell 4. Bash Thanks

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,628 questions
asked 2020-07-19T18:51:25.967+00:00
cloudguy2020 76 Reputation points
commented 2025-04-07T21:25:51.5466667+00:00
Meng, Feng [Ideal Staffing] 0 Reputation points
7 answers One of the answers was accepted by the question author.

How to get the serial number of the monitors using Powershell?

After a lot of research, try and error, I got a code that could get as close as possible to the monitors serial number but not the actual serial number. $Monitors = Get-WmiObject WmiMonitorID -Namespace root\wmi $LogFile =…

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,628 questions
asked 2021-01-03T21:26:41.217+00:00
Bhupinder 41 Reputation points
edited a comment 2025-04-04T22:21:48.5966667+00:00
Joseph Martinez 0 Reputation points
1 answer

windows terminal中如何更改编码格式为utf-8?

windows terminal的默认编码格式为gbk,编译一些utf-8文件的时候会出现乱码,如何把windows terminal的默认编码格式改为utf-8?

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,074 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,628 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,943 questions
asked 2023-06-05T12:55:01.1633333+00:00
Ludwig Wittgenstein 20 Reputation points
commented 2025-04-02T17:02:35.1833333+00:00
boliang sun 0 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,628 questions
asked 2023-09-04T11:08:45.92+00:00
Neo 421 Reputation points
commented 2025-04-02T08:41:54.8966667+00:00
EUSTACHE David 0 Reputation points
2 answers

How to set PowerShell eventlog max size in a GPO

Hi there. I need to set the PowerShell event log in Windows max size in a GPO. I allready got the Eventlog Max size for: Application, Security, Setup, and System down in the: "Windows Components/Event Log Services" area My google foo has…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,823 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,902 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,628 questions
asked 2021-09-28T18:08:48.18+00:00
Thomas Nielsen 21 Reputation points
commented 2025-04-01T13:53:13.8366667+00:00
Serhii Prystaiko 0 Reputation points
5 answers

Get-Certificate cmdlet failed

I need to issue a certificate for a server. I run these commands: $cred = Get-Credential Get-Certificate -Template Templatename -CertStoreLocation Cert:\LocalMachine\My -Credential $cred But after the second command I get this error: …

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,726 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,958 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,628 questions
asked 2022-06-14T12:59:02.48+00:00
Petr Synek 6 Reputation points
edited an answer 2025-04-01T12:59:20.7133333+00:00
mr.Eilsafin 1 Reputation point
1 answer

How to use ForEach-Object -Parallel in Azure Devops Pipeline Agent.

I want to use a PowerShell script which has below cmdlet. When I tried to use MS Hosted Pipeline agent with Parallel feature I'm getting "Parameter set cannot be resolved using the specified named parameters" error. How can I execute 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,628 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,943 questions
asked 2024-04-30T15:59:10.87+00:00
Ramakrishna Abhijeet P 70 Reputation points
commented 2025-03-31T20:00:01.85+00:00
Guilherme Matheus 0 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Azure Enterprise Applications - Configure Notification Email for all apps with SSO/SAML Configuration

Hello, Is there a way to configure the Notification Email Address for all Azure Enterprise Applications with an SSO/SAML Configuration? We want an internal sysadmin distribution list notified of all expiring SAML certificates, but this DL was not…

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,628 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,606 questions
asked 2022-04-20T23:43:41.537+00:00
howbs2002 111 Reputation points
commented 2025-03-31T04:45:03.9866667+00:00
Wayne Harper 0 Reputation points
2 answers One of the answers was accepted by the question author.

Check the EnableAIPIntegration and EnableAutoNewsDigest Values using PnP

Hi Experts, I was setting the values of EnableAIPIntegration and EnableAutoNewsDigest on the Sharepoint Instance using the Set-PnPTenant cmdlet and I am using Set-TenantSite cmdlet to change -ExternalUserExpirationInDays. But then I also want to check…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,229 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,628 questions
asked 2021-08-05T04:06:10.13+00:00
Garima Das 1,061 Reputation points
commented 2025-03-28T21:26:06.6166667+00:00
Alex Cross 21 Reputation points
2 answers One of the answers was accepted by the question author.

SharePoint online: Get permission from each document folder by PowerShell via CSV file

Hi, I'm looking for solution on following. I want to get permission from a document library the folder and subfolder with permission settings and want it as CSV file output. During searching, I found this script, but it doesn't include the…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,229 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,628 questions
asked 2021-12-10T05:58:24.157+00:00
Sato,Rene 21 Reputation points
edited a comment 2025-03-20T06:03:26.33+00:00
JordanF 6 Reputation points
2 answers One of the answers was accepted by the question author.

extract .zip files from multilple locations with Batch or Script file

I have a bunch of folders that contain .zip files. is it possible to run a batch that will search for zip files in multiple folders and automatically unzip them in the parent folder?

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,628 questions
asked 2021-09-02T16:46:54.3+00:00
Tellu Wsup 21 Reputation points
commented 2025-03-18T21:10:05.84+00:00
Steve Hughes 0 Reputation points
5 answers

Update Micorosoft Store and Store Apps with command line?

Hi To update Microsoft Store and Store Apps, I navigate to the Store and select "Get Updates", like above screenshot. Question: Is there any possibility to achieve the same with Command Line /Power Shell or DISM?

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,074 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,546 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,628 questions
asked 2022-09-05T09:31:41.387+00:00
~OSD~ 2,201 Reputation points
answered 2025-03-18T18:24:48.9166667+00:00
JohnJJakus-7815 5 Reputation points