5,586 questions with Windows Server PowerShell tags

Sort by: Updated
1 answer

inactive mailboxes

Hi All, I have a few inactive mailboxes under a retention policy in the Microsoft Purview Portal (Data Lifecycle Management → Retention policies → RP01). Let's say the policy is named RP01, and its GUID is u98k89mn-9876-ht68-mjki-kj78oophgy768. Exporting…

Microsoft Exchange Online
Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
1,302 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,657 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.
2,178 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,586 questions
asked 2024-12-26T16:40:30.9166667+00:00
Glenn Maxwell 11,981 Reputation points
edited an answer 2024-12-27T05:03:54.9733333+00:00
Alex Zhang-MSFT 3,155 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Command to get monitor model number and serial number

simple Command to get monitor model number and serial number just like below

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,586 questions
asked 2024-02-06T00:41:39.5633333+00:00
Pavan 20 Reputation points
edited an answer 2024-12-27T04:55:35.72+00:00
Ian Xue 38,731 Reputation points Microsoft Vendor
0 answers

How do I fix Win32kfull sys?

The win32kfull.sys issue is often associated with Blue Screen of Death (BSOD) errors on Windows. It generally points to problems with drivers, corrupt system files, or hardware issues. Below is a step-by-step guide to troubleshoot and resolve the…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,849 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,372 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,964 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,875 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,586 questions
asked 2024-12-26T11:55:18.8666667+00:00
Regina Krista 0 Reputation points
2 answers

How to get NIC Firmware versions

Ive been trying to get the NIC firmware versions of all of our physical servers but i cant seems to find a powershell code or script that can do this. I have tried wmiobject, ciminstance and get-netadapter but no firmware versions. Any suggestions? Any…

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,586 questions
asked 2023-02-06T22:01:34.9166667+00:00
theythoughtimexpert_abbido 26 Reputation points
edited a comment 2024-12-24T10:59:17.54+00:00
Mr. Beedell, Roke Julian Lockhart 6 Reputation points
1 answer

The local farm is not accessible. cmdlets with featuredependencyid are not registered

Dears, Hope this mail finds you well. We are facing an issue with our SharePoint server while opening either the Windows PowerShell or SharePoint Management Shell, throwing an error as “The local farm is not accessible..”. I tried to run the Shell with…

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,399 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,154 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,586 questions
asked 2024-12-11T08:30:11.6333333+00:00
Fahed Kollikavil 0 Reputation points
commented 2024-12-24T07:31:48.58+00:00
RaytheonXie_MSFT 37,151 Reputation points Microsoft Vendor
0 answers

SQL User Password Rotation in MBAM Platform

Hi all, I have a server with the MBAM platform installed, and the MBAM database resides on a SQL instance in another server. A password change for the SQL user is needed, but it is unclear where to update it in the MBAM platform and if it is necessary…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,849 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,481 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,586 questions
asked 2024-12-19T08:46:49.8033333+00:00
49885604 190 Reputation points
commented 2024-12-23T15:01:19.7266667+00:00
49885604 190 Reputation points
3 answers One of the answers was accepted by the question author.

Automating with PowerShell - Move user's onedrive files to an archive folder on SharePoint when offboarding employee

Currently we go through a manual process of; login to office365 with global admin. go to the user's properties and create onedrive link to the user's files. click the link, select all files/folders then move them to a sharepoint archive…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,001 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,586 questions
asked 2022-08-17T11:21:09.027+00:00
Kevin Carbonaro 21 Reputation points
commented 2024-12-22T06:48:22.2233333+00:00
Oz Said 0 Reputation points
5 answers

Protect Powershell script to be not editable, but executable

Hi, can you anybody show me how can I protect a script, so that the script cannot be changed (modified), but it's can be run for example every night at 00:00 as scheduled task? 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,586 questions
asked 2021-05-25T11:33:24.28+00:00
Ivaylo Stefanov 136 Reputation points
answered 2024-12-19T15:34:35.3133333+00:00
Daniel Ruiz 0 Reputation points
2 answers

Script to deny access to this computer over the network - Windows

For a college study, I need to study ways to create a script to deny computer access, which is done by going into: "run: gpedit.msc" Computer Configuration Windows Settings Security Settings Local Policies User…

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,586 questions
asked 2022-10-04T20:22:35.83+00:00
Tarley Rodrigues 1 Reputation point
commented 2024-12-19T11:34:21.08+00:00
Yashas 0 Reputation points
1 answer

My PC randomly shuts down during gaming. How do I find the cause to this?

Hello, I just upgraded all new parts to my PC except for my graphics card and power supply. I thought the issue was coming from the power supply so i bought a new 1000w one. Specs: MSI MAG x870, AMD Radeon 6900 XT, AMD Ryzen 7 9700X, 2x DDR5 RAM, 1 Hard…

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,280 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,586 questions
asked 2024-12-18T18:06:10.1966667+00:00
BrknDream 0 Reputation points
answered 2024-12-19T01:56:47.34+00:00
Hania Lian 19,906 Reputation points Microsoft Vendor
5 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://zcusa.951200.xyz/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.
5,652 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,654 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,586 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,706 questions
asked 2023-03-24T15:25:41.6533333+00:00
Ag-8821 41 Reputation points
commented 2024-12-18T13:46:04.0733333+00:00
Bjørn Mathisen 0 Reputation points
2 answers

How to run a batch file when windows 11 when shutdown is activated

I need to activate a USB relay using serial code on shutdown

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,586 questions
asked 2024-12-17T09:40:07.49+00:00
richard norling 0 Reputation points
answered 2024-12-18T06:07:57.67+00:00
Hania Lian 19,906 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Connect-MgGraph

I want to connect to Azure MS Graph using an Azure Service Principal. How can I generate a certificate for the Azure Service Principal? I have the Client ID and Tenant ID. I need to fetch users information from Azure AD, and I have the required Graph API…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,659 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,586 questions
Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,653 questions
asked 2024-11-23T22:46:20.5+00:00
Roger Roger 6,671 Reputation points
accepted 2024-12-17T03:51:52.2233333+00:00
Roger Roger 6,671 Reputation points
0 answers

Need help with Powershell 7.4 Invoke-RestMethod error: 'Operation is not valid due to the current state of the object

Hello I'm trying to run an API Patch request, using Invoke-RestMethod, to update one item(email address) at the endpoint whilst looping through a dataset which has the item value to update and the parameter for the uri. I am, however, receiving an error…

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,586 questions
asked 2024-12-16T13:44:11.2+00:00
Michael Cameron 6287 0 Reputation points
commented 2024-12-16T19:24:19.5533333+00:00
Rich Matheisen 47,481 Reputation points
2 answers

Powershell ISE Illegal characters in path with literalpath

Hello! I have encountered the problem of running PowerShell cmdlets using "LiteralPath" in PowerShell ISE, when folder is existing. Error message: Get-ChildItem : Illegal characters in path. At line:1 char:1 + Get-ChildItem -LiteralPath…

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,586 questions
asked 2024-05-27T08:27:00.97+00:00
Step to IT 100 Reputation points
edited a comment 2024-12-16T11:53:21.0233333+00:00
Joachim Otahal 16 Reputation points
2 answers

I need to create a PowerShell script that fixes several AD accounts in the office field with the new office spelling, all at once, from capital to normal case. I do not need change the normal office spelling for those that are correctly spelled. Using the

I need to create a PowerShell script that fixes several AD accounts in the office field with the new office spelling, all at once, from capital to normal case. I do not need change the normal office spelling for those that are correctly spelled. Using…

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,586 questions
asked 2024-12-12T17:36:12.08+00:00
Martinez, Martin 0 Reputation points
edited an answer 2024-12-15T16:38:57.21+00:00
Rich Matheisen 47,481 Reputation points
3 answers

Adobe Acrobat DC on Powershell

I am a newbie on this forum but has developed some simple powershell scripts for file manipulation in the past. Part my task right now is to combine .pdf files into a portfolio using adobe acrobat through powershelll. My code looks like this cls …

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,586 questions
asked 2022-02-16T00:14:04.357+00:00
Trebor905 11 Reputation points
answered 2024-12-15T11:01:22.73+00:00
Kira 0 Reputation points
1 answer One of the answers was accepted by the question author.

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,849 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,908 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,481 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,586 questions
asked 2024-11-20T23:59:54.6+00:00
Mario 300 Reputation points
accepted 2024-12-13T20:41:58.2333333+00:00
Mario 300 Reputation points
2 answers One of the answers was accepted by the question author.

SharePoint online: Get permission from each document folder by PowerShell via CSV file

Hi, I'm looking for solution on following. I want to get permission from a document library the folder and subfolder with permission settings and want it as CSV file output. During searching, I found this script, but it doesn't include the…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,001 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,586 questions
asked 2021-12-10T05:58:24.157+00:00
Sato,Rene 21 Reputation points
commented 2024-12-13T09:02:02.0033333+00:00
Santhosh Kumar 0 Reputation points
1 answer

WMI connection Problem on Windows10

Hello, In a VMware environment, I installed Windows Server 2016 as the Domain Controller. Additionally, I set up another Windows Server where I configured WMI permissions, granting WMI namespace access to a domain user. Afterward, I applied a GPO with…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,908 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,548 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,481 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,875 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,586 questions
asked 2024-12-11T16:31:29.9233333+00:00
Mohammed El alami 0 Reputation points
edited the question 2024-12-12T08:21:03.26+00:00
Mohammed El alami 0 Reputation points