5,559 questions with Windows Server PowerShell tags

Sort by: Updated
1 answer

How to check the type of corruption in my mailbox before repairing it.

I want to check the type of corruption in my mailbox before repairing it. I used the New-MailboxRepairRequest with the -DetectOnly switch against all the corruption parameters. I check the status of the job using the Get-MailboxRepairRequest. Now I want…

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,343 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,587 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,676 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,559 questions
asked 2024-11-13T03:03:28.24+00:00
Anubhuti 0 Reputation points
answered 2024-11-13T03:24:26.6133333+00:00
Hania Lian 17,601 Reputation points Microsoft Vendor
1 answer

Restore OneDrive files in bulk from Preservation Library - Powershell

Is there a way to pull files from the OneDrive Preservation library in bulk? User had two computers and had OneDrive sync'd on both. While in the process of issues they lost their OneDrive files and had cleared the trash. They are all now located in the…

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,154 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,836 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,279 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,559 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,605 questions
asked 2024-11-07T20:09:27.5433333+00:00
Capt America 0 Reputation points
commented 2024-11-13T00:49:21.3833333+00:00
Ling Zhou_MSFT 18,100 Reputation points Microsoft Vendor
1 answer

M365DSC certificate authentication fails with "does not have a private key" error

I am deploying an M365DSC infra for my org. I've followed the pre-requisites and installed and updated DSC on a stand-alone Azure VM. I intend to use certificate authentication and created the EntraID application using the…

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,559 questions
asked 2024-11-12T16:02:46.0466667+00:00
Shawn Goodwin 176 Reputation points
commented 2024-11-13T00:06:49.7366667+00:00
Rich Matheisen 46,896 Reputation points
1 answer

M365DSC Certificate authentication fails with "does not have a private key" error

I am deploying M365DSC infra for my org. I have followed the pre-requisites and installed and updated DSC on a stand-alone Azure VM. I intend to use certificate authentication and created the EntraID application using the Update-M365DSCAzureAdApplication…

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,559 questions
asked 2024-11-12T15:57:57.06+00:00
Shawn Goodwin 176 Reputation points
answered 2024-11-12T20:03:24.15+00:00
Rich Matheisen 46,896 Reputation points
1 answer One of the answers was accepted by the question author.

Querying Win32_PageFileSetting results in empty response

I am trying to query some information from Win32_PageFileSetting WMI class and I am unable to gather any kind of information. I tried on multiple versions of PowerShell including: Major 5, Minor 1, Build 22621, Revision 4249 Major 5, Minor 1, Build…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,731 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,245 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,926 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,559 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,605 questions
asked 2024-11-12T14:24:48.2033333+00:00
Krasimir Rangelov 80 Reputation points
accepted 2024-11-12T17:58:31.56+00:00
Krasimir Rangelov 80 Reputation points
4 answers

Issues with Web Front End app for background PS scripts with PS remoting inside

Hi, I have issues with Web Front End app (running on IIS) for background PS scripts with PS remoting inside: $session = New-PSSession -ComputerName dcName -ConfigurationName DomainAdmins Invoke-Command -Session $session -ScriptBlock {...} …

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,559 questions
asked 2024-11-09T07:30:47.79+00:00
Bojan Zivkovic 461 Reputation points
commented 2024-11-12T12:40:19.92+00:00
MotoX80 34,511 Reputation points
2 answers

Changes made to the mail flow in EAC do not take effect immediately

Recently, I have made changes of mail flow in EAC but the rules did not take effect immediately. Sometime, I have to wait 2-3 hours or longer How to speed up to propagate the changes and apply them across the system? Could you provide the solutions on…

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,676 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,559 questions
asked 2024-11-01T01:46:24.89+00:00
CC 0 Reputation points
commented 2024-11-12T02:04:13.72+00:00
Alex Zhang-MSFT 1,915 Reputation points Microsoft Vendor
0 answers

Remove Opinion Center

What is the powershell command to permanently uninstall the win11 opinion center from all users? Thanks

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,799 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,245 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,559 questions
asked 2024-11-11T17:20:16.25+00:00
Mario 260 Reputation points
2 answers

Query on Snapsht

Hi All, I am using the PowerShell syntax below to take snapshots of Windows VMs. Will the current syntax use an incremental or full snapshot? I want to use a full snapshot. Additionally, I would like to take snapshots of Linux VMs. If I change -OsType…

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,008 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,559 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,605 questions
asked 2024-11-09T22:07:37.7033333+00:00
Glenn Maxwell 11,496 Reputation points
edited an answer 2024-11-11T16:36:07.4066667+00:00
Rich Matheisen 46,896 Reputation points
0 answers

while i close Negotiate and Kerberos,the winrm reports below error

While i close Negotiate and Kerberos, the winrm reports below error I can't do anything to solve this error, for example "winrm invoke Restore winrm/Config"

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,245 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,655 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,559 questions
asked 2024-11-11T08:59:19.7466667+00:00
e chn 0 Reputation points
4 answers

Warning PowerShell ID 300

Hi, More than a year after reporting the problem, I continue to receive the same PowerShell warning despite everything working normally and all versions being up to date. Maybe with this new information we can better understand the problem. I know it…

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,926 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,559 questions
asked 2024-09-14T17:41:59.9366667+00:00
Piero 75 Reputation points
edited a comment 2024-11-10T16:17:36.9366667+00:00
Piero 75 Reputation points
5 answers One of the answers was accepted by the question author.

Set-ExecutionPolicy Unrestricted during script run ?

Hi, I'm doing server automation in a test environment, and sometimes the script shows the ExecutionPolicy before the script is run. I wanted to know if this can be changed from within the script I'm running. I have tried many methods for changing it from…

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,559 questions
asked 2023-02-13T10:39:06.6933333+00:00
touqeeranjum 80 Reputation points
answered 2024-11-10T02:48:58.1566667+00:00
ẞITSIGNED BY RENEE 0 Reputation points
3 answers

hexadecimal value 0x00, is an invalid character. Line 2, position 1

VbrAnswerFile_install.txt Hi Experts, We are running an PowerShell comment in that PowerShell comment we are calling the XML file and trying to install veeam software. I am getting an error like "hexadecimal value 0x00, is an invalid character.…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,799 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,245 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,559 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,605 questions
asked 2024-11-07T14:28:11.7+00:00
Jimmy Afflick 80 Reputation points
answered 2024-11-08T19:43:12.8333333+00:00
Rich Matheisen 46,896 Reputation points
1 answer

PowerShell Error:SecurityError: (:) [], PSSecurityException

Hi All, I am using Windows MDT to deploy OS and run 2 PowerShell script to install a software (with registry update) and enable BitLocker per our customization request. Environment: MDT: 6.3.8456.1000 ADK: 10.1.19041.1 Both of…

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,559 questions
asked 2021-07-12T02:34:09.007+00:00
Bruce Zhang 26 Reputation points
commented 2024-11-08T15:25:50.8633333+00:00
morbraden 41 Reputation points
1 answer

server Error in '/' Application

When logging into our Rock portal this message pop up and we can not access the platform

Azure SQL Database
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,731 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,008 questions
Azure Managed Applications
Azure Managed Applications
An Azure service that enables managed service providers, independent software vendors, and enterprise IT teams to deliver turnkey solutions through the Azure Marketplace or service catalog.
148 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,559 questions
asked 2024-11-05T17:33:24.8433333+00:00
BCC Admin 0 Reputation points
commented 2024-11-07T17:42:34.54+00:00
Mahesh Kurva 725 Reputation points Microsoft Vendor
1 answer

remover la app xbox por ps

Hi guys. I need to remove the Xbox app completely from Win11, I run in admin mode: get-appxpackage xbox | remove-appxpackage But. It gives an error: This application is part of Windows and cannot be uninstalled individually by each user. An administrator…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,245 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,559 questions
asked 2024-10-29T21:27:58.6166667+00:00
Mario 260 Reputation points
commented 2024-11-07T16:47:34.8933333+00:00
Mario 260 Reputation points
6 answers

How to get admin local from all computers in domain

How can I do to get all admin local in domain? I tried command below but error $computers = Get-ADComputer -Filter * | Select-Object -ExpandProperty Name foreach ($computer in $computers) { Write-Host "Getting local administrators for computer…

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,559 questions
asked 2023-02-21T03:08:09.2633333+00:00
Trần Ngọc Nam 20 Reputation points
answered 2024-11-07T11:16:37.11+00:00
Shiv Kumar Sharma 0 Reputation points
1 answer One of the answers was accepted by the question author.

Get-WMIObject Win32_ComputerSystem UserName returns null for RDP user

So I am writing a PowerShell script to pick up some info from domain machines and one of the things that I want to correlate with is logged on user. In theory that is (Get-WmiObject -ComputerName $CompName -ClassName Win32_ComputerSystem).username …

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,731 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,559 questions
asked 2021-04-08T14:43:54.437+00:00
Russell Ramey 26 Reputation points
commented 2024-11-07T09:38:01.01+00:00
LEVY Antoine 0 Reputation points
2 answers

Is there a way to use Powershell to query a computer to retrieve a list of all Intune policies without needing to install a module?

Is there a way to use Powershell to query a computer to retrieve a list of all Intune policies without needing to install a module? Also, is there a way to use Tychon to query intune policy/policy settings from an endpoint?

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,559 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,213 questions
asked 2024-11-05T19:36:53.2933333+00:00
Richard R 0 Reputation points
commented 2024-11-07T07:19:16.71+00:00
Crystal-MSFT 49,426 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Powershell refresh desktop screen

Hello. How can I refresh desktop screen with powerhsell? Thanks for help.

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,559 questions
asked 2021-04-15T14:01:04.17+00:00
Filip 831 Reputation points
commented 2024-11-04T08:03:14.41+00:00
Pranavi Yandapalli 0 Reputation points