5,364 questions with Windows Server PowerShell tags

Sort by: Updated
1 answer

Exporting a list of users with no profile picture in a specific OU via Azure AD Powershell

So I haven't used PowerShell in a while wondering the best way to Export specific OU's users that do not have profile pictures tied to their account via Powershell. …

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,364 questions
asked 2022-09-30T08:51:16.413+00:00
Blank_Ini 1 Reputation point
edited a comment 2024-04-27T11:18:15.6466667+00:00
Sebastian Cerazy 306 Reputation points
2 answers One of the answers was accepted by the question author.

Script to Change Permissions on DNS Records

I've found myself in a situation where some computers in our environment are not able to update their records in DNS when their IP address changes. This is primarily due to DHCP servers creating the record on their behalf when the DHCP server issues or…

Windows DHCP
Windows DHCP
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.DHCP: Dynamic Host Configuration Protocol (DHCP). A communications protocol that lets network administrators manage centrally and automate the assignment of Internet Protocol (IP) addresses in an organization's network.
1,021 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,364 questions
asked 2021-04-13T15:48:49.07+00:00
SethRoberts-0739 31 Reputation points
commented 2024-04-26T16:17:34.8033333+00:00
Henry 0 Reputation points
2 answers One of the answers was accepted by the question author.

Bulk Assigning Phone Number to Microsoft Teams Users / Direct Routing

Hello All, I'm trying to bulk assign phone numbers for our end users in teams. The portal itself is very limited. I found this article. https://learn.microsoft.com/en-us/powershell/module/teams/set-csphonenumberassignment?view=teams-ps I…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,075 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,846 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,364 questions
asked 2022-06-16T15:27:20.89+00:00
MacSilverman 21 Reputation points
commented 2024-04-26T16:06:21.77+00:00
Perry Camacho 0 Reputation points
0 answers

Draining IIS before stopping services

Is there a best practice or clean procedure to drain IIS server from current sessions before stopping the services for the purpose of maintenance?

Internet Information Services
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,364 questions
asked 2024-04-26T14:11:55.5+00:00
Razzi29 311 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,607 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,364 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 questions
asked 2024-04-24T19:29:34.0733333+00:00
Daniel Bulakh 10 Reputation points
commented 2024-04-26T07:20:24.22+00:00
Tianyu Sun-MSFT 27,271 Reputation points Microsoft Vendor
1 answer

Connect-OrganizationAddInService using Entra ServicePrincipal ID

I am trying to find if someone has successfully done this, basically automatize the deployment of an Add-in to Office 365 Client Secret: "1111111111111111111" (This is a secret that should be protected and not shown, I am having a look how to…

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,177 questions
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
508 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,364 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,474 questions
asked 2024-04-25T20:01:49.8666667+00:00
Juan Perez 0 Reputation points
answered 2024-04-26T07:14:55.96+00:00
Vasil Michev 95,341 Reputation points MVP
1 answer

SQL server backup in a 2019 VM to s3 using backup URL

Hi I have set up a Windows Server 2019 VM with SQL server 2016. I want to take the backup of SQL server in AWS S3. It should have monitoring and auditing capability and cost effective and secure. I have looked at below…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,715 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,128 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,364 questions
asked 2024-04-18T04:47:01.0433333+00:00
Pradeep 21 Reputation points
commented 2024-04-25T02:58:23.2+00:00
LucyChen-MSFT 965 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Deactivate a DHCP scope using Powershell

Hello, I was wondering has anyone deactivated DHCP scopes using Powershell below? I'm just learning how to use Powershell and I know how to update Scope Options using Powershell but I was wondering can you Deactivate it using PowerShell? I would like…

Windows DHCP
Windows DHCP
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.DHCP: Dynamic Host Configuration Protocol (DHCP). A communications protocol that lets network administrators manage centrally and automate the assignment of Internet Protocol (IP) addresses in an organization's network.
1,021 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,364 questions
asked 2021-10-28T14:45:14.463+00:00
Mike R 81 Reputation points
commented 2024-04-25T02:57:20.1266667+00:00
Rich Matheisen 44,776 Reputation points
3 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,364 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.
902 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.
458 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,059 questions
asked 2024-04-24T05:05:14.7+00:00
Rising Flight 3,731 Reputation points
answered 2024-04-24T18:49:01.1133333+00:00
Rich Matheisen 44,776 Reputation points
2 answers

Installing VS build tools with out any prompt

I am using following script to VSbuild tools 2022, but what is happening it makes to go that folder and run manually even I have provided arguments in the below script which should not to prompt for window, script: Create the 'C:\software' directory if…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,607 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,364 questions
asked 2024-04-21T05:57:43.6766667+00:00
Varma 1,120 Reputation points
answered 2024-04-24T15:24:02.7033333+00:00
Rich Matheisen 44,776 Reputation points
0 answers

Risk and consequence when executing Kerberos password reset in a Hybrid Azure AD - OnPremise AD DS?

What are the risks and consequences of resetting the Kerberos krbtgt account during business hours using the steps defined…

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,859 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,364 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 questions
Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,474 questions
asked 2024-04-24T12:19:23.93+00:00
EnterpriseArchitect 4,741 Reputation points
edited the question 2024-04-24T12:20:26.2133333+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,128 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.
514 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,364 questions
Microsoft Entra
asked 2024-04-23T13:20:20.49+00:00
Guilherme Ferraz | Nano TI 0 Reputation points
answered 2024-04-24T05:24:38.3733333+00:00
Yanhong Liu 1,780 Reputation points Microsoft Vendor
0 answers

PowerShell ISE script to access Azure Secrets and Azure Certificate Thumbprint using TenentID

Hello All, I am looking for guidance on writing PS ISE script to get Azure Secrets and Azure Certificate Thumbprint using TenantID. Any help would be highly appreciated. 

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,364 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 questions
asked 2024-04-22T19:11:16.91+00:00
Hemant 1 Reputation point Microsoft Vendor
1 answer One of the answers was accepted by the question author.

how can I find email address, cn number etc. in Get-CalendarDiagnosticObjects DisplayAttendeesAll names ?

Good Day Friends, I want to take calendar events with attendee list, by that I'm using CalendarDiagnosticObjects in PS, but in DisplayAttendeesAll part it's just showing the names. There are several people in the organization or in meeting request (as…

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,177 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,364 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 questions
asked 2024-04-17T07:13:22.0166667+00:00
Guney 40 Reputation points
accepted 2024-04-22T08:04:07.76+00:00
Guney 40 Reputation points
2 answers

Cannot connect to ISCSI target Server

Hello dear all, I have this issues when i'm trying to connect this to iSCSI initiators (sea-svr1 & sea-svr2) to my target server (sea-dc1). First of all, i had installed Failover clustering into my two initiators, then installed the…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,458 questions
Windows Server Clustering
Windows Server Clustering
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Clustering: The grouping of multiple servers in a way that allows them to appear to be a single unit to client computers on a network. Clustering is a means of increasing network capacity, providing live backup in case one of the servers fails, and improving data security.
958 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,364 questions
asked 2024-04-18T09:05:07.7733333+00:00
Simon ETOUNDI 0 Reputation points
answered 2024-04-22T06:54:02.6166667+00:00
Alex Bykovskyi 1,681 Reputation points
1 answer

How to BULK GROUPS to a User

Hello, As part of our onboarding process we are required to create user accounts in Microsoft admin center. Once created, we need to add this user to multiple different groups. The process to do this in the admin center is incredibly frustrating and is…

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,364 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,474 questions
asked 2024-04-17T00:55:26.9633333+00:00
John Corporal 0 Reputation points
commented 2024-04-22T04:27:59.7433333+00:00
Navya 3,915 Reputation points Microsoft Vendor
2 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.
10,619 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,748 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,128 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,168 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,364 questions
asked 2024-04-20T22:50:47.6366667+00:00
edited an answer 2024-04-22T01:31:30.06+00:00
Hania Lian 7,866 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Azure Cloud Shell error while deploying powershell scripts

I'm trying to create resources in azure using ARM templates via Powershell scripts and I'm trying to run the script in Azure Cloud Shell it used to successfully deploy previously, but currently I'm facing this issue frequently & there were no code…

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
636 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,364 questions
asked 2022-04-11T06:11:13.003+00:00
Shivangi Devgun 31 Reputation points
commented 2024-04-19T17:30:02.53+00:00
Bollwerk, Pete 41 Reputation points
1 answer

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,859 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,364 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 questions
asked 2024-04-19T11:35:32.11+00:00
Richa Kumari 286 Reputation points
commented 2024-04-19T15:31:20.1066667+00:00
Rich Matheisen 44,776 Reputation points
1 answer

Need some help to target the Group Policy to enable the NTLM audit?

I must audit any computers still using NTLM v1 in my AD Domain. Do I need to enable these group policies for all Windows servers and workstations in my AD Domain or just the Domain Controllers? Computer Configuration\Windows Settings\Security…

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,859 questions
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,754 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,721 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,364 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 questions
asked 2024-04-18T12:53:32+00:00
EnterpriseArchitect 4,741 Reputation points
answered 2024-04-19T06:01:42.2733333+00:00
Yanhong Liu 1,780 Reputation points Microsoft Vendor