5,537 questions with Windows Server PowerShell tags

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

Some Weird services found in services.msc of one of our server

Hi, S1 Screenshots - SEQGDCVMC179.pdf, Some Weird services found in services.msc of one of our server, it showing Path mentioned of executable is -  C:\Windows\system32\cmd.exe /C "cmd /c powershell.exe -NoP -NonI -W Hidden…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,133 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,537 questions
asked 2024-10-15T12:09:26.63+00:00
Sadanand Joshi 20 Reputation points
commented 2024-10-18T19:42:01.6+00:00
Rich Matheisen 46,796 Reputation points
1 answer One of the answers was accepted by the question author.

How to solve Error 0xC004F069

Good morning. I have the following problem when I want to activate my virtual machine within Hyper-V -On a computer running Microsoft Windows non-core edition, run 'slui.exe 0x2a 0xC004F069' to display the error- On my physical server I have a Windows…

System Center Virtual Machine Manager
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,133 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,537 questions
asked 2024-10-14T16:42:52.4166667+00:00
Ricardo Hernández 20 Reputation points
commented 2024-10-18T19:34:17.96+00:00
Ricardo Hernández 20 Reputation points
1 answer

Unable to fetch disabled users across subscriptions

Hello Team, I'm trying to get list of disabled users across all subscriptions under our tenant. But when I run the below script it is not fetching the data instead loading VS code. If I run Get-disabled users command it is giving the list of disabled…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,250 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,537 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
asked 2024-10-18T06:54:27.2733333+00:00
Mahadev, Rakesh [HAEA] 140 Reputation points
commented 2024-10-18T17:15:56.66+00:00
Mahadev, Rakesh [HAEA] 140 Reputation points
1 answer

PermissionDenied: (PS_DnsServerPrimaryZone:root

I am running into an issue when trying to use a service account that is NOT a domain admin to create dns forward lookup zones on a remote DC I am getting the error below; Invoke-Command -Session $session -ScriptBlock { …

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,039 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,537 questions
asked 2022-05-20T09:28:32.767+00:00
Randy Bordeaux 6 Reputation points
answered 2024-10-18T08:58:15.8866667+00:00
Primoz Ivancic 0 Reputation points
1 answer

remotely join to the domain

Hi All, I am connected to a VM, let's say 192.168.10.10 (srv01.contoso.com), and I am trying to join a remote VM (192.168.10.52) to the domain from this VM. 192.168.10.52 is a new Azure VM that has been created. My requirement is to join this newly…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,768 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,512 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,133 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,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,537 questions
asked 2024-10-14T11:14:23.1+00:00
Rising Flight 4,596 Reputation points
answered 2024-10-18T06:40:04.43+00:00
Clément BETACORNE 2,266 Reputation points
1 answer

Custom Scheduling Intervals for Intune Proactive Remediation

Hi Everyone, I’ve been using Intune’s proactive remediation feature and noticed that the scheduling options are limited to intervals like once an hour. However, I need more granular control, such as scheduling tasks to run every minute or every two…

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,537 questions
Microsoft Intune Reporting
Microsoft Intune Reporting
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Reporting: The process of giving an account of something that has been observed, heard, done, or investigated.
67 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,110 questions
asked 2024-10-17T11:03:58.99+00:00
Swahela Mulla 95 Reputation points
answered 2024-10-18T01:46:02.0133333+00:00
Crystal-MSFT 48,931 Reputation points Microsoft Vendor
1 answer

Are you able to share the PowerShell Script/YAML File codes from a specific YouTube video?

Hello, I recently watched the YouTube video titled "Integrating Power BI Deployment Pipelines into Azure DevOps and Azure Pipelines | OD29" by Microsoft Developer. In the video, the presenter demonstrates two methods for automating Azure…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,250 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,537 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
asked 2024-10-16T21:31:27.03+00:00
Gerome Coralde 0 Reputation points
answered 2024-10-17T18:11:59.8666667+00:00
Rich Matheisen 46,796 Reputation points
1 answer

What are the steps and procedure to use gMSA as the Windows Server Service Account?

After creating the gMSA using the below PowerShell, how can I successfully replace the services in all of my Windows Server Application servers? New-ADServiceAccount -Name New-gMSA -DNSHostName Mydomain.com -PrincipalsAllowedToRetrieveManagedPassword…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,133 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,578 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,843 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,537 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
asked 2024-10-15T11:16:18.71+00:00
EnterpriseArchitect 5,406 Reputation points
commented 2024-10-17T11:43:27.6033333+00:00
Marcin Policht 24,630 Reputation points MVP
2 answers

I have to resolve the error nginx/1.24.0 can you please guide me about the error and how I can resolve the error

I have to resolve the error nginx/1.24.0 can you please guide me about the error and how I can resolve the error

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,133 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
990 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,336 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,537 questions
asked 2024-10-16T22:05:48.92+00:00
Ehtisham 0 Reputation points
answered 2024-10-17T07:21:29.3766667+00:00
Neuvi Jiang 1,300 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

Ms Graph - Disable User Account

Hi, I am writing a PowerShell script to disable Azure AD users that are not synced from on-premises. As part of the script I am running a foreach loop to disable the users with the following command: $params = @{ AccountEnabled = "false" …

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,113 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,537 questions
asked 2022-07-06T10:16:51.793+00:00
Son 316 Reputation points
answered 2024-10-17T03:29:19.6966667+00:00
MegaMunch 0 Reputation points
1 answer

While I ak all deleting the resources the money is also cutting automatically

Can any one help mee to stop the cutting moneyy. How I need to dissable the all resources and servers.how to we delete the resource mover

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,616 questions
Azure Resource Mover
Azure Resource Mover
An Azure service used for moving multiple resources between Azure regions.
235 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,537 questions
asked 2024-10-13T01:46:01.0933333+00:00
yaswanth kumar chennareddy 0 Reputation points
edited the question 2024-10-17T01:41:52.76+00:00
Tianyu Sun-MSFT 30,821 Reputation points Microsoft Vendor
0 answers

I'm having trouble in collecting performance data from virtual machines under Hyper-v virtualization and having empty results in collecting the VM metrics what could be the reason / rootcause of this issue?

I'm experiencing an issue with Performance Data Helper (PDH) counter collection in my Hyper-V cluster. Trouble in collecting performance data from virtual machines under Hyper-v virtualization and having empty results in collecting the VM metrics what…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,133 questions
Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,722 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,537 questions
asked 2024-10-16T06:30:17.9+00:00
logeshwaran M 0 Reputation points
1 answer One of the answers was accepted by the question author.

Key not valid for use in specified state

I have using an Azure App Registration and i have encrypted client secret using the below syntax from powershell. $myfile = 'c:\temp\myappreg.key' Read-Host -assecurestring | convertfrom-securestring | out-file $myfile I am using below lines in the…

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.
12,113 questions
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,542 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,537 questions
asked 2024-10-13T19:58:38.32+00:00
Rising Flight 4,596 Reputation points
accepted 2024-10-14T18:45:17.0266667+00:00
Rising Flight 4,596 Reputation points
1 answer

Automate firewall policy rule update in GPO

Hello Team, We are applying firewall rules for all my domain machines through GPO. I have three GPOs for firewall rules that apply to workstations, servers, and domain controllers. Therefore, we have different sets of inbound and outbound firewall rules…

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,537 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
asked 2024-10-10T08:42:20.5566667+00:00
P Mowleeswaran 20 Reputation points
edited a comment 2024-10-14T04:08:17.2566667+00:00
P Mowleeswaran 20 Reputation points
1 answer

PowerShell Schedule Task

Hello, I have powershell script to insert some data into SQL server, when i double click on the .ps1 file i can see the data in SQL server. Then i want to make this script running every hours and i schedule this using windows task scheduler. But…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,133 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,537 questions
asked 2024-10-03T02:44:58.6966667+00:00
Handian Sudianto 4,976 Reputation points
answered 2024-10-13T10:58:34.4133333+00:00
Christopher Bliss 75 Reputation points
7 answers

Web Front End for PS script - issues with PS remoting

Hi, I am evaluating Web Front End solution for backend PowerShell scripts - every single time backend PowerShell script fails here: $session = New-PSSession -ComputerName dcName -ConfigurationName DomainAdmins Invoke-Command -Session $session…

Internet Information Services
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,133 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,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,537 questions
asked 2024-10-04T19:01:07.87+00:00
Bojan Zivkovic 461 Reputation points
edited a comment 2024-10-12T16:03:13.61+00:00
MotoX80 33,996 Reputation points
2 answers One of the answers was accepted by the question author.

unable to connect Azure

Hi All I use the below syntax to connect to Azure Powershell, but today i am unable to connect to azure powershell. it prompts me to enter tenant and subscription number. I have 1500 subscriptions, how can i know the subscription number for my…

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,537 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,904 questions
asked 2024-09-19T15:36:47.1233333+00:00
Glenn Maxwell 11,436 Reputation points
accepted 2024-10-11T23:15:43.1733333+00:00
Glenn Maxwell 11,436 Reputation points
2 answers

Extend truncated powershell error output | Get-AzAutomationJobOutputRecord

Hi, I am trying to run the below cmdlet but the output is truncated and I am unable to expand it. Get-AzAutomationJobOutput -Id $job.JobId -AutomationAccountName Myautomation -ResourceGroupName MyautomationRG -Stream "any" | …

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,250 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,537 questions
asked 2021-06-03T08:36:08.783+00:00
hitender singh 131 Reputation points
answered 2024-10-11T01:12:33.89+00:00
2 answers One of the answers was accepted by the question author.

A positional parameter cannot be found

Hi All, My script uses the Get-QADUser syntax, and I want to replace it with Get-ADUser. However, when I use the Get-ADUser syntax, I am encountering the following error: A positional parameter cannot be found that accepts argument 'False'. Please guide…

Microsoft Exchange Online
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,133 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,578 questions
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,542 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,537 questions
asked 2024-10-07T22:18:38.4933333+00:00
Glenn Maxwell 11,436 Reputation points
accepted 2024-10-10T19:45:13.35+00:00
Glenn Maxwell 11,436 Reputation points
1 answer

Automatisation of server environment with virtualbox, packer and powershell

Hi, I am currently working on a project and keep having the same error. Does anybody know why I am getting this error(see screenshot)? Thanks in advance! The objective is to automate the setup of a Windows Server 2022 environment using Packer and…

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,537 questions
asked 2024-10-10T14:08:12.67+00:00
Lisa D'hooghe 0 Reputation points
commented 2024-10-10T19:40:47.0066667+00:00
Rich Matheisen 46,796 Reputation points