5,628 questions with Windows Server PowerShell tags

Sort by: Updated
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,230 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,045 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,285 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,075 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,915 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,940 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,915 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,285 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,230 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,230 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,075 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,420 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
1 answer One of the answers was accepted by the question author.

Windows Subsystem for Linux

Hi All I have installed Windows Subsystem for Linux on Windows Server 2019. The installed version is Ubuntu 22.04.1.7.0 When I click on WSL, it opens successfully. However, when other users click on WSL, nothing happens. They are local administrators on…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
4,045 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,639 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,726 questions
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 2025-02-10T22:13:34.6866667+00:00
Glenn Maxwell 12,621 Reputation points
accepted 2025-03-15T21:44:40.6+00:00
Glenn Maxwell 12,621 Reputation points
4 answers One of the answers was accepted by the question author.

WinGet.exe upgrade --all -Exclude

How to exclude the list of apps [third-party application, MS applications, and MS KBnumbers] while running winget upgrade -all commands. Is there any parameter to exclude any application? It will be appriciated

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,075 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 Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,570 questions
asked 2023-04-07T17:32:54.1133333+00:00
Vij 316 Reputation points
edited a comment 2025-03-14T11:32:01.9433333+00:00
Friedrich, Sebastian 10 Reputation points
1 answer One of the answers was accepted by the question author.

What are the steps and procedure to use gMSA as the Windows Server Service Account?

After creating the gMSA using the below PowerShell, how can I successfully replace the services in all of my Windows Server Application servers? New-ADServiceAccount -Name New-gMSA -DNSHostName Mydomain.com -PrincipalsAllowedToRetrieveManagedPassword…

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,940 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
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,915 questions
asked 2024-10-15T11:16:18.71+00:00
EnterpriseArchitect 5,761 Reputation points
accepted 2025-03-13T13:07:46.2466667+00:00
EnterpriseArchitect 5,761 Reputation points