2,858 questions with PowerShell-related tags

Sort by: Updated
3 answers

Microsoft Desired State Configuration 3.0

Hi, I know that Microsoft Desired State Configuration 3.0 is still in preview, but I am interested in some documentation where I can find how to do things now (push config to remote servers, configure periodic checks for config drifts now when LCM is no…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,858 questions
asked 2025-03-11T08:11:52.9533333+00:00
Bojan Zivkovic 551 Reputation points
commented 2025-03-12T16:09:50.24+00:00
Rich Matheisen 47,686 Reputation points
3 answers

How to launch Microsoft Edge to a specific Workspace?

How can I launch Microsoft Edge directly to a specific shared Edge Workspace, ie what is the command line switch? Preferably I would like to launch two workspaces at once; more preferably I would like to launch them on to the last desktop region that…

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,487 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,858 questions
asked 2023-09-11T09:44:11.8766667+00:00
Paul Jefferies 30 Reputation points
commented 2025-03-12T15:03:25.79+00:00
I G.M.A Apriantara 0 Reputation points
2 answers One of the answers was accepted by the question author.

Connect-SPOService : No valid OAuth 2.0 authentication session exists ?

I have not been able to connect using the command “Connect-SPOService -Url https://company-admin.sharepoint.com” for several months now. I pick account Enter password click "Next" And get this empty "working..." window…

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,406 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,858 questions
asked 2024-11-01T12:21:58.72+00:00
Matthias 20 Reputation points
answered 2025-03-12T14:23:17.7133333+00:00
Jaden Dossous 0 Reputation points
1 answer One of the answers was accepted by the question author.

Convert Curl to invoke-restMethod

I am trying to use this Curl example and make it work with Powershell. I am stuck at multiple data for "Identifier". this section will create report in CSV format "report_metadata": { "report_type": "orders", …

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,858 questions
asked 2025-03-11T22:29:56.37+00:00
BlackCat 86 Reputation points
accepted 2025-03-12T14:07:45.8266667+00:00
BlackCat 86 Reputation points
0 answers

How can I build mez file from .proj or .pq file via commandline?

I need to automate building of PowerBI connector from .proj or .pq file to .mez On local machine, we are able to do that with Visual studio code and it's Power Query SDK extension https://learn.microsoft.com/en-us/power-query/install-sdk but I am not…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,858 questions
asked 2025-03-12T08:25:44.6866667+00:00
Ritika Laddha 145 Reputation points
0 answers

How can I build mez file from .proj or .pq file via commandline?

I need to automate building of PowerBI connector from .proj or .pq file to .mez On local machine, we are able to do that with Visual studio code and it's Power Query SDK extension https://learn.microsoft.com/en-us/power-query/install-sdk but I am…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,858 questions
asked 2025-03-12T08:18:24.19+00:00
Ritika Laddha 145 Reputation points
edited the question 2025-03-12T08:23:01.2333333+00:00
Ritika Laddha 145 Reputation points
1 answer

How to resolve "Unable to start the Cloud Shell" error in Learn Sandbox

When attempting to access the Learn Sandbox CLI, the error "Unable to start the Cloud Shell" occurs despite following the recommended troubleshooting methods. Attempts have been made to log in with two different Microsoft accounts. What steps…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,858 questions
asked 2025-03-12T00:46:59.7033333+00:00
Chad Moore 0 Reputation points
answered 2025-03-12T06:17:15.8033333+00:00
Zunhui Han 3,730 Reputation points Microsoft External Staff
1 answer

Unable to add the users to the admins group in databricks workspace

Could not add the users into admins group of dataricks workspace (if users are associated with some groups) using PowerShell module "Update-DatabricksSCIMUser -UserName $usermailID -GroupNames admins -Entitlements allow-cluster-create" But…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,858 questions
asked 2025-03-08T20:54:19.0633333+00:00
Chethana B S 0 Reputation points
commented 2025-03-11T15:20:39.8966667+00:00
Rich Matheisen 47,686 Reputation points
3 answers

How to enable BitLocker autounlock on USB device from Powershell

Hello, I created a script to enable bitlocker on a USB storage device. In the same script after I wait for the encrypt status to reach 100% I tried to enable autounlock with the following line: Enable-BitLockerAutoUnlock -MountPoint "D:" Once…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,858 questions
asked 2025-03-06T11:40:29.6233333+00:00
Samuel Polizzano 0 Reputation points
answered 2025-03-11T08:39:59.06+00:00
Samuel Polizzano 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to get all users with alias as subdomain

Hello All, We need to pull a report where users having alias as our subdomains We have around 20k users and we need to filter out them with our subdomains (15). Please suggest a quick and easy to figure it out, pulling out the entire report and checking…

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,785 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,250 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,858 questions
asked 2025-01-30T20:46:33.41+00:00
Mani 376 Reputation points
commented 2025-03-10T18:18:26.0166667+00:00
Kory Skarbek 0 Reputation points
2 answers

Microsoft Entra ID, Last Sign In

Good afternoon. I am a tenant administrator, I need to obtain the last sign in of the users, currently I see that I get the following error, it is worth mentioning that I always use this script and I did get the information but a few days ago I started…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,858 questions
asked 2025-03-06T23:23:19.0233333+00:00
GuestGuivenchi 105 Reputation points
answered 2025-03-10T11:23:04.5033333+00:00
Kavya 490 Reputation points
0 answers

PowerShell Command to find duplicate documents in SharePoint Online

We have lot of duplicate documents in our SharePoint online. Looking for help from the community. Can PowerShell command be used to do the following? Identify duplicate documents on each site/library. Move them to a another library where they can be…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,858 questions
asked 2025-03-09T22:44:46.35+00:00
Ajay Mandal 21 Reputation points
1 answer

How to fix 'System.Net.ServicePointManager' error when I open Powershell?

I have tried everything that I could imagine. Things like, sfc /scannow, DISM, CHKDSK, Restore my Windows twice, changing the machine.conf to default and so long, any of these worked. So I want really to know if I can fix this problem with something that…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,858 questions
asked 2023-03-25T21:45:54.1866667+00:00
Matheus D. Santos 5 Reputation points
commented 2025-03-09T17:03:32.56+00:00
M K 0 Reputation points
0 answers

Getting error when deploying AKS cluster with ARM template using Marketplace application:

{   "code": "DeploymentFailed",   "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,858 questions
asked 2025-03-07T15:46:50.0566667+00:00
Faslan Ahmad 5 Reputation points
1 answer One of the answers was accepted by the question author.

my pc restarts itself when i play a game

my pc restarts itself in any time when i play games mostly on roblox the most game that my pc powers off the most but when i play bigger games like warzone or any cod nothing happens - mabye it restarts 1 time but not so much like roblox i had this…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,858 questions
asked 2025-03-06T15:47:35.7+00:00
maged hany 20 Reputation points
accepted 2025-03-07T14:52:41.24+00:00
maged hany 20 Reputation points
1 answer

Need script for java uninstallation

I am looking for a script that can uninstall Java JDK and JRE from the system but should not uninstall OpenJDK

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,858 questions
asked 2025-03-07T04:39:59.7066667+00:00
TechUST 581 Reputation points
answered 2025-03-07T07:59:58.5766667+00:00
Ian Xue-MSFT 40,431 Reputation points Microsoft External Staff
1 answer

IP assignment

Hello, We have one virtual machine in azure, which has an interface with a lot of IP Addresses (25 IPs+ as secondary, see please screenshot). Also I have one identical virtual machine (state is down). And in case of failure of first machine I need to…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,858 questions
asked 2025-02-24T13:20:27.1166667+00:00
immm 20 Reputation points
commented 2025-03-07T06:23:34.62+00:00
imm2 25 Reputation points
3 answers

How to uninstall Chrome Apps silently with powershell?

Hi, I'm trying to uninstall silently a Chrome app but i have still the confirmation pop up before uninstall. I have used the following switches but nothing works: --quiet, --q, --silent, --s, --force-uninstall, --qb. The uninstallation command is…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,858 questions
asked 2025-03-01T11:09:04.4233333+00:00
julien deroche 131 Reputation points
answered 2025-03-07T01:45:54.9833333+00:00
Mars Shan-MSFT 465 Reputation points Microsoft External Staff
1 answer

How to get the dates of In-place Holds (eDiscovery Holds) applied to a list of mailboxes

Hello All, How to get the dates of In-place Holds (eDiscovery Holds) applied to a list of mailboxes using PowerShell

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,858 questions
asked 2025-03-03T16:19:36.93+00:00
Mani 376 Reputation points
answered 2025-03-07T01:35:28.5766667+00:00
Mars Shan-MSFT 465 Reputation points Microsoft External Staff
1 answer

Enable Teams recognition setting for only one user or group

Hello, Please i need your help on this issue. We used Set-cCsTeamsAIPolicy to create a new policy to enable Face/Voice recognition and applied it to an account with Grant -CsTeamsAIPolicy command (screenshot attached). It's been more than a week but the…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,858 questions
asked 2025-03-06T17:21:30.8766667+00:00
James James 20 Reputation points
answered 2025-03-07T01:32:48.4733333+00:00
Daisy Zhou 30,891 Reputation points Microsoft External Staff