2,744 questions with PowerShell-related tags

Sort by: Updated
0 answers

Invoke-PnPTenantTemplate did not perform any action and ends after 2 seconds only

I have 2 tenants; Source & Destination. I export the site from source and try to invoke it inside the destination, but it failed, here are the steps i followed:- Connect-PnPOnline -Url "https://source.sharepoint.com/sites/Projects"…

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,201 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,744 questions
asked 2025-01-18T21:32:19.0766667+00:00
john john Pter 400 Reputation points
edited the question 2025-01-18T21:36:21.53+00:00
john john Pter 400 Reputation points
4 answers

Connect-ExchangeOnline in Azure Automation account gives Unable to find type (EXO 3.5.1 PS7.2)

I have setup an Azure Automation account and loaded the EXO 3.5.1 module along with PackageManagement V1.4.8.1 and PowerShellGet v2.2.5. I open a new PowerShell runbook and just posted a Connect-ExchangeOnline -ManagedIdentity - Organisation…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,290 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,744 questions
asked 2024-07-25T10:20:56.2033333+00:00
Craig Tucker 45 Reputation points
commented 2025-01-18T03:06:02.02+00:00
Jason Doyle 1 Reputation point
1 answer

How can we disable vTPM(Trusted platform module) for Windows Virtual machine using powershell script

We are trying to move our windows 11 VM from one cluster to another which requires vTPM (Trusted platform module) to be disabled. After re-enabling vTPM after performing the migration we get tmp error - C0090016, TPM has malfunctioned Microsoft 365…

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,256 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,455 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,744 questions
asked 2025-01-17T12:53:14.99+00:00
Ishan Saxena 40 Reputation points
edited an answer 2025-01-17T17:13:01.3566667+00:00
Markapuram Sudheer Reddy 255 Reputation points Microsoft Vendor
1 answer

how to disable vTPM using powershell script

We are trying to move our windows 11 VM from one cluster to another which requires vTPM (Trusted platform module) to be disabled. After re-enabling vTPM after performing the migration we get tmp error - C0090016, TPM has malfunctioned Microsoft 365…

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,455 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,744 questions
asked 2025-01-16T16:13:47.45+00:00
ishan saxena 0 Reputation points
answered 2025-01-17T15:12:47.6166667+00:00
Markapuram Sudheer Reddy 255 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

WARNING: Unable to acquire token for tenant 'organizations' with error 'InteractiveBrowserCredential authentication failed: Method not found: 'Void Microsoft.Identity.Client.Extensions.Msal.MsalCacheHelper.RegisterCache(Microsoft.Identity.Client.ITokenCa

Hi Team, Can someone here please assist me with this error to connect my PowerShell session using the Connect-AzAccount ? PS C:\WINDOWS\system32\WindowsPowerShell\v1.0> Connect-AzAccount WARNING: Unable to acquire token for tenant 'organizations' with…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,799 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,744 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,898 questions
asked 2023-08-08T13:25:14.0933333+00:00
EnterpriseArchitect 5,536 Reputation points
commented 2025-01-17T15:02:29.9766667+00:00
Pratul Kumar Patel 0 Reputation points
2 answers One of the answers was accepted by the question author.

Programmatically activate my Entra ID assigned role from PIM using PowerShell

I usually go to this page: https://entra.microsoft.com/?feature.msaljs=true#view/Microsoft_Azure_PIMCommon/ActivationMenuBlade/~/aadmigratedroles/provider/aadrolesto activate it via GUI.  How can I programmatically activate my Entra ID assigned role from…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,799 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,744 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,898 questions
asked 2024-08-16T11:17:04.49+00:00
EnterpriseArchitect 5,536 Reputation points
edited a comment 2025-01-17T14:32:40.3466667+00:00
quantumquark 0 Reputation points
2 answers One of the answers was accepted by the question author.

Unable to get full list of users with Legal Hold

Hello All, I tried this command to get all users who are placed on Holds Get-Mailbox -ResultSize unlimited | where{$_.InPlaceHolds -ne $null} | FL DisplayName,PrimarySmtpAddress,RecipientTypeDetails,InPlaceHolds | Export-Csv -Path…

Microsoft Exchange Online
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,692 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,744 questions
asked 2025-01-16T22:17:32.5933333+00:00
Mani 316 Reputation points
commented 2025-01-17T13:45:12.3033333+00:00
Mani 316 Reputation points
1 answer

Is there a PowerShell statement that can Update a server with User Managed Identies?

Hi Is there a PowerShell statement that can Update a server with User Managed Identies? like this : az sql server update -g myResourceGroup -n myServer -i \ --user-assigned-identity-id…

Azure SQL Database
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,744 questions
asked 2025-01-16T12:03:59.64+00:00
Brian D H ZHANG 40 Reputation points
commented 2025-01-17T12:38:56.9433333+00:00
Marcin Policht 31,705 Reputation points MVP
1 answer

Is there any powershell script by which I can find utilization details of the disks attached to a particular virtual machine?

I want to know how much is the free space and how much is the available space for all the disks present in a particular virtual machine ? FYI: The VM is present in Microsoft Azure.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,256 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,602 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,744 questions
asked 2025-01-17T09:17:05.0266667+00:00
Tajman Kaur 0 Reputation points
edited an answer 2025-01-17T11:02:06.82+00:00
Sina Salam 15,396 Reputation points
0 answers

Aspire Dashboard is not showing the updated start time of the containers and unable to start/stop containers using PS command line

I have deployed Dotnet Aspire Project using azure developer cli.- Multiple deployments are completed but the start time is not updating with each new deployment.- However active revision time is updated when i check it from Azure Portal.- How can i…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,739 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
506 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,744 questions
asked 2025-01-17T09:52:50.2+00:00
Faisal Riaz 0 Reputation points
0 answers

PowerShell script to wipe\reset windows modern devices without user interaction

I attempted to reset a modern Windows device using various PowerShell scripts at different permission levels, including silent mode. However, a prompt still appears during the process. Is there a PowerShell script available that can wipe the device's…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,744 questions
asked 2025-01-17T07:22:34.65+00:00
Sreekanth N Kartha 0 Reputation points
1 answer

About Deleting Intune/Entra ID device using powershell

Can anyone tell me the powershell that delete the Intune and EntraID device I try to search on internet but couldnot found It will be great help if anyone provide me this Thank you

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,446 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,744 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,898 questions
asked 2025-01-14T03:29:07.5566667+00:00
ネパリ サンデャ 460 Reputation points
commented 2025-01-17T06:27:18.53+00:00
Xenia-MSFT 3,675 Reputation points Microsoft Vendor
1 answer

How to fix Error Acquiring Token

I'm getting this error whenever i try to connect to Exchange online using PowerShell as Admin and I can't figure out how to fix it. Error Acquiring Token: Unknown Status: Unexpected Error: 0xffffffff80070520 Context: (pii) Tag: 0x21420087 (error code…

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,692 questions
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,759 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,744 questions
asked 2025-01-13T15:53:39.0066667+00:00
Andrea Thiel 0 Reputation points
commented 2025-01-17T01:34:47.53+00:00
Xintao Qiao-MSFT 5,640 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How can I perform bulk changes for the Microsoft Authenticator Apps registration?

I have several thousands of users in my company that are still using SMS as the primary authentication methods without anything else. How can I perform the bulk enroll or add the Microsoft Authenticator apps to the below user settings ? Thank you in…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,799 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,744 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,987 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,898 questions
asked 2025-01-15T05:32:37.4633333+00:00
EnterpriseArchitect 5,536 Reputation points
commented 2025-01-17T00:05:50.7+00:00
EnterpriseArchitect 5,536 Reputation points
1 answer

Adding Metadata to an Azure Analysis Services Database

How can metadata be added to a database or cube in Azure Analysis Services? Specifics include adding information such as descriptions, data officer contacts, and data stewards. What steps or methods are available to achieve this?

Azure Analysis Services
Azure Analysis Services
An Azure service that provides an enterprise-grade analytics engine.
467 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,744 questions
asked 2025-01-13T12:24:17.8+00:00
Jonas Scheerders 0 Reputation points
commented 2025-01-16T20:43:46.8766667+00:00
Chandra Boorla 6,780 Reputation points Microsoft Vendor
1 answer

Is there any function by which I can get details of Data disks attached to the VM like Disk Size,Space allocated/Remaining disk space ?

I am trying to get the details for Data Disk attached to the particular VM. The Main purpose is to get notified when the disk space is highly utilized. I can get the names of Data disks attached to the VM , but not getting the details like Disk…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,331 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,256 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,602 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,744 questions
asked 2025-01-14T09:53:25+00:00
Tajman Kaur 0 Reputation points
commented 2025-01-16T17:38:08.1933333+00:00
Akshay kumar Mandha 1,955 Reputation points Microsoft Vendor
0 answers

How to resolve New-AzResourceGroupDeployment: - The deployment 'DataBricksDeployment' failed with error(s). Showing 1 out of 1 error(s). Status Message: The definition of application 'Databricks25' cannot be null. (Code:InvalidApplicationDefi

God day Does anyone know what could be causing this error. New-AzResourceGroupDeployment: 10:06:59 - The deployment 'DataBricksDeployment' failed with error(s). Showing 1 out of 1 error(s). Status Message: The definition of application…

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,305 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,744 questions
asked 2025-01-14T08:32:04.5133333+00:00
Tsholofelo Mautla 21 Reputation points
commented 2025-01-16T16:29:40.5133333+00:00
Bhargava-MSFT 31,191 Reputation points Microsoft Employee
2 answers

SharePoint Online: Find Duplicate Documents using PowerShell

Could someone post a working script for getting a list of duplicate files in Sharepoint Online? The scripts formerly posted no longer work.

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,201 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,744 questions
asked 2025-01-07T17:04:14.4366667+00:00
44785390 0 Reputation points
commented 2025-01-16T09:31:57.4433333+00:00
Yanli Jiang - MSFT 28,441 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Generate Monthly Reports for Newly Created SharePoint Online Sites

Hello I am looking for assistance in generating monthly reports of newly created SharePoint Online sites. Specifically, I would like to achieve the following: Generate a list of all newly created SharePoint Online sites in the last 30 days. Use…

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,201 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,744 questions
asked 2025-01-14T18:54:29.52+00:00
Ashley S 20 Reputation points
edited a comment 2025-01-16T09:00:23.87+00:00
Xyza Xue_MSFT 27,266 Reputation points Microsoft Vendor
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,426 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,744 questions
asked 2023-09-11T09:44:11.8766667+00:00
Paul Jefferies 30 Reputation points
answered 2025-01-16T07:47:52.54+00:00
Brendan Carr 0 Reputation points