5,449 questions with Windows Server PowerShell tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

Scripting installation of extension in Edge

What is the best way to force installation of extension in Edge (and Chrome)? I have 2 possibilities but which one is preferred? Use ExtensionSettings registry string and configure the extension Use the ExtensionInstallForceList registry key, obtain…

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,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,449 questions
asked 2024-06-16T21:34:10.83+00:00
Johan Pol 46 Reputation points
accepted 2024-06-21T21:08:42.8566667+00:00
Johan Pol 46 Reputation points
3 answers

How to get a list of AD users that are set to change password at next logon

Hello, I am trying to export a list of all users in AD including a column for "ChangePasswordAtLogon" attribute. I have tried a lot of different variations but none of them have worked. This is one of the formats that didn't work. …

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,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,449 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,298 questions
asked 2024-06-19T22:39:41.01+00:00
Vahid 0 Reputation points
answered 2024-06-20T15:03:03.7433333+00:00
Rich Matheisen 45,671 Reputation points
2 answers

AZure VM backup failure report notification email through Powershell

Please suggest how to create a AZure VM backup failure notification email using Powershell. I have script to enable the recovery service vault and take backup . I need to add the failure notification also Recovery service vault is taking the…

Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,185 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,449 questions
asked 2022-06-30T07:33:08.7+00:00
Azure-learning 56 Reputation points
answered 2024-06-20T10:12:46.81+00:00
Tristano,G,Giuseppe,JBP12 R 21 Reputation points
1 answer

PowerShell script = how to remediate "This security ID may not be assigned as the owner of this object."

Hello, I created a Windows Server 2016 PowerShell script which copies & replaces files from Source Files Location to a Network Disk Share Target Files Location that are 1 day old as follows: robocopy G:\Source_Files_Location…

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,449 questions
asked 2024-06-18T09:28:50.9966667+00:00
techresearch7777777 1,801 Reputation points
answered 2024-06-18T13:19:57.3933333+00:00
MotoX80 32,726 Reputation points
2 answers

Command not working: "Get-PrivilegedRoleAssignment"

Hello everyone, I was thinking to create a script to enable my roles in the morning when logging in. I'm connected to our tenant, installed and connected to the PIM service - then try to retrieve the role assignments it just bombs out. It seems this…

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,449 questions
asked 2021-08-17T07:23:40.487+00:00
0rku5 66 Reputation points
answered 2024-06-18T09:47:11.0866667+00:00
Fahad Nadkar 0 Reputation points
1 answer

I ran Microsoft Security Scan and a VirTool:Win32\DefenderTamperingRestore was found and supposedly removed but other issues remain.

After the Security Scan I found the log showing the VirTool:Win32/DefenderTamperingRestore and Removed which is a rootkit? I then ran a Get-MpComputerStatus command in PowerShell and found Antispyware Enabled as false even though I have an antivirus and…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,142 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,449 questions
asked 2024-06-15T15:19:41.1+00:00
JD 0 Reputation points
answered 2024-06-18T08:38:51.36+00:00
Jing Zhou 5,135 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Ways on how to manage azure Devices and Find device location per office

Hi, Im on creating some automation to delete all stale devices in Entra ID (not in intune) and i need to find a way to find each device location so i can separate them every office. are there any ways to check the device location or physcial location? im…

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,449 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,298 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,492 questions
asked 2024-06-04T13:06:28.0866667+00:00
Darren Ramos 40 Reputation points
accepted 2024-06-18T07:30:41.23+00:00
Darren Ramos 40 Reputation points
2 answers

Wsus client not showing in WSUS server- 0x8024401C error

got a windows domain environment. got more than 100 clients- all are server2016 OS.. all shows up in WSUS , except 1 client (2016 server) wsus configured with gpo. no issues from wsus server side - because all clients connects/shows up properly except…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,578 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,449 questions
asked 2022-06-01T06:24:49.137+00:00
mr.X 6 Reputation points
edited a comment 2024-06-17T19:59:21.2833333+00:00
obulesh dandeboina 0 Reputation points
0 answers

How to pass proxy in a PowerShell script for installing defender software

I am getting an error when running a PowerShell script to install defender software on my development server. The error states that "defender.ps1 is not recognized" and that there is an "err: invalid token." I believe this is because…

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,449 questions
asked 2024-06-14T13:47:45.91+00:00
Sara 421 Reputation points
2 answers

Cannot run New-AzActionGroup after New-AzActionGroupReceiver

Hello, I am trying to create a new action group using PS. The group will use webhook. To achieve this I need to create an action group receiver. Code: $ActionGroupShortName = 'Alert' $ActionGroupReceiverName =…

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,994 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,449 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,298 questions
asked 2024-05-16T10:59:45.49+00:00
Oleg Tserkovnyuk 586 Reputation points
edited an answer 2024-06-13T13:43:04.4266667+00:00
Oleg Tserkovnyuk 586 Reputation points
1 answer One of the answers was accepted by the question author.

Ways on how to manage azure Devices and Find device location per office

Hi, Im on creating some automation to delete all stale devices in Entra ID (not in intune) and i need to find a way to find each device location so i can separate them every office. are there any ways to check the device location or physcial location? im…

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,449 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,492 questions
asked 2024-06-04T13:04:03.4933333+00:00
Darren Ramos 40 Reputation points
accepted 2024-06-13T11:24:15.9766667+00:00
Darren Ramos 40 Reputation points
1 answer One of the answers was accepted by the question author.

Problems with DNS policy

Hi, community. I made a DNS policy for subnet, zone scope and added record type A. My A record, made above, resolving on client from subnet, it's OK. But while policy enabled, that client can't resolving other records in domain. Appears error: ***…

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,429 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,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,449 questions
asked 2023-09-15T14:37:24.6766667+00:00
Nick Tuktarov 25 Reputation points
commented 2024-06-12T16:13:52.8166667+00:00
Judikael Nedev 0 Reputation points
0 answers

PowerShell custom module call crashing PowerShell session

Hey, Currently running into an issue with a custom PowerShell script that I own. The script has been in production almost daily for the past 4-5 years but the past couple weeks it's been erroring out on me for reasons I don't understand. The script in…

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,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,449 questions
asked 2024-06-12T10:43:03.59+00:00
Kato Baade 21 Reputation points
commented 2024-06-12T16:04:59.46+00:00
Rich Matheisen 45,671 Reputation points
1 answer One of the answers was accepted by the question author.

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,530 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,578 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,449 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,298 questions
asked 2024-04-30T07:44:01.64+00:00
Erik Burmester 20 Reputation points
accepted 2024-06-12T05:53:11.75+00:00
Erik Burmester 20 Reputation points
3 answers One of the answers was accepted by the question author.

Group membership

Hi All The following script doesn't work for AD groups. Members of ADGroup1 should be able to add or remove users from other AD Group. please guide me. # Define the $owner that will be able to manage the members of $group $owner = "ADGroup1"; …

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,594 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,429 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,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,449 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,298 questions
asked 2024-06-10T12:51:34.3+00:00
Roger Roger 5,446 Reputation points
accepted 2024-06-10T17:17:01.35+00:00
Roger Roger 5,446 Reputation points
2 answers

Can I put the value of instanceDurationInDays in minutes for the QA while creating access reviews using powershell?

I am able to create an azure access reviews with Graph API 1.0 using PowerShell. Now, there is a property called instanceDurationInDays which should have an integer value. The access review will remain active for the number of days of the value of…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,344 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,449 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,298 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,492 questions
asked 2024-05-27T13:42:49.5833333+00:00
Sumit Bhargav 0 Reputation points
commented 2024-06-10T11:06:28.2733333+00:00
Shweta Mathur 29,531 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Troubleshooting Non-functioning Mouse Cursor on Laptop

My laptop's mouse cursor is not showing up. I have tried connecting a wired mouse to check if the issue is with the touchpad. However, even the wired mouse is not working. The problem is temporarily solved upon restarting the PC, but it comes back after…

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
6,059 questions
Microsoft System Center
Microsoft System Center
A suite of Microsoft systems management products that offer solutions for managing datacenter resources, private clouds, and client devices.
899 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,578 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,903 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,449 questions
asked 2024-06-07T17:31:42.4+00:00
SANJEDA NASRIN 20 Reputation points
commented 2024-06-09T20:10:14.7033333+00:00
VasimTamboli 4,780 Reputation points
2 answers

Access to C:\Data not allowed . Error Code 22853

Access to C:\Data not allowed . Error Code 22853 Any workway around this ?

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,065 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,106 questions
Azure Data Catalog
Azure Data Catalog
An Azure service that serves as a system of registration and system of discovery for enterprise data assets.
100 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,449 questions
asked 2023-02-24T07:06:54.58+00:00
Sushan 0 Reputation points
commented 2024-06-08T17:03:05.74+00:00
Das, Dwaipayan 0 Reputation points
3 answers One of the answers was accepted by the question author.

Could someone kindly help me to set the max memory for SQL via powershell

Hi Experts, Could someone please help me to set the max memory in SQL for the below request. I have checked the below link. But I am not able to make out. Because I am not expertise in scripting and PowerShell. So need your help. …

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,293 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,578 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,449 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,298 questions
asked 2024-06-06T06:45:34.3766667+00:00
Jimmy Afflick 80 Reputation points
commented 2024-06-07T21:19:25.4266667+00:00
Erland Sommarskog 1.1L Reputation points MVP
1 answer One of the answers was accepted by the question author.

I am getting error, When I am trying to update the GPO by executing gpupdate /force.

Hi Experts, I have applied the GPO to disable windows auto update and Trying to update the GPO. But I am getting below error while I am trying to update the GPO. "Windows failed to applied the {F312195E-sD90-447A-A3F5-08DFFA24735E) settings .…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,578 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,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,449 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,298 questions
asked 2024-05-21T06:21:54.51+00:00
Jimmy Afflick 80 Reputation points
commented 2024-06-07T17:51:48.2966667+00:00
Jimmy Afflick 80 Reputation points