5,426 questions with Windows Server PowerShell tags

Sort by: Updated
1 answer

Bginfo - scripting language

As VBS is labeled obsolete, is there any other scripting language which can be used for scripting bginfo source data? Winsows shell (cmd.exe) or Powershell? How to run powershell command to provide data fro bginfo? any examples?

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,426 questions
asked 2024-04-29T09:42:46.23+00:00
Petr Laznovsky 0 Reputation points
answered 2024-04-29T15:37:41.0266667+00:00
Rich Matheisen 45,341 Reputation points
0 answers

Invoke-RestMethod: The remote server returned an error: (403) Forbidden.

Hello, I'm currently trying to retrieve a documentation page in Confluence to edit and save it with a PowerShell script. But I have a problem while recovering the data. Suggestions ? Thanks for your assistance !

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,426 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,212 questions
asked 2024-04-29T10:01:47.4466667+00:00
Mathis MICHAUD 0 Reputation points
commented 2024-04-29T10:41:21.6766667+00:00
Olaf Helper 42,361 Reputation points
1 answer

How to fix error answer file [Microsoft-Windows-Deployment]

Hi all, I am deploying Windows 11 home 23H2 on an HP device which comes with S Mode. I am installing the device with MDT version 2004. In our school we do not use sccm or intune. When I deploy an clean install Windows Home on the device I get the…

Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
845 questions
Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,915 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,584 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,426 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.
920 questions
asked 2024-04-28T12:51:56.9266667+00:00
w raspe 311 Reputation points
answered 2024-04-29T09:18:30.1+00:00
Simon Ren-MSFT 31,221 Reputation points Microsoft Vendor
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.
6,048 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,801 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,760 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,426 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,212 questions
asked 2024-04-18T12:53:32+00:00
EnterpriseArchitect 4,916 Reputation points
commented 2024-04-29T08:39:42.1833333+00:00
sumaiyaaisha 0 Reputation points
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,919 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,916 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,392 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,584 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,426 questions
asked 2024-04-20T22:50:47.6366667+00:00
commented 2024-04-29T03:04:06.0666667+00:00
Hania Lian 9,611 Reputation points Microsoft Vendor
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,536 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.
968 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,426 questions
asked 2024-04-18T09:05:07.7733333+00:00
Simon ETOUNDI 0 Reputation points
edited a comment 2024-04-29T02:10:20.3166667+00:00
Ian Xue (Shanghai Wicresoft Co., Ltd.) 31,836 Reputation points Microsoft Vendor
1 answer

cmd提示不是内部或外部命令,也不是可运行的程序 或批处理文件。

我在vscode中搭建了一个c\c++的环境,但是在运行hello world时出现了错误“ ******不是内部或外部命令,也不是可运行的程序或批处理文件。”我在之前搭建的过程中没有遇到类似的问题,我已经重启过了电脑。 我应该怎么办

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,426 questions
asked 2024-04-10T05:12:36.9433333+00:00
琪越 苏 0 Reputation points
edited a comment 2024-04-29T02:01:05.76+00:00
Ian Xue (Shanghai Wicresoft Co., Ltd.) 31,836 Reputation points Microsoft Vendor
2 answers

Powershell script

Hi i want to create a script that runs every time a regular user logs in to one of your clients your domain writes a report with the name “yyyymmdd_computername.txt” and content “hh:mm:ss – username” to a central repository. Someone every time otherwise…

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,048 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,426 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,212 questions
asked 2024-04-12T13:18:55.0033333+00:00
Louai Al Obaidi 0 Reputation points
edited a comment 2024-04-29T01:58:36.3+00:00
Ian Xue (Shanghai Wicresoft Co., Ltd.) 31,836 Reputation points Microsoft Vendor
1 answer

Set-WSManQuickConfig : Cannot complete the request due to a conflicting Group Policy setting.

Getting this error when trying to run Enable-PSRemoting -Force. Set-WSManQuickConfig : Cannot complete the request due to a conflicting Group Policy setting. Modify the GP setting "Allow remote server management through WinRM" to either…

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,426 questions
asked 2024-04-16T14:20:56.37+00:00
Jack Ring 20 Reputation points
edited a comment 2024-04-29T01:56:42.8766667+00:00
Ian Xue (Shanghai Wicresoft Co., Ltd.) 31,836 Reputation points Microsoft Vendor
1 answer

how to fix this error : Method invocation failed because | [Deserialized.Microsoft.IIs.PowerShell.Framework.ConfigurationElement#bindings#binding] does not contain a | method named 'AddSslCertificate'.

Hello, I'm trying to automate the creation of the SSL certificate in the iis server i wrote a powershell that do this but i m getting this error : Line | 1 | Import-Module -Name WebAdministration -Force -SkipEditionCheck | …

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,392 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,426 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,212 questions
asked 2024-04-17T15:12:53.5433333+00:00
EL MEDIOUNI Sohaib 0 Reputation points
edited a comment 2024-04-29T01:55:21.0166667+00:00
Ian Xue (Shanghai Wicresoft Co., Ltd.) 31,836 Reputation points Microsoft Vendor
1 answer

delete files in a subfolder in scdule time

I have two folder- A and B B is subfolder of A and inside B there many files , i want to delete files inside B more that x days without delete Folder B , is there any solution Thnx

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,426 questions
asked 2024-04-28T10:02:38.3666667+00:00
Meysam Salary 0 Reputation points
commented 2024-04-28T13:03:30.87+00:00
Meysam Salary 0 Reputation points
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,426 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,026 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,426 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,337 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,948 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,426 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
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,026 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,426 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 45,341 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,744 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,426 questions
asked 2024-04-21T05:57:43.6766667+00:00
Varma 1,250 Reputation points
answered 2024-04-24T15:24:02.7033333+00:00
Rich Matheisen 45,341 Reputation points
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,426 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,212 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,292 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,426 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,212 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
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,426 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,032 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 5,090 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.
657 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,426 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 46 Reputation points