5,561 questions with Windows Server PowerShell tags

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

Admin quotas by PowerShell

How to assign a quota template previously created through PowerShell to a specific folder?

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,805 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,275 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,561 questions
asked 2024-11-13T19:13:23.5933333+00:00
Mario 280 Reputation points
accepted 2024-11-18T22:46:09.5566667+00:00
Mario 280 Reputation points
1 answer One of the answers was accepted by the question author.

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,040 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,561 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,626 questions
asked 2024-11-09T22:07:37.7033333+00:00
Glenn Maxwell 11,601 Reputation points
accepted 2024-11-15T23:07:37.64+00:00
Glenn Maxwell 11,601 Reputation points
3 answers One of the answers was accepted by the question author.

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,805 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,275 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,561 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,626 questions
asked 2024-11-07T14:28:11.7+00:00
Jimmy Afflick 100 Reputation points
accepted 2024-11-15T09:35:16.57+00:00
Jimmy Afflick 100 Reputation points
1 answer

Retrieving the disk space utilization on Azure VM using PowerShell script?

I need clarification on whether it is possible to query the Azure VM disk space utilization. The PowerShell command below does not accurately show the usage; it only displays the VM disk…

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,040 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,343 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,264 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,561 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,626 questions
asked 2024-11-13T05:55:47.0866667+00:00
EnterpriseArchitect 5,406 Reputation points
commented 2024-11-15T05:50:06.2766667+00:00
Mounika Reddy Anumandla 825 Reputation points Microsoft Vendor
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,687 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,561 questions
asked 2024-11-01T01:46:24.89+00:00
CC 0 Reputation points
commented 2024-11-15T03:06:43.82+00:00
Alex Zhang-MSFT 1,915 Reputation points Microsoft Vendor
7 answers

powershell login error

hi all i am new to powershell and azure world. i am trying to login to my office365 azure using powershell. my admin account is MFA enabled. i am using connect-azuread command. i get the prompt to enter username/password and then approve the request…

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,561 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,229 questions
asked 2021-02-05T01:31:45.19+00:00
ABBA 46 Reputation points
commented 2024-11-14T17:20:41.7466667+00:00
Cosme Junior 21 Reputation points
2 answers One of the answers was accepted by the question author.

Get the list of the last logon users from a txt file using powershell

I want to get lastlgon from a list in the txt file My query on powershell gets the result for an account within the file, but with more users an error is generated. $file = Get-Content -Path "C:\Temp\UsersLastLogon.txt" Get-ADUser…

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,561 questions
asked 2021-02-02T12:58:00.817+00:00
joaomanoelc 171 Reputation points
commented 2024-11-14T12:48:23.99+00:00
Martin Farkaš (EVONYS) 0 Reputation points
1 answer

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,805 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,275 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,561 questions
asked 2024-11-11T17:20:16.25+00:00
Mario 280 Reputation points
answered 2024-11-14T01:30:30.7966667+00:00
Karlie Weng 18,581 Reputation points Microsoft Vendor
2 answers

pc is freezing and humming when playing a game

when playing pogo games orm doing a jigsaw puzzle pc freezes and hums causing me to shut down pc

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,561 questions
asked 2024-10-22T02:58:12.98+00:00
christine pastorek 0 Reputation points
answered 2024-11-14T00:15:53.6466667+00:00
John Smith 0 Reputation points
2 answers

SOLVED! 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,561 questions
asked 2024-11-12T16:02:46.0466667+00:00
Shawn Goodwin 176 Reputation points
commented 2024-11-13T22:35:29.79+00:00
Rich Matheisen 46,976 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,561 questions
asked 2024-11-12T15:57:57.06+00:00
Shawn Goodwin 176 Reputation points
commented 2024-11-13T22:24:03.5533333+00:00
Shawn Goodwin 176 Reputation points
4 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,561 questions
asked 2021-03-22T14:25:01.53+00:00
James Heath 1 Reputation point
answered 2024-11-13T16:47:45.7533333+00:00
skatterbrainz 31 Reputation points
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,352 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,603 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,687 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,561 questions
asked 2024-11-13T03:03:28.24+00:00
Anubhuti 20 Reputation points
commented 2024-11-13T05:00:44.5933333+00:00
Amit Singh 4,986 Reputation points
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,160 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,876 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,281 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,561 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,626 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,325 Reputation points Microsoft Vendor
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,760 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,275 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,986 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,561 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,626 questions
asked 2024-11-12T14:24:48.2033333+00:00
Krasimir Rangelov 120 Reputation points
accepted 2024-11-12T17:58:31.56+00:00
Krasimir Rangelov 120 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,561 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,516 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,275 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,673 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,561 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,986 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,561 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,561 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
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,561 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