5,359 questions with Windows Server PowerShell tags

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

Export Issued certificates from Windows CA Server with powershell or certutil

Looking for a way to export Issued Certificates from a Windows Certificate Authority to a file (either der or base64). Found this https://learn.microsoft.com/en-us/answers/questions/309964/export-of-issued-certificates-from-ca but I think it just exports…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,108 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,359 questions
asked 2024-03-28T15:03:01.1733333+00:00
Jay 256 Reputation points
commented 2024-03-28T21:20:31.9233333+00:00
Jay 256 Reputation points
2 answers

How to troubleshoot "Read-SqlTableData : Failed to connect to server" error?

I have this PoweShell script code: $sqlView = Read-SqlTableData -ServerInstance $query.Instance -DatabaseName $query.DB -SchemaName $query.Schema -TableName $query.View I keep getting this error: Read-SqlTableData : Failed to connect to server…

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,675 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,359 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,040 questions
asked 2024-03-22T15:58:51.97+00:00
CharlieLor 551 Reputation points
answered 2024-03-28T14:35:34.31+00:00
CharlieLor 551 Reputation points
1 answer

Robocopy Error 2 (0x00000002) Copying file \\Servername\folderName\Subfolder The System cannot find the file specified

Hi Expert Can someone explain what's the meaning of the error encountered after robocopy finish copying all folder and files. please let me know what is the best solution for this kind of error after using robocopy. Robocopy Error 2 (0x00000002) Copying…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,108 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,359 questions
asked 2023-07-20T08:22:23.5066667+00:00
Homer Sibayan 361 Reputation points
edited a comment 2024-03-28T12:09:48.6133333+00:00
Kev Kelly 175 Reputation points
0 answers

Vscode powershell sdk installation problem

Hey, Im trying to install Microsoft Graph SDK module at VSCode, but is problem i can not continue i mean carry on.. because of these warning givin me some problems. I tried to ask copilot AI , but give me a same offers as install x and y and then ect. I…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,549 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,359 questions
asked 2024-03-27T10:07:40.88+00:00
tech pad 0 Reputation points
commented 2024-03-27T10:30:55.1966667+00:00
tech pad 0 Reputation points
3 answers

Powershell Script to export members of Local administrators group of all servers in Domain.

Hello, I am looking to export the members of the Local Administrators group from all servers within our domain into a CSV file. Does anyone have a script for accomplishing this task? Thank you. Regards, Raj

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,108 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,833 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,359 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,040 questions
asked 2024-03-26T17:01:06.3533333+00:00
raj a 236 Reputation points
edited an answer 2024-03-27T02:27:22.8966667+00:00
Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,491 Reputation points Microsoft Vendor
2 answers

Send-MailMessage failing

I am trying to use "Send-MailMessage" to test my smtp connectivity to an SMTP server. The 'client' in question is Windows Server 2022 Datacenter. I am getting the error message: Send-MailMessage : Unable to read data from the transport…

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,734 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,359 questions
asked 2024-03-26T19:21:02.2366667+00:00
Causemaker, Andi 0 Reputation points
edited a comment 2024-03-26T21:23:18.97+00:00
Rich Matheisen 44,776 Reputation points
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,734 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,233 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,359 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,040 questions
asked 2023-03-24T15:25:41.6533333+00:00
Ag-8821 41 Reputation points
answered 2024-03-26T13:41:29.3566667+00:00
_ndnsu 0 Reputation points
3 answers

Deploy custom background to Microsoft Teams via Intune PowerShell scripts

Hi, I have been asked by my company to find a way to deploy corporate Backgrounds to Microsoft Teams. I found many sites that pushed me towards using Win32 Apps within Intune and the step-by-step guides where easy to follow. However, ever guide/forum I…

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,359 questions
asked 2021-03-22T14:25:01.53+00:00
James Heath 1 Reputation point
edited an answer 2024-03-25T15:31:53.56+00:00
Wagner, Christian 0 Reputation points
2 answers

por que se envían automáticamente correos de verificacion a mi contactos

hola buen día, desde el día de ayer en mi correo me llego un correo con un inicio inusual y desde ese momento no aparado de enviarse en automático correo de verificación a mi contactos de Hotmail, y todos los correos que tenia en mi bandeja de entrada…

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,339 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,748 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,359 questions
asked 2023-10-13T17:33:02.74+00:00
ELVIRA ROCHA 0 Reputation points
answered 2024-03-25T11:41:41.36+00:00
1 answer

How to export Windows Server logs from Event Viewer GUI

I tried to export different logs from Windows Event Viewer however in many cases, I did get values (= they are codes for some columns values) from the XML presented vue instead of values represented in the Event Viewer GUI interface. so please could you…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,416 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,359 questions
asked 2024-03-20T13:10:58.0866667+00:00
Nawres Tahri 0 Reputation points
commented 2024-03-25T02:20:42.38+00:00
Xiaopo Yang - MSFT 11,336 Reputation points Microsoft Vendor
1 answer

auditpol /get /category:'Detailed Tracking' /r

Please advise how to pull "auditpol /get /category:'Detailed Tracking' /r" data from remote machine.

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,359 questions
asked 2024-03-24T21:56:02.0166667+00:00
Md Arman 0 Reputation points
answered 2024-03-25T01:30:54.2066667+00:00
Daisy Zhou 18,701 Reputation points Microsoft Vendor
1 answer

User Identity is blank

Install the Azure AD PowerShell module if it's not already installed Install-Module -Name MSOnline Connect to your Azure AD tenant Connect-MsolService Replace "user@example.com" with the email address of the user you want to find $user =…

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,168 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,881 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,359 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,430 questions
asked 2024-03-12T15:04:38.43+00:00
JayPenney 0 Reputation points
commented 2024-03-24T02:52:18.4833333+00:00
Jayce Yang-MSFT 1,246 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

3rd Server Not Joining Domain When Connecting to Secondary DC 1st Time ?!

Hi, I have a weird issue and am unsure where the problem is. The scenario is I have 3 servers, Server A, Server B, and Server C which I'm trying to join the domain and promote it as a DC. The replication DC for Server C is server B. Server A -…

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,833 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,359 questions
asked 2024-03-23T06:29:51.6066667+00:00
touqeeranjum 80 Reputation points
accepted 2024-03-23T21:06:27.2266667+00:00
touqeeranjum 80 Reputation points
1 answer One of the answers was accepted by the question author.

After renaming Securirty Group can't see new name a period of time

I have many domain controllers in different sites. I noticed after renaming any security group with powershell, I can't see new name in the same powershell a period of time (up to 15 minutes), however I can see new name in gui in ADUC. And vice versa -…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,108 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,833 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,359 questions
asked 2024-03-17T14:30:30.1733333+00:00
OZ 226 Reputation points
accepted 2024-03-23T19:30:15.5+00:00
OZ 226 Reputation points
6 answers One of the answers was accepted by the question author.

PowerShell Unable to find module providers (PowerShellGet) - Windows 10

Hello, I have a windows 10 machine, and recently tried to install some packages and failed. I have seen several posts on this issue, but have not found a solution. Can someone give me a path forward? I do not use FIPS. …

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,359 questions
asked 2021-02-03T22:48:20.177+00:00
MARCEL BALCAREK 61 Reputation points
commented 2024-03-22T19:06:10.1933333+00:00
Mike Olivieri 0 Reputation points
0 answers

Skype Front End Server Deployment Wizard Fails to Start Services When Automated

I am automating the deployment of Skype for Business Server 2019 front end servers on a Server 2022 OS on prem. When using the commands below to run step one of the deployment wizard, the Skype services fail to start, each with an error of "Check to…

Skype for Business
Skype for Business
A Microsoft communications service that provides communications capabilities across presence, instant messaging, audio/video calling, and an online meeting experience that includes audio, video, and web conferencing.
602 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,359 questions
asked 2024-03-21T15:24:26.03+00:00
Neil676 1 Reputation point
commented 2024-03-22T11:02:17.1366667+00:00
Neil676 1 Reputation point
1 answer

Como puedo recuperar mi cuenta de Authenticator

Necesito ayuda para recuperar mi cuenta de Authenticator de Microsoft elimine la aplicasion por error y ahora cada vez que necesito entrar a la cuenta me pide un codigo que tiene que aparecerme en la aplicasion pero no puedo entrar a la aplicasion por…

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
5,470 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,359 questions
asked 2024-03-21T07:43:22.11+00:00
Angel Ramirez 0 Reputation points
answered 2024-03-22T02:07:12.1466667+00:00
Karlie Weng 13,951 Reputation points Microsoft Vendor
3 answers

how to delete SharePoint Group connected sites using PowerShell?

Hi members, In SharePoint, I need to delete a SharePoint Group connected sites through PowerShell, but i was facing an error "This site belongs to a Microsoft 365 group. To delete the site, you must delete the group" Anyone please suggest me…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,598 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,662 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,797 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,359 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,040 questions
asked 2024-03-12T12:37:41.11+00:00
Henrietta Mueller 0 Reputation points
answered 2024-03-21T03:05:13.3+00:00
Craig Gregory 0 Reputation points
1 answer

How to schedule log notification for an Enterprise Application

I have added an application in 'Enterprise Application' for SSO. Let's call app as XYZ. The SSO is working fine. I need to send the logs of XYZ to the app owner. I am doing it manually. How can I schedule log notification in Azure AD?

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,833 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,359 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,040 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,633 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,430 questions
asked 2024-03-20T07:31:01.1933333+00:00
Mohd Arif 921 Reputation points
edited an answer 2024-03-20T17:55:24.3133333+00:00
Michael Smith-MSFT 2,751 Reputation points Microsoft Employee
0 answers

Can Someone help check the scripts running in the https://compliance.microsoftonline.cn/contentsearchv2 in O365

Can Someone help check the scripts? We are using the Office 365 in Chian and in the Compliance center there we can run the tasks to use content Search function to export user emails see the links https://compliance.microsoftonline.cn/contentsearchv2…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
864 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,168 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,359 questions
asked 2024-03-19T01:48:47.32+00:00
Christest1 0 Reputation points
commented 2024-03-20T04:00:36.5766667+00:00
Christest1 0 Reputation points