5,628 questions with Windows Server PowerShell tags

Sort by: Updated
2 answers

Nested Virtualization - Install Android Studio on Azure VM

Hi, I can't do Android Studio works on Azure VM I setup several Azure VM but I allways get the same results Please, could somebdoy help me with this installation. Which image of Azure VM I have to choice? Which OS do I have to choice? Thank you in…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,693 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,413 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,628 questions
Microsoft Intune Android
Microsoft Intune Android
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Android: An open-source mobile platform based on the Linux kernel, developed by Google, and maintained by the Open Handset Alliance.
383 questions
asked 2023-04-30T02:25:08.3466667+00:00
Eduardo Nuñez 0 Reputation points
edited a comment 2025-06-15T17:34:03.7566667+00:00
Meera Meera 0 Reputation points
1 answer

windows winrm server keeps replying 400 when I try to send encrypted kerberos message over HTTP

To start with, our product is written in Java, we use a custom transport that wraps org.apache.http.client and javax.security.auth to communicate to windows Remote management service. What we have now: firstly we authenticate through kerberos, then send…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,693 questions
Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,866 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,628 questions
asked 2023-03-28T19:43:05.5366667+00:00
zbeyebee 25 Reputation points
commented 2025-06-05T00:02:45.5433333+00:00
Cody Batt (cbatt) 0 Reputation points
1 answer One of the answers was accepted by the question author.

Error appears when running the: Get-ADPrincipalGroupMembership cmd: "the user has not been authenticated"

Hi all, Could anyone please help me with the following script I am trying to run; it has been working fine for me up until now. The only change I think has happened between now and then is upgrading from Windows 10 to Windows 11 within the last week. I…

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,970 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,628 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,971 questions
asked 2023-04-22T12:27:56.4533333+00:00
Chloe Appleton 20 Reputation points
commented 2025-06-02T14:37:45.3066667+00:00
Doyle, Bill 0 Reputation points
3 answers One of the answers was accepted by the question author.

Getting Powershell Return Code 2147942401

I'm trying to run a capture of devices in AAD that have not checked in for 90+ days then remove the corresponding AD devices. Using scripts deployed through the Task Scheduler. The process is currently two separate scripts. The first script connects…

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,667 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,970 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,628 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,993 questions
asked 2022-12-27T20:20:57.513+00:00
Maranya, Damon 326 Reputation points
answered 2025-05-30T16:46:59.2966667+00:00
W Likert 0 Reputation points
1 answer One of the answers was accepted by the question author.

How do I update MAC address in existing AD users

The below script can't work while updating the MAC addresses for existing AD users. If anybody knows kindly resolve these issues. $ErrorActionPreference = "SilentlyContinue" function Select-FileDialog { …

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,628 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
1,044 questions
asked 2020-12-30T13:54:34.187+00:00
dkarthi 21 Reputation points
edited the question 2025-05-29T21:59:26.55+00:00
DillanSimmons 6 Reputation points Admin
2 answers

add-adgroupmember in winfoms

I am trying to create a winform to create ___domain users . I am stuck on "add-adgroupmember" It's keep giving me error messgae" Add-ADGroupMember: Cannot convert 'Group1 Group2 Group3 Group4' to the type…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,929 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,970 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,628 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
1,044 questions
asked 2020-12-24T17:21:59.56+00:00
matt chen 1 Reputation point
edited the question 2025-05-29T21:58:58.6766667+00:00
DillanSimmons 6 Reputation points Admin
3 answers

Windows Management Framework 5.1 Failed Install (Win7AndW2K8R2-KB3191566-x64.zip)

Hello - I have been installing/updating our Server 2008 R2 Environment (what few we have left) to the WMF 5.1 to allow for Powershell Update. I've got a few servers that are not cooperating with the Install. The Installation will run, but it finally…

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,628 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
1,044 questions
asked 2020-12-23T21:09:57.083+00:00
Brent 1 Reputation point
edited the question 2025-05-29T21:58:54.42+00:00
DillanSimmons 6 Reputation points Admin
3 answers

Change MaximumFileDownloaded on WSUS server with widDB

Hey all, We have an offline WSUS upstream server and a few replica servers. We wanted to accelerate the download rate of files from the upstream server. We already have the wright definition to the BITS service (we changed the proper value in 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,628 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
1,044 questions
asked 2020-12-17T18:42:57.973+00:00
עידן טנקל 26 Reputation points
edited the question 2025-05-29T21:58:07.56+00:00
DillanSimmons 6 Reputation points Admin
1 answer

How to block IP Adresses using PowerShell Scripts from specific file?

Hello, for testing we want to block logging IPS on our windows server. How we manage using PowerShell? The file (txt file) contains the ip adresses like this: "blah": false, "LoggingServerAddresses":…

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,628 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
1,044 questions
asked 2020-12-08T19:37:02.507+00:00
Anonymous
edited the question 2025-05-29T21:55:59.6633333+00:00
DillanSimmons 6 Reputation points Admin
1 answer One of the answers was accepted by the question author.

I want to remove everyone from shared permission on all non-default shares

I want to remove everyone from all non-default shares on shared permissions exclude default shares as it is only non-default shares we need to remove everyone through power shell on multiple remote servers can any one help me on this do you have any…

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,628 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
1,044 questions
asked 2020-12-04T00:38:19.54+00:00
D Vijayakumar VLR 126 Reputation points
edited the question 2025-05-29T21:55:07.5433333+00:00
DillanSimmons 6 Reputation points Admin
13 answers

Wsus the operation timed out error

ITNOA I have clean windows server 2019 core that server WSUS. After I synchronized wsus from internet. I want to see critical update with below command Get-WsusUpdate -Classification Critical -Approval Unapproved -Status Any But after I write…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
4,101 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,628 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
1,044 questions
asked 2020-11-29T20:58:02.78+00:00
Seyyed Soroosh Hosseinalipour 21 Reputation points
edited the question 2025-05-29T21:54:03.63+00:00
DillanSimmons 6 Reputation points Admin
1 answer

Start-WUScan : Scan Hit Error

Hi, I'm trying to force Windows Updates from WSUS. I've tried to run Start-WUScan on Windows Server 2019 and I get back the following: Start-WUscan : Scan hit Error: @{PSComputerName=}.ReturnValue At line:1 char:1 Start-WUscan ~~~~~~~~~~~~ …

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,628 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
1,044 questions
asked 2020-11-14T16:50:44.607+00:00
R0llin22 1 Reputation point
edited the question 2025-05-29T21:51:33.6+00:00
DillanSimmons 6 Reputation points Admin
1 answer

Error 0x800f0922 when attemting to activate Windows feature http tracing - Application event log: "Microsoft.Windows.Cortana_cw5n1h2txyewy!CortanaUI failed with error"

I am activating Windows features on Datacenter Server 2016 as prerequisites for SharePoint 2019, following https://gallery.technet.microsoft.com/office/Install-SharePoint-2019-9297f528. Please note, in some of the provided PowerShell scripts (.rar…

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,667 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,628 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
1,044 questions
asked 2020-11-10T12:53:14.733+00:00
NL 1 Reputation point
edited the question 2025-05-29T21:50:33.5433333+00:00
DillanSimmons 6 Reputation points Admin
5 answers One of the answers was accepted by the question author.

Need to adjust the rule

Hi, How to adjust the following netsh advfirewall firewall add rule name="FTP1" dir=in action=allow protocol=TCP localport=20 to add new range to firewall rule below?

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.
3,067 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.
563 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,628 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
1,044 questions
asked 2020-11-04T04:53:21.757+00:00
Peter_1985 2,736 Reputation points
edited the question 2025-05-29T21:49:43.53+00:00
DillanSimmons 6 Reputation points Admin
4 answers

Deny Folder delete on This folder only (Powershell - icacls)

Hi, with the below, when I try to access the subfolders, it will not allow me unless I run to replace all child object permission entries with inheritable permission entries from this object on each folder what I am doing wrong, please help what I would…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
4,101 questions
Windows Server Storage
Windows Server Storage
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Storage: The hardware and software system used to retain data for subsequent retrieval.
669 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,628 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
1,044 questions
asked 2020-10-30T14:07:25.153+00:00
Nigel Rothwell 1 Reputation point
edited the question 2025-05-29T21:49:04.6833333+00:00
DillanSimmons 6 Reputation points Admin
2 answers One of the answers was accepted by the question author.

.Net updates

Hi All i have a server which has the below vulnerabilities, how do i download latest updates offline and update on the server. i could not find offline installers for these Microsoft .NET Framework And .NET Core Security Updates for July 2020 …

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,667 questions
Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,662 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,628 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
1,044 questions
asked 2020-10-09T15:20:54.353+00:00
Rising Flight 5,216 Reputation points
edited the question 2025-05-29T21:44:54.9166667+00:00
DillanSimmons 6 Reputation points Admin
7 answers One of the answers was accepted by the question author.

Event ID's 5829-31 Not Visible in Domain Controller logs after August 2020 Patches

Hello, we have applied the August 2020 patches on our Domain Controllers but do not see any logs with Event ID 5829-5831 since the updates. There is at least one Server 2003 machine (i.e. out of support OS) on our ___domain which I assume is still using…

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.
5,825 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,970 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,902 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,628 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
1,044 questions
asked 2020-09-30T18:52:11.86+00:00
atekkof 21 Reputation points
edited the question 2025-05-29T21:43:07.3666667+00:00
DillanSimmons 6 Reputation points Admin
2 answers

Need configure Script PowerShell to modify NTFS permissions on folders and subfolders

Hello Team, We have a ___domain controller Win Serv2019 Std using to share 3 principal folders and subfolders like this structure : Folder1 : 1000-2599 Folder2 : 2600-3000 Folder3 : 3000-5000 Each principal folder contains a 100 folders with 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,628 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
1,044 questions
asked 2020-09-30T11:54:25.067+00:00
The Gentelman 1 Reputation point
edited the question 2025-05-29T21:42:52.6633333+00:00
DillanSimmons 6 Reputation points Admin
4 answers One of the answers was accepted by the question author.

powershell version

Hi All i am local admin on all the servers, i have servers in csv file in the below format, i want to get PowerShell version on all the servers using the below PowerShell script but i am getting RPC error hostnames server01.contos.com …

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,667 questions
Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,662 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,628 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
1,044 questions
asked 2020-09-28T16:43:29.68+00:00
Glenn Maxwell 12,831 Reputation points
edited the question 2025-05-29T21:42:16.5733333+00:00
DillanSimmons 6 Reputation points Admin
2 answers

Why Get-SmbOpenFile losses the lock when file still opened at remote machine?

I am using Get-SmbOpenFile, But surprisingly, it looses its connection and I can see that there is no lock even after couple of seconds later on the file any more, even it is still opened. I safely can remove that file on my server or can rename 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,628 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
1,044 questions
asked 2020-09-26T10:49:51.447+00:00
Muhammad Khalil 1 Reputation point
edited the question 2025-05-29T21:41:53.6+00:00
DillanSimmons 6 Reputation points Admin