5,584 questions with Windows Server PowerShell tags

Sort by: Updated
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.
10,999 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,584 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,584 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,584 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
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,844 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,467 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,584 questions
asked 2024-12-19T08:46:49.8033333+00:00
49885604 190 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,267 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,584 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,601 Reputation points Microsoft Vendor
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,146 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,584 questions
asked 2024-12-11T08:30:11.6333333+00:00
Fahed Kollikavil 0 Reputation points
commented 2024-12-19T01:11:56.5633333+00:00
RaytheonXie_MSFT 37,076 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://learn.microsoft.com/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,647 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,646 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,584 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,704 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,584 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,601 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,633 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,584 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,622 questions
asked 2024-11-23T22:46:20.5+00:00
Roger Roger 6,571 Reputation points
accepted 2024-12-17T03:51:52.2233333+00:00
Roger Roger 6,571 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,584 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,584 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,584 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,584 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,844 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,902 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,467 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,584 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.
10,999 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,584 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,902 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,545 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,467 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,874 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,584 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
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,721 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,584 questions
asked 2024-11-01T01:46:24.89+00:00
CC 0 Reputation points
commented 2024-12-12T07:22:57.96+00:00
Alex Zhang-MSFT 2,925 Reputation points Microsoft Vendor
1 answer

impossible to ask microsoft a question through their rubbish Q & A panel - not finding tags

impossible to ask microsoft a question through their rubbish Q & A panel - not finding tags

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,902 questions
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,647 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,467 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,267 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,584 questions
asked 2024-12-11T16:48:15.4466667+00:00
REYNOLDS, Dean (SFHT) 0 Reputation points
answered 2024-12-11T18:14:57.5033333+00:00
MotoX80 34,771 Reputation points
3 answers

PowerShell script help required: Confirming computer exists under all domain controllers in a domain?

Hi all. I'm new to PowerShell coding and require assistance if anyone can help me? I work with a domain that has 5 domain controllers. 4 are local, 1 is remote and there is a 20 minute replication delay between the locals and remote. This cannot be…

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,584 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,704 questions
asked 2024-12-05T09:36:30.7233333+00:00
NHS Chris 0 Reputation points
answered 2024-12-10T16:20:25.5233333+00:00
Marti Peig 610 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

powershell move adobject with rename

hi! can somebody help. i need to move disabled users to DisabledAccounts OU, but it stops - because already exists $Users = Get-ADUser -Filter 'enabled -eq $false' -searchbase "OU=Company,DC=next,DC=local" -Properties LastLogonDate | where…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,902 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,467 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,267 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,584 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,704 questions
asked 2024-12-02T08:56:43.4066667+00:00
Ilya Bokov 165 Reputation points
accepted 2024-12-10T09:03:02.9333333+00:00
Ilya Bokov 165 Reputation points