5,448 questions with Windows Server PowerShell tags

Sort by: Updated
1 answer

Assistance Needed: GPO for DNS Suffix Registration Not Applying

Hello, We are working on creating a Group Policy to automatically enable the option "Use this connection's DNS suffix in DNS registration" when users log in to their domain accounts. We have created the GPO for this setting and tested it on one…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,561 questions
Windows Server Management
Windows Server Management
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Management: The act or process of organizing, handling, directing or controlling something.
425 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,448 questions
asked 2024-07-11T12:55:01.8166667+00:00
Firoz Khan 0 Reputation points
answered 2024-07-11T14:00:29.3333333+00:00
Daisy Zhou 20,871 Reputation points Microsoft Vendor
2 answers

Enabling Managed Folder Assistant Error

When trying to start managed folder assistant on a shared mailbox with online archiving enabled, I am getting an error in powershell: The call to Mailbox Assistants Service on server: 'DM6PR07MB4555.namprd07.prod.outlook.com' failed. Error from RPC…

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,448 questions
asked 2022-08-15T16:44:17.76+00:00
Steven Ingram 16 Reputation points
commented 2024-07-11T11:45:01.4666667+00:00
xtruss 0 Reputation points
3 answers

Connect-ExchangeOnline: Write-ErrorMessage : Expired or Invalid pagination request. Default Expiry time is 00:30:00

I wrote a script a while back that gets the the UserPrincipalName, DisplayName, LastLogonTime, CreationTime, Inactive Days, MailboxType, AssignedLicenses, ItemCount, MB Size, and Roles from MSOnline and Exchange Online. It works fine on one server and my…

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,357 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,985 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,448 questions
asked 2022-09-26T17:20:13.937+00:00
Dane Briggs 211 Reputation points
commented 2024-07-11T07:08:24.0066667+00:00
Agnieszka Stojanik 0 Reputation points
2 answers

Logging the parameters of WMI Methods using WMI-Activity Trace logs

When logging WMI calls and queries via WMI-Activity Trace logs, I can see all the method invocations being logged, but not the method's parameters. As I'm looking to work around certain hardware/driver issues with my laptop, I absolutely must know what…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,561 questions
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,506 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,309 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,856 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,448 questions
asked 2024-07-10T16:38:56.85+00:00
kassie 0 Reputation points
answered 2024-07-11T02:39:01.9833333+00:00
Jeanine Zhang-MSFT 9,431 Reputation points Microsoft Vendor
0 answers

.exe files are not running in windows docker images

Hey There, I am trying to run the following Dockerfile to containerize the Netduino.exe file and would like to use it as a Gitlab runner. However, the .exe files are running in the following Docker Images. Not only Netduino.exe, other .exe files like…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,581 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,110 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,561 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,856 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,448 questions
asked 2024-07-09T01:00:22.78+00:00
Sunil Bhimanapalli 0 Reputation points
edited the question 2024-07-09T01:08:25.08+00:00
Sunil Bhimanapalli 0 Reputation points
1 answer

How can I connect tables on Power BI online

Hello, Is there a way to connect tables in a model I created on power BI online? The tables are on an excel workbook on sharepoint, and the model has been done on on power bi online. Any idea how to make the connection between tables? Thank you!

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,448 questions
asked 2023-12-01T10:42:04.2033333+00:00
Abdulla Moustafa 0 Reputation points
edited an answer 2024-07-07T08:24:22.3633333+00:00
Khaled Elsayed Mohamed 1,255 Reputation points
1 answer

How can I send Outlook (Microsoft 365) meeting invitations from one email account to multiple email accounts using PowerShell?

I need your help to create a PowerShell script to send invitations to an Outlook (Microsoft 365) meeting from an email account user@domino to multiple email accounts (user1@domino, user2@domino...) through from PowerShell I hope you can help me.

Outlook
Outlook
A family of Microsoft email and calendar products.
3,365 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,051 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,448 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,282 questions
asked 2024-01-18T21:19:08.5933333+00:00
Jairo Javier Baleta Cali 131 Reputation points
answered 2024-07-07T06:44:40.2266667+00:00
Khaled Elsayed Mohamed 1,255 Reputation points
1 answer One of the answers was accepted by the question author.

Disable WinRM PowerShell Remoting

Hi All I have a requirement to Disable or Harden PowerShell Remoting and WinRM Services. The impact what i see is one server cannot connect to another server using remote powershell scripts. Please also let me know what possible issues we can come across…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,581 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,427 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,776 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,448 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,282 questions
asked 2023-12-30T11:24:40.5166667+00:00
Roger Roger 5,446 Reputation points
accepted 2024-07-06T09:29:44.6566667+00:00
Roger Roger 5,446 Reputation points
1 answer

Powershell on Mac/Linux - New-PSSession to Exchange Server -> MI_RESULT_FAILED Error

How can the following error be resolved when trying to connect to an Exchange server via PowerShell from a Mac/Linux machine? (working fine from windows machine though) "New-PSSession: [<exchangeserver.domain>] Connecting to remote server…

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,177 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,561 questions
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,482 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,448 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,282 questions
asked 2024-07-03T08:53:54.16+00:00
ITS ByteSec 0 Reputation points
answered 2024-07-05T15:37:17.6666667+00:00
Rich Matheisen 45,671 Reputation points
4 answers

Unable to install IIS on Server 2019 DC error 0x800f081f

I`m getting this error: I tried the following commands: Microsoft Windows [Version 10.0.17763.3650] (c) 2018 Microsoft Corporation. All rights reserved. C:\Users\Administrator.WIN-ONA542MGLKP>dism /online /enable-feature…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,581 questions
Internet Information Services
Windows Server Management
Windows Server Management
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Management: The act or process of organizing, handling, directing or controlling something.
425 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,448 questions
asked 2022-12-03T00:32:53.737+00:00
Lucas Paixao Soares Ribeiro 1 Reputation point
answered 2024-07-05T07:53:36.93+00:00
Samuel Fikiru 0 Reputation points
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,291 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,202 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.
547 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,888 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,448 questions
asked 2024-05-09T03:50:35.2466667+00:00
Joshua Lim 0 Reputation points
commented 2024-07-03T15:36:59.67+00:00
Paul Tansey 0 Reputation points
3 answers

How to add a Sql code to a powershell script

backup_report.txtI have the below sql script to check if any failover happened on the last 24 hrs and we want to use that in the existing powershell backup report script to check that condition before it reports, the below sql code only returns a…

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,448 questions
asked 2024-06-28T14:46:35.28+00:00
Sara 421 Reputation points
edited an answer 2024-07-03T07:51:29.82+00:00
Neuvi Jiang 610 Reputation points Microsoft Vendor
1 answer

Azure cli behind corporate proxy not working (SSL: WRONG_VERSION_NUMBER)

I have my C:\Users\xxxx\cacert-with-corp-proxy-cert.pem file updated with corporate ssl proxy certificate. To confirm that pem file updated properly and corporate proxy ssl certificates are valid I performed the check with python.exe (Microsoft…

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,448 questions
asked 2021-12-22T18:25:45.547+00:00
Lavrenty Eskin 1 Reputation point
commented 2024-07-03T02:43:38.8866667+00:00
Gaudet, Michael 0 Reputation points
1 answer One of the answers was accepted by the question author.

Powershell - Cannot convert value to type "System.Int32"

Dear experts, I'm working on below script trying to replace the value of mailNickName with the prefix part of UPN value. It works great if we had EMPTY mailNickName field (where it showed <not set>). However, if there was value already existing in…

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,448 questions
asked 2021-07-27T06:45:52.713+00:00
Eaven HUANG 2,156 Reputation points
edited a comment 2024-07-02T20:02:39.78+00:00
Matt Sheehan 0 Reputation points
2 answers One of the answers was accepted by the question author.

Enable and Disable WinRM

Hi, For security reasons, our company wants to disable the WinRM service, but we don't know the impact of disabling it on the production platform. So we thought about the ability to disable the service and re-enable it automatically via GPO as needed…

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,448 questions
asked 2023-06-23T10:09:38.4566667+00:00
Ines ROUISSI 20 Reputation points
edited a comment 2024-07-02T13:14:12.9533333+00:00
AnnaG 131 Reputation points
1 answer

Windows 2019 servers patch failed

windows 2019 servers getting security patch failed and when I tried manual then stuck on 80% then I tried to clear table but again stuck, what is solution and how to fix this issue. we have tried below steps DISM /Online /Cleanup-Image /RestoreHealth …

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,581 questions
Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,565 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,776 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,448 questions
asked 2024-06-25T09:12:44.4633333+00:00
Devesh Mishra (Microland) 0 Reputation points
commented 2024-07-02T12:28:47.6566667+00:00
Daisy Zhou 20,871 Reputation points Microsoft Vendor
0 answers

Windows Server DNS issue with Windows Client 10 Client machine

Hi, I have a issue with my Windows Client 10 machines (Notebooks). As you know Notebooks has as well LAN and as WLAN. If the user connected to the LAN, getting here a IP from for example 192.168.178.1 and the WLAN getting a different IP from DHCP for…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,561 questions
Windows Server Setup
Windows Server Setup
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
246 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,448 questions
asked 2024-07-01T11:40:02.1833333+00:00
PerserPolis-1732 1,556 Reputation points
edited a comment 2024-07-02T05:51:03.4233333+00:00
PerserPolis-1732 1,556 Reputation points
2 answers

The cluster is connected to Azure Arc and I can see the cluster resources on azure arc. But when I perform any commands to the cluster from Cloudshell, it says cluster not found under the resource group.

This is the error I'm getting while accessing the cluster on Azure Arc. This is my cluster connected to AzureArc.

Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
374 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,973 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,448 questions
asked 2024-06-28T15:39:59.9433333+00:00
Nikhitha Chandana Chinthapalli 0 Reputation points
edited an answer 2024-07-02T05:01:30.6533333+00:00
Nikhitha Chandana Chinthapalli 0 Reputation points
1 answer

Adding multiple contact lists to a distribution list using PowerShell

I have created ten mail contacts for parents of Year 7 and I created a distribution list so the admin can send announcements to the DL. I need help adding these contact lists to the DL using PowerShell command.

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,482 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,448 questions
asked 2023-11-25T15:46:02.2966667+00:00
IT 140 Reputation points
commented 2024-07-02T02:34:49.0333333+00:00
IT Admin 0 Reputation points
1 answer

How to add a SQL code to a existing PS script

I have the below sql script to check if any failover happened on the last 24 hrs and we want to use that in the existing powershell backup report script to check that condition before it reports, the below sql code only returns a timestamp ;WITH…

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,448 questions
asked 2024-07-01T13:52:38.3666667+00:00
Sara 421 Reputation points
answered 2024-07-01T15:12:35.4133333+00:00
MotoX80 32,641 Reputation points