2,468 questions with PowerShell-related tags

Sort by: Updated
1 answer

unable to connect Azure

Hi All I use the below syntax to connect to Azure Powershell, but today i am unable to connect to azure powershell. it prompts me to enter tenant and subscription number. I have 1500 subscriptions, how can i know the subscription number for my…

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,512 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,449 questions
asked 2024-09-19T15:36:47.1233333+00:00
Glenn Maxwell 11,136 Reputation points
answered 2024-09-19T20:07:13.2966667+00:00
Vasileios Dionysopoulos 456 Reputation points
1 answer

How to export managed metadata from subfolders and documents to csv

I have a document library and at the top level we have a number of folders for each year i.e. 2024, 2023, 2022, 2021 etc. Against these yearly folders we have a Content Type of "Yearly Folder". Under each yearly folder we have a huge list of…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,597 questions
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.
2,947 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
asked 2024-09-19T15:21:09.7533333+00:00
Glenn Skinner 1 Reputation point
answered 2024-09-19T15:55:38.8333333+00:00
Rich Matheisen 46,561 Reputation points
2 answers

While getting owner of distribution group it returns wrong result

When I am trying to get distribution group with 1 owners from Distribution Group Name : Donotedit it has one owner with Name as Aasim_anwar2 but when I get using Get-Recipient -Identity "aasim_anwar2" | Select-Object…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
asked 2024-09-12T13:13:10.7933333+00:00
Dharmesh Khatri 0 Reputation points
commented 2024-09-19T15:19:34.4266667+00:00
Rich Matheisen 46,561 Reputation points
2 answers

How to delete DPM Backups from the Azure Service Recovery Vault

Hi, i have a OnPrem DPM Server which is connected with a Azure Recovery Service Vault. From the DPM i backup some OnPrem Servers to the Azure Recovery Service Vault. Currently i see some duplicated entrys and some entrys from old servers which no longer…

Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,246 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,956 questions
Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
700 questions
Windows Server Backup
Windows Server Backup
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Backup: A duplicate copy of a program, a disk, or data, made either for archiving purposes or for safeguarding valuable files from loss should the active copy be damaged or destroyed.
475 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
asked 2024-09-17T14:36:47.4166667+00:00
Reppner, Mike 0 Reputation points
commented 2024-09-19T15:17:33.82+00:00
Amardeep Saini 1,175 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

How do you assign the sensitivity label in the creation of a new team with 'New-MgTeam'?

Hi, We are currently trying to automate requests we get for the creation of a new Team. In this creation, we want to be able to assign a certain sensitivity label. In PowerShell, we've got it to generally work with basic information, but we can't…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,980 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,882 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
asked 2024-07-31T14:16:57.1233333+00:00
Crounse, TB (Tim) 20 Reputation points
commented 2024-09-19T13:18:10.6133333+00:00
Crounse, TB (Tim) 20 Reputation points
0 answers

Requesting a Cloud Shell.Failed to provision a Cloud Shell: {"code":"TenantDisabled","message":"Cloud Shell has been disabled in directory 'da0749be-51dd-419e-bbbd-6e8dde7db7db'."}

can someone help me with the below issue in Azure when I try to open cloudshell Requesting a Cloud Shell.Failed to provision a Cloud Shell: {"code":"TenantDisabled","message":"Cloud Shell has been disabled in directory…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,449 questions
asked 2024-08-23T12:57:14.29+00:00
abraham mathew 10 Reputation points
commented 2024-09-19T10:37:04.5266667+00:00
Raja Pothuraju 5,345 Reputation points Microsoft Vendor
0 answers

Azure time trigger PowerShell function manual vs schedule

I have this Time Trigger Function that runs PowerShell code to fetch Azure storage accounts used capacity metrics based on the tags. The code works fine when I trigger the job manually and gives me the accurate details but fetches 0 value from all the…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,911 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
asked 2024-09-19T09:40:48.64+00:00
Sudhirkumar Karamchand 0 Reputation points
edited the question 2024-09-19T10:33:51.0766667+00:00
Sudhirkumar Karamchand 0 Reputation points
2 answers

Unable to create Azure Custom Role using JSON and the PoweShell New-AzRoleDefinition ?

When I execute the below PowerShell script to create a custom Azure Role based on the specific JSON content below. Script: $paramNewAzRoleDefinition = @{ InputFile = C:\Custom.JSON Verbose = $true Debug = $true } New-AzRoleDefinition…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,882 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,991 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,449 questions
asked 2024-09-11T07:30:52.85+00:00
EnterpriseArchitect 5,336 Reputation points
edited a comment 2024-09-19T09:38:19.7866667+00:00
Navya 9,640 Reputation points Microsoft Vendor
2 answers

Is it possible to create tenant level allow/block in Microsoft 365 via Graph API?

There is a method via Powershell that requires the Exchange.Manage permission and Exchange Administrator assigned role on a Service Principal. This method requires to connect to Exchange Online first and then running the New-TenantAllowBlockListItems…

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,769 questions
Microsoft Exchange Online
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,882 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
asked 2024-09-18T22:10:56.57+00:00
Chan, Alan 0 Reputation points
answered 2024-09-19T07:58:45.9766667+00:00
Neuvi Jiang 1,150 Reputation points Microsoft Vendor
1 answer

Win32_TSLicenseReport not generating report when AD has Japanese usernames

$fileName = (Invoke-WmiMethod Win32_TSLicenseReport -Name GenerateReportEx).FileName $fileEntries = (Get-WmiObject Win32_TSLicenseReport | Where-Object FileName -eq $fileName).FetchReportEntries(0, 0).ReportEntries These commands succeed when I have…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
asked 2024-09-18T18:52:50.6866667+00:00
Nithin Thankachan 0 Reputation points
answered 2024-09-19T02:26:37.4933333+00:00
Rich Matheisen 46,561 Reputation points
1 answer One of the answers was accepted by the question author.

How can I check if my OnPremise Exchange Server is still sending email as relay to the outside world?

How can I verify and check if my Exchange Servers are still sending emails to the external world? Because from this page I cannot see any list of servers: https://admin.exchange.microsoft.com/#/reports/onpremunpatchedserverdetails

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,267 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,606 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,076 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,512 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
asked 2024-09-16T04:20:38.1833333+00:00
EnterpriseArchitect 5,336 Reputation points
commented 2024-09-18T10:23:04.45+00:00
EnterpriseArchitect 5,336 Reputation points
1 answer

Facing issue while creating PIM request using managed identity using graph sdk

Hi Team, I am using managed identity-based authentication to create a PIM role using power shell script. Below is the code snippet used. function Get-ManagedIdentityToken { param ( [string]$resource = "https://graph.microsoft.com" …

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,882 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
asked 2024-09-18T06:42:46.1833333+00:00
Pavan Kumar 5 Reputation points Microsoft Employee
commented 2024-09-18T09:11:21.46+00:00
Vasil Michev 104.3K Reputation points MVP
3 answers

Last login details

Hi All, I am running an Exchange 2016 Hybrid environment in my test Azure Tenant. I create remote mailboxes from on-premises and have 150 Microsoft 365 E5 licenses. My users test M365 features and integrations in this tenant. Since I only have 150…

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,456 questions
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,492 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,606 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,076 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
asked 2024-09-06T04:08:48.8733333+00:00
Glenn Maxwell 11,136 Reputation points
commented 2024-09-18T01:18:00.8933333+00:00
Bruce Jing-MSFT 4,190 Reputation points Microsoft Vendor
4 answers One of the answers was accepted by the question author.

Silently connect to azure as a user in PowerShell using the authenticated account connected to windows

In my corporate device, which has Seamless SSO and PHS enabled, when I go to portal.azure.com, I can sign-in directly without entering my credentials. I want to know if I can replicate this when connecting to azure using Connect-AzAccount cmdlet in…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,245 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,449 questions
asked 2023-07-31T15:28:15.8966667+00:00
Mathirajan Elumalai 20 Reputation points
edited the question 2024-09-17T19:03:37.27+00:00
VarunTha 7,810 Reputation points Microsoft Vendor
16 answers

High CPU usage for vmmem

Hi, I have experienced high CPU usage for Vmmem frequently (~every 2days) and the only solution at the moment is simply restart my machine. It is understood that is related to WSL and I do have a Docker image running on Ubuntu on Windows. However it is…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,500 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
asked 2023-03-21T19:12:59.2566667+00:00
Steve Lo 105 Reputation points
edited a comment 2024-09-17T08:27:17.2133333+00:00
Samia, Michel 0 Reputation points
0 answers

Exporting Power Platform environment as CSV or Spreadsheet file?

How can I export the list of Power Platform environments shown in this page: https://admin.powerplatform.microsoft.com/environments as .CSV file ? I need to perform an audit of thousands of unused environments in my tenant.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,882 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,512 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
Microsoft Power Platform Training
Microsoft Power Platform Training
Microsoft Power Platform: An integrated set of Microsoft business intelligence services.Training: Instruction to develop new skills.
339 questions
Microsoft Fabric Training
Microsoft Fabric Training
Microsoft Fabric: A Microsoft unified data platform.Training: Instruction to develop new skills.
43 questions
asked 2024-09-17T07:19:30.9066667+00:00
EnterpriseArchitect 5,336 Reputation points
0 answers

Disable Auto-mapping

Is there a way I can run a PS script to auto disable automapping for current shared mailboxes, and when new ones are created automapping will be automatically turned off?

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
asked 2024-09-16T18:30:55.1933333+00:00
Lawrence, Tyler 0 Reputation points
2 answers

How do I execute "Test-ComputerSecureChannel"

Device: Surface - Windows 8 Pro OS: Windows 11 Note: I am not logged into the computer (that is kind of the problem). I am running command prompt from the Windows recovery environment which only gives me access to x:\ I believe i am trying to run a…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
asked 2024-09-12T12:57:59.9466667+00:00
David 0 Reputation points
commented 2024-09-16T13:39:18.66+00:00
David 0 Reputation points
1 answer

After 1/2 year API 403 error

I have a PowerShell script that runs daily and creates a folder in the employee contact lists via token (request) and writes the company's contacts in it so that everyone has them on their cell phone. The next day, this folder is deleted and the contacts…

Outlook
Outlook
A family of Microsoft email and calendar products.
3,724 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,882 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
asked 2024-05-28T12:31:31.4833333+00:00
Bonagura Marcello 10 Reputation points
answered 2024-09-16T12:45:07.7866667+00:00
Thomas Starup 0 Reputation points
1 answer

SCCM + PowerShell - Detect Methods

Hi I trying to make Detect Method with PowerShell: I have done a Application Information New-CMApplication ` -Name "Adobe Acobat Reader" ` -Description "Adode Acrobe Reader 64 bits" ` -Publisher Adobe -SoftwareVersion…

Microsoft Configuration Manager
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
asked 2024-09-14T19:48:56.9433333+00:00
Sokoban 1,036 Reputation points
commented 2024-09-16T07:01:18.85+00:00
Sokoban 1,036 Reputation points