5,628 questions with Windows Server PowerShell tags

Sort by: Updated
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
commented 2025-03-19T12:58:17.3133333+00:00
Mainak Nath 0 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,077 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,130 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 0 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.
3,981 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,604 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,516 Reputation points
accepted 2025-03-15T21:44:40.6+00:00
Glenn Maxwell 12,516 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,077 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 0 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,917 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,872 questions
asked 2024-10-15T11:16:18.71+00:00
EnterpriseArchitect 5,736 Reputation points
accepted 2025-03-13T13:07:46.2466667+00:00
EnterpriseArchitect 5,736 Reputation points
2 answers One of the answers was accepted by the question author.

To Get Failover Cluster Role Infomration from Remote server

Hi Experts, Kindly help here : I am trying to get information from remote server, from Failover cluster I wanted to see Roles in ( failover cluster Manager) using powershell attcahed is the screen shot which I would want to see via…

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-11-04T05:52:28.99+00:00
Abhishek Reddy 61 Reputation points
commented 2025-03-03T18:21:33.38+00:00
Aldo Gonzalez 0 Reputation points
3 answers One of the answers was accepted by the question author.

Exporting user last login to M365 or Azure to .CSV file ?

How can I extract and export the last user login time to the M365 portal or Azure AD as .CSV file? is there any PowerShell script or GUI procedure?

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.
23,707 questions
asked 2022-10-10T13:43:24.61+00:00
EnterpriseArchitect 5,736 Reputation points
commented 2025-03-03T08:23:15.74+00:00
Rikard Nordin 0 Reputation points
3 answers

List extended permissions on AD

Hello I'm searching for a way to list the permissions and extended permissions on my active directory root. I've tried with the get-acl command and some others, but I’m not able to get it. Is it the correct way?

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,917 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 2020-08-07T11:28:22.767+00:00
Ruben Vazquez 1 Reputation point
commented 2025-03-03T08:13:04.87+00:00
Dan S 0 Reputation points
2 answers One of the answers was accepted by the question author.

Enable and Disable WinRM

Hi, For security reasons, our company wants to disable the WinRM service, but we don't know the impact of disabling it on the production platform. So we thought about the ability to disable the service and re-enable it automatically via GPO as needed…

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-06-23T10:09:38.4566667+00:00
Ines ROUISSI 25 Reputation points
commented 2025-02-28T01:24:54.93+00:00
mcbsys 126 Reputation points
3 answers

Connect-ExchangeOnline: Write-ErrorMessage : Expired or Invalid pagination request. Default Expiry time is 00:30:00

I wrote a script a while back that gets the the UserPrincipalName, DisplayName, LastLogonTime, CreationTime, Inactive Days, MailboxType, AssignedLicenses, ItemCount, MB Size, and Roles from MSOnline and Exchange Online. It works fine on one server and my…

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,797 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,256 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-26T17:20:13.937+00:00
Dane Briggs 281 Reputation points
commented 2025-02-27T12:13:22.58+00:00
Oliver 31 Reputation points
2 answers

Install-ADServiceAccount fail with unspecified error creating gMSA

Hello, I tried the script inside how-to-prerequisites to create a gMSA to test Azure AD Connect cloud sync; the script is this: $Name = 'aadsyncgMSA' $Description = "Azure AD Cloud Sync service account for LAB-DC1 server" #$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,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.
23,707 questions
asked 2022-12-06T18:20:08.753+00:00
Marco Mangiante 21 Reputation points
answered 2025-02-27T04:02:33.4733333+00:00
Gianfranco Cisneros Barreiro 5 Reputation points
3 answers

How to determine/Identify which Users in my Domain environment is able to join Domain on work stations

Hi. My issue is we have only allow 1 users in my enviroment is able to join domain on workstations. but i randomly checked with some users accounts their accounts are also able to join domain to work stations. So how can i identify which users hve…

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,821 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,293 questions
Access
Access
A family of Microsoft relational database management systems designed for ease of use.
423 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
asked 2023-01-19T07:21:56.5466667+00:00
Muhammad Moiz 0 Reputation points
answered 2025-02-26T17:02:19+00:00
Haim 26 Reputation points
2 answers

Pulling Total Physical Memory for Intune Enrolled Devices

I have been asked to determine how many of our current fleet of Intune enrolled Windows 10 devices have 4GB of physical memory. As far as I can tell the best way to get this information without going device by device in MEM is through Microsoft…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,293 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 2022-08-12T20:42:53.83+00:00
Damon Maranya 36 Reputation points
commented 2025-02-24T10:31:00.83+00:00
Swarupam Bhadra 0 Reputation points
1 answer

Need to remotely open Chrome Settings Help in foreground using powershell

I have a requirement to run a script everyday and automatically update "Chrome Browser" if a new version is released. I am using a powershell script that goes like this: Add-Type -Path "C:\seleniumdrivers\webdriver.dll"…

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-01-31T07:47:44.09+00:00
Anu B 6 Reputation points
commented 2025-02-23T10:26:58.84+00:00
Stanislav Kozubenko 0 Reputation points
3 answers

Convert Powershell to Exe

I am trying to convert a Ps script to an exe, does anyone know of a utility that can do this. The research I have done point to old scripts that are no longer available.

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-03-17T11:42:13.037+00:00
MrFlinstone 651 Reputation points
edited an answer 2025-02-22T00:56:13.16+00:00
Alexandr Smirnoff 10 Reputation points
2 answers

Calling PS scripts with PS remoting from ASP.NET Core 6 Web App issue

Hi, I am evaluating ASP.NET Core 6 Web App (front end for PowerShell scripts). When PS script does not contain Invoke-Command/New-PSSession, Web App does the job, but, with either Invoke-Command or New-PSSession inside PS script I always get very generic…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,803 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-19T14:29:46.74+00:00
Bojan Zivkovic 551 Reputation points
edited an answer 2025-02-21T13:04:14.3166667+00:00
Bojan Zivkovic 551 Reputation points
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,628 questions
asked 2025-01-15T16:09:03.5766667+00:00
Prashant Mishra 46 Reputation points
commented 2025-02-21T05:43:07.6466667+00:00
Rohit Ramchandra Shinde 0 Reputation points
3 answers

Download error - 0x80080005, can't update

updates 2024-04 Cumulative Update for .NET Framework 3.5 and 4.8.1 for Windows 11, version 22H2 for x64 (KB5036620) and Windows 11, version 23H2 don't download. I've tried many things, its been like this for months for the first update. The second one…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,077 questions
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,821 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 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,130 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 2024-04-20T22:50:47.6366667+00:00
answered 2025-02-19T15:26:25.87+00:00
Morgan JACOT 0 Reputation points
2 answers

Script to stop a program that runs at startup after 5 mins

Hi. I have created a task in task scheduler to start my G.Skill RGB software at startup. I am now creating another task that I would like to close it after 5 mins of running. I have got as far as a second task set as at startup with a 5 minute delay and…

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-19T12:31:27.3233333+00:00
Tuckstar84 0 Reputation points
answered 2025-02-19T14:16:37.3666667+00:00
MotoX80 35,626 Reputation points