2,867 questions with PowerShell-related tags

Sort by: Updated
0 answers

I am using the PowerShell command Get-WmiObject Win32_SystemEnclosure | Select-Object -ExpandProperty ChassisTypes, and it returns a value of 35. I am trying to identify what this chassis type represents, but I cannot find this information in our document

I am using the PowerShell command Get-WmiObject Win32_SystemEnclosure | Select-Object -ExpandProperty ChassisTypes, and it returns a value of 35. I am trying to identify what this chassis type represents, but I cannot find this information in our…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,867 questions
asked 2025-03-17T11:22:18.77+00:00
Rohit Ramchandra Shinde 0 Reputation points
edited the question 2025-03-17T11:42:25.72+00:00
Rohit Ramchandra Shinde 0 Reputation points
0 answers

I need to sequentially log two domain users on to a device to create the profiles at first logon

The scenario is we have 2 domain users that are used for public access machines (one child profile and one adult profile). We use the UWF to protect the hard drive. If the profiles are not created first before the write filter is applied then the…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,867 questions
asked 2025-03-17T11:10:08.4733333+00:00
Rob Callan 0 Reputation points
0 answers

How to Export Guest user accounts with their Last login details via Powershell script only

Hi Community, We are looking to export the Guest user accounts with their last login details. Please help us to share the Powershell script which could help us to export the required data from the extra ID.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,867 questions
asked 2025-03-17T10:16:52.7433333+00:00
Prince Chauhan 0 Reputation points
edited the question 2025-03-17T10:17:54.8633333+00:00
Prince Chauhan 0 Reputation points
3 answers

restore data deleted in my db cosmos account

Hi all, i deleted my db cosmos account by accident, please help. I am not sure if there was nay backup, i deleted theis data a few minutes ago, only noticed now

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,867 questions
asked 2025-03-16T13:16:30.2766667+00:00
Tebatso Mphati 0 Reputation points
answered 2025-03-17T09:36:57.5366667+00:00
Molly Lu-MSFT 1,651 Reputation points Microsoft External Staff
2 answers

Windows 11 terminal error message - Failed to reload settings

Every time I open a terminal I get the following error: Failed to reload settings Settings could not be reloaded from file. Check for syntax errors, including trailing commas The file exists Temporarily using the windows terminal default settings Can…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,867 questions
asked 2025-03-16T10:59:07.1033333+00:00
Barry Smith 0 Reputation points
answered 2025-03-17T07:22:13.2866667+00:00
Ian Xue-MSFT 40,746 Reputation points Microsoft External Staff
0 answers

Register learn profile

I thought I registered for a learn profile for my account but no access to sandbox. How do I register for a learn account profile

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,867 questions
asked 2025-03-16T18:59:33.9266667+00:00
Joseph Daniel 0 Reputation points
0 answers

Get-EXORecipientPermission : Error while querying REST service. HttpStatusCode=500

Working with ExchangeOnlineManagement v 3.7.1 and yesterday 3/13/2025 Get-EXORecipientPermission -ResultSize unlimited was working perfectly fine Today, 3/14/2025, I am getting this error Get-EXORecipientPermission : Error while querying REST service.…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,867 questions
asked 2025-03-14T17:43:06.46+00:00
Baldwin, Joshua 0 Reputation points
commented 2025-03-14T21:27:07.03+00:00
Baldwin, Joshua 0 Reputation points
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,867 questions
asked 2025-03-03T16:19:36.93+00:00
Mani 396 Reputation points
commented 2025-03-14T19:01:31.37+00:00
Mani 396 Reputation points
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,867 questions
asked 2025-03-13T21:21:43.6433333+00:00
Alexander Spitaler 20 Reputation points
accepted 2025-03-14T07:07:58.7033333+00:00
Alexander Spitaler 20 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,867 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 110.3K 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,914 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,867 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,867 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,651 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,867 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,546 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,867 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,495 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,867 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,425 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,867 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,867 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,867 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,867 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,867 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