5,381 questions with Windows Server PowerShell tags

Sort by: Updated
5 answers

Why can't I use Invoke-WebRequest twice?

Hi All, I need to rely on the first Invoke-WebRequest to piece together a URL for the second Invoke-WebRequest, but the second time is forcibly terminated. My Script: Import-Module -ErrorAction Stop…

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,381 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,077 questions
asked 2023-03-25T04:01:16.9866667+00:00
Hsieh, Iverson 45 Reputation points
answered 2024-05-03T09:27:33.0166667+00:00
Hsieh, Iverson 45 Reputation points
3 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,470 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,767 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,381 questions
asked 2024-05-02T10:04:32.0233333+00:00
answered 2024-05-03T08:59:41.06+00:00
Marcin Policht 11,005 Reputation points MVP
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,620 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,210 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,381 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,077 questions
asked 2024-04-24T19:29:34.0733333+00:00
Daniel Bulakh 15 Reputation points
commented 2024-05-03T07:29:38.4166667+00:00
Tianyu Sun-MSFT 27,356 Reputation points Microsoft Vendor
2 answers

How to get list of all attribute in AD

Hello, How To get list of all attribute in AD(default and custom attribute ) in csv file. Thanks Rich

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,897 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,381 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,077 questions
asked 2024-04-19T11:35:32.11+00:00
Richa Kumari 286 Reputation points
answered 2024-05-03T07:00:58.5466667+00:00
Neuvi Jiang 0 Reputation points Microsoft Vendor
1 answer

Pass null instead of double quotes in Powershell ConvertTo-Json

I'm passing a value to my JSON body for Invoke-RestMethod via PowerShell Instead of passing null it passes "" as below: $usermail = $null | ConvertTo-Json I'm expecting $usermail to be null but instead its appearing as "" …

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,381 questions
asked 2022-08-17T05:25:49.043+00:00
robcool 96 Reputation points
commented 2024-05-03T06:06:03.2+00:00
Kalra, Kapil 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,157 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,169 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,381 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,077 questions
asked 2024-04-30T07:44:01.64+00:00
Erik Burmester 0 Reputation points
commented 2024-05-03T05:56:18.8433333+00:00
Nehruji R 2,051 Reputation points Microsoft Vendor
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,004 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,356 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,381 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,077 questions
asked 2024-04-29T13:24:19.3866667+00:00
Sujith M 0 Reputation points
commented 2024-05-03T03:08:23.1366667+00:00
Sujith M 0 Reputation points
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,157 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,381 questions
asked 2024-05-02T07:49:22.73+00:00
Varma 1,145 Reputation points
commented 2024-05-02T19:09:30.84+00:00
Rich Matheisen 45,011 Reputation points
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,470 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,897 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,381 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,077 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
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,381 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,077 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,210 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,381 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
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,470 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,169 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,897 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,381 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,169 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,381 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,080 Reputation points Microsoft Vendor
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,897 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,381 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,077 questions
asked 2024-04-30T13:24:36.5566667+00:00
Michael-5966 20 Reputation points
commented 2024-05-01T20:31:40.68+00:00
Michael-5966 20 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,169 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,381 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 11,005 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,675 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,381 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,381 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,676 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,641 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,121 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,381 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,470 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,169 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,897 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,381 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,210 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,381 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