5,395 questions with Windows Server PowerShell tags

Sort by: Updated
2 answers

Error Access Denied when try config MS Entra ID with MS teams

Hello Expert Teams, I try to Configure the application access policy but when I tried following this…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,192 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,395 questions
asked 2024-05-16T07:43:33.4333333+00:00
Nguyen Van Duc 1 (CMC Consulting) 0 Reputation points
answered 2024-05-17T02:28:11.3033333+00:00
JiSheng-MSFT 230 Reputation points Microsoft Vendor
4 answers

Powershell 5.1 not accepting keyboard input when using Remote Desktop HTML5 Web Client

Install the latest RDS HTML5 client on a RDS deployment as specified here: https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-web-client-admin Open a web browser session and start an RDS session. …

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,819 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,277 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,395 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,125 questions
asked 2023-03-24T15:25:41.6533333+00:00
Ag-8821 41 Reputation points
commented 2024-05-16T21:33:09.6666667+00:00
Rhonda McMurphy 0 Reputation points
2 answers One of the answers was accepted by the question author.

Export certiticate file by PS

Hi, good morning! I have a list of 900 certificates in the Certification Authority (folder Issued Certificates). I would like to export each certificate in Base-64 X.509 by script in Power Shell, because in the GUI, I need to do one by one. I have…

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,395 questions
asked 2024-05-16T08:42:55.1233333+00:00
answered 2024-05-16T18:27:28.0733333+00:00
2 answers

Windows Server - I can't set the "windows display language"

Hi there, I'm working on a Windows Server 2022 where I can't change the "windows display language". In production I have a German-language machine on which I am trying to set the English language as the 'windows display language'. In the…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,234 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,395 questions
asked 2024-05-16T09:03:17.48+00:00
Marco Lusardi 51 Reputation points
answered 2024-05-16T15:49:44.3+00:00
Adam J. Marshall 8,886 Reputation points MVP
0 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,850 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,395 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,125 questions
asked 2024-05-16T10:59:45.49+00:00
Oleg Tserkovnyuk 561 Reputation points
1 answer

ACL error on file permissions inventory script

We are trying to run a permissions inventory script (based on the get-acl command) against a file share on a file server running server 2016. The script is being run 'remotely' from a workstation joined to the same domain as the file server opposed to…

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,393 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,234 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,395 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,125 questions
asked 2024-05-15T09:28:34.4+00:00
crib bar 596 Reputation points
answered 2024-05-15T12:31:00.8366667+00:00
MotoX80 32,086 Reputation points
3 answers

Visual Studio Code won't let me debug PowerShell scripts

I'm trying to debug my PowerShell 7 script in Visual Studio Code 1.71.0. I have extension ms-vscode.powershell Version: 2022.8.5 installed. I don't understand why it doesn't come ready to debug PS1 files out of the box, but it doesn't. When I tried…

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,395 questions
asked 2022-09-04T07:30:03.673+00:00
Will Pittenger 281 Reputation points
commented 2024-05-15T01:30:46.2533333+00:00
Rich Matheisen 45,106 Reputation points
0 answers

Getting an error in a runbook.

Hi there, I've created a runbook to handle offboarding users in office 365. I'm connecting to the graph API, and exchangeonline module. My runbook is working flawlessly except for one specific line which is giving me an error when ran in the runbook (I…

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.
10,761 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,137 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,395 questions
asked 2024-04-30T17:12:23.7733333+00:00
Tristan MacDonald 0 Reputation points
edited the question 2024-05-14T21:40:29.52+00:00
Tristan MacDonald 0 Reputation points
1 answer

Connect-OrganizationAddInService using Entra ServicePrincipal ID

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

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,227 questions
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
516 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,395 questions
asked 2024-04-25T20:01:49.8666667+00:00
Juan Perez 0 Reputation points
edited the question 2024-05-14T06:02:59.5433333+00:00
Shweta Mathur 28,021 Reputation points Microsoft Employee
1 answer

Steps to get data from API using powershell from server

Hi, I want to call an API from the server using PowerShell script and token. I tried with myself but getting SSL/TLS related error. Please provide the steps and script. Thanks

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,395 questions
asked 2024-05-13T00:52:15.48+00:00
PATEL Prashant Kumar 20 Reputation points
answered 2024-05-13T15:09:48.82+00:00
Rich Matheisen 45,106 Reputation points
3 answers

Connect-Exchange Online (Error while sending the request)

Hello, I'm getting the below Error while connecting to Exchange Online (PowerShell Script) when called from .Net Application. #Import-Module ExchangeOnlineManagement #Connect-ExchangeOnline -Credential $Creds An error occurred while…

Microsoft Exchange Online
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
516 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,905 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,395 questions
asked 2023-11-20T10:17:36.3+00:00
AW13-2828 10 Reputation points
answered 2024-05-13T12:15:06.99+00:00
Andre g 6 Reputation points
3 answers

Using Get-Certificate with a Microsoft CA

I would like to use Get-Certificate with a Microsoft CA. https://learn.microsoft.com/en-us/powershell/module/pki/get-certificate?view=windowsserver2022-ps The documentation doesn't really show many examples. Does anyone know how to do this?

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,234 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,395 questions
asked 2024-05-01T18:01:44.4466667+00:00
ComputerHabit 801 Reputation points
commented 2024-05-13T08:23:44.4+00:00
Jing Zhou 2,550 Reputation points Microsoft Vendor
1 answer

How to Delete Duplicate Documents / Files in sharepoint online?

There is too much duplicates files and documents in my company's sharepoint online. our company MS cloud space had reached its limit thus these duplicates files had to be delete to free up space. Thanks

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,241 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,782 questions
SharePoint Workflow
SharePoint Workflow
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Workflow: An orchestrated and repeatable pattern of business activity, enabling data transformation, service provision, and information retrieval.
516 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,824 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,395 questions
asked 2024-05-09T03:50:35.2466667+00:00
Joshua Lim 0 Reputation points
commented 2024-05-13T07:56:50.1833333+00:00
Jing Zhou 2,550 Reputation points Microsoft Vendor
1 answer

AzureAD group membership

Hi All In our hybrid environment, all users are initially created on-premises and then synced to Azure AD. I've created five security groups within Azure AD. Specifically, I've granted ownership of these five AD groups to a user, let's call them user1.…

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,958 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,395 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,125 questions
Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,745 questions
asked 2024-05-10T05:37:17.0433333+00:00
Glenn Maxwell 10,146 Reputation points
commented 2024-05-13T06:52:24.1933333+00:00
Deepanshu katara 5,370 Reputation points
0 answers

Need to configure Report to check daily backup, patch and Reboot status for azure virtual machine using Powershell script

Need to configure Report to check daily backup, patch and Reboot status for azure virtual using Powershell script

Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,139 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,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,395 questions
asked 2024-05-10T17:57:15.4233333+00:00
Himanshu Garg 0 Reputation points
commented 2024-05-10T20:55:02.9566667+00:00
SadiqhAhmed-MSFT 38,736 Reputation points Microsoft Employee
2 answers

visual studio docker error: NU1301: Unable to > load the service index for source

Dear All. Can not containerize .NET Web Api project in Visual Studio 2022. Below is my dockerfile: FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base WORKDIR /app EXPOSE 80 FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src COPY…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,665 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,395 questions
asked 2023-06-17T07:23:18.7533333+00:00
Teymur Hajiyev 35 Reputation points
commented 2024-05-10T19:19:14.9633333+00:00
Manny Saleta 0 Reputation points
1 answer

Powershell broke - basic commands not working, not loading modules from common folders

At some point my Powershell broke. Standard commands like 'Write-Host' stopped working. I was using VS Code on Windows 10 and using PowerShell 5.1 Checked all the environmental variables, everything looks fine. Couldn't fix it and got a new…

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,395 questions
asked 2021-01-05T04:12:12.313+00:00
Mikhail Ladanov 1 Reputation point
commented 2024-05-10T18:57:20.2866667+00:00
Rich Matheisen 45,106 Reputation points
2 answers

DFSR - Setting MaxOfflineTimeInDays resets RPC port

I am using Windows Server 2016 and am attempting to set the DFSR attribute MaxOfflineTimeInDays. The script line I am using is resetting the static RPC port I have set. To set the static RPC port I used the following cmdlet set-dfsrserviceconfiguration…

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,395 questions
asked 2021-03-16T15:57:46.427+00:00
Nick T 1 Reputation point
commented 2024-05-10T18:20:44.1266667+00:00
IGOR ADILSON ARAUJO DE MENDONCA 0 Reputation points
2 answers

How to use Get-AppXPackage to display only version?

Hi, When I run the "x" command, it shows the result below. Which parameter should I use so that it only shows the "Version" line? Name : Microsoft.Windows.NarratorQuickStart Publisher : CN=Microsoft Corporation,…

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,395 questions
asked 2023-01-22T14:26:13.9733333+00:00
Darien Chiba 46 Reputation points
answered 2024-05-10T06:27:48.5433333+00:00
Tyrone 0 Reputation points
3 answers One of the answers was accepted by the question author.

NT service\SQLTELMETRY provided for NT service\SQLTELMETRY$XCLERAINST is either not a valid account or cannot be used for this service

Hi Experts, While I was trying to install the 2019 MS SQL via PowerShell. I am getting the below error message. The following error occured: NT service\SQLTELMETRY provided for NT service\SQLTELMETRY$XCLERAINST is either not a valid account or cannot…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,842 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,395 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,125 questions
asked 2024-05-09T04:53:35.4933333+00:00
Jimmy Afflick 20 Reputation points
commented 2024-05-09T18:42:28.8566667+00:00
Jimmy Afflick 20 Reputation points