5,563 questions with Windows Server PowerShell tags

Sort by: Updated
0 answers

Cloud shell is not failing to connect azure subscriptions

Hi Team, Azure Cloud shell is failing to connect azure subscription. Please attached screenshot for your reference,

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,563 questions
asked 2024-11-21T11:16:54.5066667+00:00
Parmeshwar Jadhao 21 Reputation points
1 answer

remote quota assignment. automation.

Having a quota template already created in a FS, and in the same FS there is the user's personal folder created. How can I automate the quota assignment, when the user logs in for the first time in his Workstation (win11) and already has access to his…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,808 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,771 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,289 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,563 questions
asked 2024-11-20T23:59:54.6+00:00
Mario 280 Reputation points
answered 2024-11-21T08:24:01.4133333+00:00
Yanhong Liu 12,735 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,690 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,563 questions
asked 2024-11-01T01:46:24.89+00:00
CC 0 Reputation points
commented 2024-11-21T07:01:37.0166667+00:00
Alex Zhang-MSFT 1,990 Reputation points Microsoft Vendor
2 answers

New-ComplianceSearch in specific folder in mailbox?

Hello, I need to delete all emails from X sender in specific folders in a user's email (e.g. Archive, but not Inbox). How can I specify the specific folder in the mailbox to delete from? I am using New-ComplianceSearch PowerShell function for Exchange…

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,608 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,563 questions
asked 2022-04-25T00:58:20.017+00:00
Bryan Folmsbee 1 Reputation point
commented 2024-11-21T01:43:12.1366667+00:00
Bilal D 0 Reputation points
6 answers One of the answers was accepted by the question author.

SCCM Detection Method: Error 0x87D00327 (-2016410841) Script is not signed

I discovered a problem in SCCM compliance. When using a PS script for detection, an error (0x87D00327 (-2016410841) Script is not signed) is returned. After closer examination of the problem, I found out: SCCM creates a temporary ps1 file in 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,563 questions
Microsoft Configuration Manager
asked 2020-12-16T14:57:09.067+00:00
P M 21 Reputation points
answered 2024-11-19T17:37:16.4033333+00:00
ros\\tech 6 Reputation points
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,808 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,289 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,563 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,056 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,563 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 questions
asked 2024-11-09T22:07:37.7033333+00:00
Glenn Maxwell 11,621 Reputation points
accepted 2024-11-15T23:07:37.64+00:00
Glenn Maxwell 11,621 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,808 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,289 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,563 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 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,056 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,369 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,563 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 questions
asked 2024-11-13T05:55:47.0866667+00:00
EnterpriseArchitect 5,411 Reputation points
commented 2024-11-15T05:50:06.2766667+00:00
Mounika Reddy Anumandla 825 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,563 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,262 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,563 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,808 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,289 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,563 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,563 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,563 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 47,056 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,563 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,563 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,355 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,608 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,690 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,563 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,161 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,897 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,285 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,563 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 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,410 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,771 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,289 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,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,563 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,634 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,563 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