5,382 questions with Windows Server PowerShell tags

Sort by: Updated
2 answers

Add exact upns

Hi All i have userprincipalnames in a csv file in the below format. usernames user1@contoso.com user2@contoso.com i want to add these users to AD group from powershell. if there are any other user with user1.a@contoso.com or user2.a@contoso.com. i…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,469 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,374 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,894 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,382 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,076 questions
asked 2024-04-30T18:33:23.3266667+00:00
Glenn Maxwell 10,146 Reputation points
edited a comment 2024-05-02T18:57:10.3333333+00:00
Rich Matheisen 45,011 Reputation points
0 answers

How can I make it so that a standard user can install graphic drivers/open pre-specified apps with administrative permissions?

I have intentions of making it possible for a standard user on my computer to be able to install drivers without the constant need for UAC prompting for admin password. I'm 90% sure this is possible with the right solution, I just haven't been able to…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,649 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,205 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,382 questions
asked 2024-05-02T14:22:39.3933333+00:00
James Tong 0 Reputation points
commented 2024-05-02T18:52:19.3+00:00
Rich Matheisen 45,011 Reputation points
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,382 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,076 questions
asked 2024-04-30T15:59:10.87+00:00
Ramakrishna Abhijeet P 70 Reputation points
commented 2024-05-02T18:41:29.0066667+00:00
Rich Matheisen 45,011 Reputation points
2 answers

Windows 11 remove apps for all users?

Several years back I put together a Powershell script for Windows 10 to remove all unwanted apps. It would remove them for the current user, as well as from the default user profile template, so that they would not install for new user profiles. …

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,205 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,382 questions
asked 2022-09-22T18:09:48.783+00:00
Brian Goldstein 6 Reputation points
commented 2024-05-02T17:04:32.37+00:00
mr.Eilsafin 1 Reputation point
2 answers

Can someone explain to me how to Get Mailbox folder permissions in recoverable items use PowerShell? Its possible are not

Get-MailboxFolderPermission -Identity " testid@223.microsoft.com\Recoverable Items"

Outlook
Outlook
A family of Microsoft email and calendar products.
3,001 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
4,899 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,355 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,382 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,076 questions
asked 2024-04-29T13:24:19.3866667+00:00
Sujith M 0 Reputation points
commented 2024-05-02T15:41:11.08+00:00
Rich Matheisen 45,011 Reputation points
2 answers

How to prevent installation of application on system . using cmd or powershell or service?

Why disabling/stopping windows MSI service wont stop installing/uninstalling of the applications?

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,469 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.
4,766 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,382 questions
asked 2024-05-02T10:04:32.0233333+00:00
answered 2024-05-02T14:56:08.6266667+00:00
Zunhui Han 0 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

What is the purpose of enabling Windows Server internal firewall for internal AD Domain servers?

People, I wonder if enabling the internal Windows Server firewall feature is going to be very helpful or not ? Because I must also create the firewall rule to allow RDP on port 3389 and ICMP ping and also the WMI for the PowerShell remoting feature for…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,469 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,165 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,894 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,728 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,382 questions
asked 2024-05-02T02:33:44.8766667+00:00
EnterpriseArchitect 4,741 Reputation points
commented 2024-05-02T13:11:54.15+00:00
EnterpriseArchitect 4,741 Reputation points
1 answer

Problemas com a opção "Alterar a senha no proximo logon"

Prezados, bom dia!!! Estou com o seguinte problema e gostaria de entender se mais alguém já passou pelo mesmo: Minha infraestrutura funciona normalmente, porém, quando vou até um usuário e habilito a opção "Alterar a senha no próximo login",…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,165 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.
241 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.
515 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,382 questions
Microsoft Entra
asked 2024-04-23T13:20:20.49+00:00
Guilherme Ferraz | Nano TI 0 Reputation points
commented 2024-05-02T08:36:24.88+00:00
Yanhong Liu 2,005 Reputation points Microsoft Vendor
1 answer

PowerShell command to execute below SSIS.exe file with no prompting window

HI Please assist me in executing below command, you can see respective .exe file is there in the respective folder. Please assist on this

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,152 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,382 questions
asked 2024-05-02T07:49:22.73+00:00
Varma 1,145 Reputation points
commented 2024-05-02T08:18:58.24+00:00
Varma 1,145 Reputation points
2 answers One of the answers was accepted by the question author.

powershell to get all users and their managers recursively

I am looking to pull all Active Directory users and their managers all the way up to the chain. I get how to do get-aduser -filter * -properties * | select name, manager export-csv -path "csv path" I also get: $Users = Get-ADUser -filter *…

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,894 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,382 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,076 questions
asked 2024-04-30T13:24:36.5566667+00:00
Michael-5966 0 Reputation points
commented 2024-05-01T20:31:40.68+00:00
Michael-5966 0 Reputation points
1 answer

Using Get-Certificate with a Microsoft CA

I would like to use Get-Certificate with a Microsoft CA. https://learn.microsoft.com/en-us/powershell/module/pki/get-certificate?view=windowsserver2022-ps The documentation doesn't really show many examples. Does anyone know how to do this?

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,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,382 questions
asked 2024-05-01T18:01:44.4466667+00:00
ComputerHabit 781 Reputation points
answered 2024-05-01T18:38:18.4333333+00:00
Marcin Policht 10,845 Reputation points MVP
3 answers

Get the Folder GUID using Power Shell

I am trying to get the folder GUID using its URL, i tried this power shell:- #Variables $SiteURL = "https://*****.sharepoint.com" $ServerRelativeUrl= "/Shared Documents/FolderA" Try { #Setup the context Connect-PnPOnline…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,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,382 questions
asked 2022-05-13T01:54:43.933+00:00
john john 946 Reputation points
commented 2024-05-01T16:52:04.2133333+00:00
Cheri Bell 1 Reputation point
1 answer

No certification

Hello, my name is Aditya Verma. I recently learned and passed all the modules for the course Automating Administration with PowerShell( AZ-040T00). However, I did not find any certifications in the credentials section. I have passed AZ-900 and it showed…

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,382 questions
asked 2024-04-30T11:00:23.8333333+00:00
Aditya Verma 0 Reputation points
edited the question 2024-05-01T04:42:36.55+00:00
PRADEEPCHEEKATLA-MSFT 77,516 Reputation points Microsoft Employee
0 answers

Getting an error in a runbook.

Hi there, I've created a runbook to handle offboarding users in office 365. I'm connecting to the graph API, and exchangeonline module. My runbook is working flawlessly except for one specific line which is giving me an error when ran in the runbook (I…

Microsoft Exchange Online
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,633 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,120 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,382 questions
asked 2024-04-30T17:12:23.7733333+00:00
Tristan MacDonald 0 Reputation points
commented 2024-05-01T02:26:33.12+00:00
Jayce Yang-MSFT 1,246 Reputation points Microsoft Vendor
2 answers

Issues to create or modify files in Scripts Folder in Sysvol, Windows server 2012 (Access denied)

Issues to create or modify files in Scripts Folder in Sysvol, Windows server 2019 (Access denied) after in-place upgrade the windows server from 2012 R2 to 2016 then 2019

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,469 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,165 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,894 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,382 questions
asked 2024-04-30T04:38:39.93+00:00
Sambhaji Khairnar 0 Reputation points
answered 2024-05-01T01:29:17.9733333+00:00
Daisy Zhou 18,706 Reputation points Microsoft Vendor
3 answers

Introduction To Windows Command Line

Question: User4 has a lot of files and folders in their Documents folder. The flag can be found within one of…

Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,757 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,205 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,382 questions
asked 2023-05-26T05:31:28.6966667+00:00
Cyberkur Syiem 0 Reputation points
answered 2024-04-30T22:53:28.5333333+00:00
s67533650 0 Reputation points
4 answers

export the output

Hi all i want to execute the below syntax on few servers and i have created a collection and added the Servers to it. When i execute manually from powershell i get the output but i want to export that output to a text file under c:\windows\Temp 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,382 questions
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Deployment: The process of delivering, assembling, and maintaining a particular version of a software system at a site.
905 questions
Microsoft Configuration Manager Application
Microsoft Configuration Manager Application
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Application: A computer program designed to carry out a specific task other than one relating to the operation of the computer itself, typically to be used by end users.
459 questions
Microsoft Configuration Manager
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,076 questions
asked 2024-04-24T05:05:14.7+00:00
Rising Flight 3,731 Reputation points
commented 2024-04-30T21:24:34.4966667+00:00
Rich Matheisen 45,011 Reputation points
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.
10,633 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,382 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,728 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,360 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,076 questions
asked 2023-11-29T01:41:23.4466667+00:00
EnterpriseArchitect 4,741 Reputation points
answered 2024-04-30T16:42:38.88+00:00
Andrew parle 0 Reputation points
1 answer

Change Product Key of Windows Server 2022 using Ansible and/or PowerShell script

Hi there, I am trying to automate the process of provisioning a Windows Server based Virtual Machine using Azure and Ansible. My company has some Windows Server product keys available through the Microsoft Partner Program. My goal is to use one of these…

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,152 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,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,382 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,076 questions
asked 2024-04-30T07:44:01.64+00:00
Erik Burmester 0 Reputation points
commented 2024-04-30T12:16:49.76+00:00
Erik Burmester 0 Reputation points
2 answers

Windows Powershell and Visual Studio Running Extremely Slow

Hello, I work as an IT support engineer for my company and a user reached out to me saying that they have been experiencing issues with their VS code and Powershell commands running very slow. I recreated the same environment on my laptop, and I had the…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,618 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,382 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,076 questions
asked 2024-04-24T19:29:34.0733333+00:00
Daniel Bulakh 15 Reputation points
commented 2024-04-30T10:55:28.1966667+00:00
Simon Wüllhorst 0 Reputation points