2,861 questions with PowerShell-related tags

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

Activate Azure benefit license for Azure Arc machines via Powershell or Azure Policy

Hi folks, is there a way to enable the Azure benefit license (Software Assurance) via Azure Policy or via Powershell? I only found some cmdlets/Policies for Azure Virtual Machines but not for Azure Arc Machines. Thanks

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,861 questions
asked 2025-03-13T21:21:43.6433333+00:00
Alexander Spitaler 0 Reputation points
accepted 2025-03-14T07:07:58.7033333+00:00
Alexander Spitaler 0 Reputation points
2 answers

How to access old user folder?

I recently had an issue which caused me to have to reinstall windows onto a different drive, and now that I've got that done, I'm trying to copy over my old files to the new drive. Problem: I can't access my old user folder. Now, I'm no stranger to…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,077 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,861 questions
asked 2023-03-01T08:26:01.7766667+00:00
ShadowGamer3 15 Reputation points
edited a comment 2025-03-13T15:14:02.3266667+00:00
TP 109.4K Reputation points
4 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,861 questions
asked 2025-03-11T08:11:52.9533333+00:00
Bojan Zivkovic 551 Reputation points
answered 2025-03-13T14:45:42.8533333+00:00
Rich Matheisen 47,686 Reputation points
1 answer One of the answers was accepted by the question author.

What are the steps and procedure to use gMSA as the Windows Server Service Account?

After creating the gMSA using the below PowerShell, how can I successfully replace the services in all of my Windows Server Application servers? New-ADServiceAccount -Name New-gMSA -DNSHostName Mydomain.com -PrincipalsAllowedToRetrieveManagedPassword…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,726 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,911 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,902 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,628 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,861 questions
asked 2024-10-15T11:16:18.71+00:00
EnterpriseArchitect 5,736 Reputation points
accepted 2025-03-13T13:07:46.2466667+00:00
EnterpriseArchitect 5,736 Reputation points
1 answer

azure sandbox

i cannot sign in my sandbox account in powershell and i have tried bash aswell with my azure free account

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,861 questions
asked 2025-03-12T17:56:11.6866667+00:00
kumaran s 0 Reputation points
answered 2025-03-13T09:07:52.67+00:00
Molly Lu-MSFT 1,571 Reputation points Microsoft External Staff
0 answers

How can I use Powershell to update the number in an Auto Attendant's' Call Flow' - 'Call Routing' - 'Redirect Call' field?

We're looking to set up some On Call auto attendants which would redirect to whichever staff member was rostered on that week. I have some Powershell scripting in mind, but the critical problem is that I don't know how to script updating the number in an…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,861 questions
asked 2025-03-13T06:27:10.7533333+00:00
Chris Banks 0 Reputation points
1 answer

Issues using managed dependencies in Azure Functions with PowerShell - ExchangeOnlineManagement

Hi everyone, I am trying to deploy a simple Azure Function using PowerShell. However, I cannot load any modules. I have a module for ExchangeOnlineManagement I declared it in the requirements file. I also added managed depedencies to the host.json file…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,538 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,861 questions
asked 2025-01-22T14:52:47.9933333+00:00
Michał Pawlicki 0 Reputation points
commented 2025-03-13T04:50:18.56+00:00
Schroeder, Michael (CTR) 36 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,492 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,861 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,416 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,861 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,861 questions
asked 2025-03-11T22:29:56.37+00:00
BlackCat 106 Reputation points
accepted 2025-03-12T14:07:45.8266667+00:00
BlackCat 106 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,861 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,861 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,861 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,810 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,861 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,861 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,786 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,861 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,861 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,861 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,861 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,861 questions
asked 2025-03-07T15:46:50.0566667+00:00
Faslan Ahmad 5 Reputation points