2,328 questions with PowerShell-related tags

Sort by: Updated
0 answers

How can I use Microsoft Graph (+PowerShell) to copy one user's calendar to a 365 Group calendar?

Hello, I am trying to copy events from one former employee's shared calendar to a 365 Group. I posted in the community earlier today and was directed here for further assistance. The situation: Employee 1 was part of Department A and had a created a…

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,358 questions
Outlook
Outlook
A family of Microsoft email and calendar products.
3,420 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,443 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-07-15T21:32:49.4366667+00:00
Darron 0 Reputation points
3 answers One of the answers was accepted by the question author.

A Powershell Script to remove Microsoft Teams Classic

Anyone who can share a powershell script that will remove Microsoft Teams Classic? Current script i have is that it will detect if Teams classic is installed then it will proceed to remove. Check if Microsoft Teams Classic is installed $teamsClassic =…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,622 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,064 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-05-20T05:45:02.89+00:00
Bob Pendon 20 Reputation points
commented 2024-07-15T14:33:14.1533333+00:00
Karimulla 0 Reputation points
0 answers

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,420 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,443 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-05-28T12:31:31.4833333+00:00
Bonagura Marcello 5 Reputation points
commented 2024-07-15T12:51:28.18+00:00
Thomas Starup 0 Reputation points
1 answer One of the answers was accepted by the question author.

how to add user assigned managed identify in azure sql database using powershell?

how to add user assigned managed identify in azure sql database using powershell? I tried two methods as follow and they didn't work. 1.add parameter userassignedidentityid when create az sql database . # Create Azure SQL Database $databaseName =…

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,328 questions
asked 2024-07-12T08:21:12.2733333+00:00
Brian D H ZHANG 20 Reputation points
accepted 2024-07-15T06:11:29.14+00:00
Brian D H ZHANG 20 Reputation points
1 answer

I'm trying to use the Get-MgUserDrive command in PowerShell with the 'me' alias, full email address, and explicit user ID, but keep getting a 'User not found' error

I run the command below in powershell with using the Invoke-MgGraphRequest cmdlet. Please find below the Powershell Command´s Screenshot and the error message. Here is the Error msg: What do you suggest? Gemini propose an Alternative…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,443 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-06-12T17:00:19.47+00:00
Mo7Z 0 Reputation points
commented 2024-07-14T15:32:16.02+00:00
Mo7Z 0 Reputation points
1 answer

Getting error in azure devops release

Below is the error: Error: The term 'Update-AzVmssInstances' is not recognized as a name of a cmdlet, function, script file, or executable program throws in Azure ppwershell of Azure devops pipeline.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-07-12T17:12:37.0966667+00:00
Anonymous
edited an answer 2024-07-13T09:14:51.0533333+00:00
Manu Philip 17,671 Reputation points MVP
0 answers

Sign-In report for Native Accounts

Please share the PS script that shows 90 days sign-in reports for Azure "Native" Accounts.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,443 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-07-12T17:21:52.9566667+00:00
Utkarsh Ty 0 Reputation points
commented 2024-07-12T17:57:46.13+00:00
Vahid Ghafarpour 20,500 Reputation points
1 answer

A way to check Print Spooler is stuck

Hello, I'm looking for a way to check that service spooler is stuck without trying to print something. I have an application which uses print spooler to print to PDF. However from time to time spooler gets stuck without any errors, nothing in queue and…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,097 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-07-10T12:55:47.42+00:00
JohnVak 0 Reputation points
answered 2024-07-12T07:47:00.5133333+00:00
Karlie Weng 16,431 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

The risk and consequence for the users when migrating Legacy Multi-factor authentication to the new Entra ID Authentication methods

I need some assistance before migrating from this old legacy portal: https://account.activedirectory.windowsazure.com/UserManagement/MfaSettings.aspx to this new location:…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,443 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 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,775 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.
20,623 questions
asked 2024-06-26T03:03:45.3533333+00:00
EnterpriseArchitect 5,136 Reputation points
accepted 2024-07-12T03:17:03.3266667+00:00
EnterpriseArchitect 5,136 Reputation points
1 answer

How do we fix 0x8a15000f : Data required by the source is missing?

I Am trying to run winget on a widows 11 pc and keep getting the error 0x8a15000f : Data required by the source is missing. Have done update reset and still get the issue with the same error.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-05-29T13:34:46.4066667+00:00
Campbell, Joseph 0 Reputation points
commented 2024-07-11T21:53:04.9866667+00:00
Paul Schofield 0 Reputation points
2 answers

Remove one meeting in a re-occurring series, using PowerShell

Disclaimer: The question was asked else where! The requirement is to cancel 1 meeting in a re-occurring series and the subject of my meeting is "Bad meeting 2" Meeting happens every Wednesday of the week 14:00 – 15:00 PM as an example. I want…

Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,998 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2023-05-29T14:28:19.95+00:00
Sikhumbuzo Ntsada 0 Reputation points
commented 2024-07-11T12:45:44.0333333+00:00
Giroux, Maxime M [NC] 0 Reputation points
1 answer One of the answers was accepted by the question author.

Missing ')' in function parameter list.

I can run this script fine: param ( [switch]$push = $false ) Why does running this script: param ( [switch]$push = $false [string]$string ) yield this error: Missing ')' in function parameter list. ?

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-07-11T07:47:55.74+00:00
Ooker Human 20 Reputation points
accepted 2024-07-11T07:49:13.5766667+00:00
Ooker Human 20 Reputation points
1 answer One of the answers was accepted by the question author.

How to run the Get-MgPrivilegedRoleAssignment successfully?

I got this error:

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,443 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
Microsoft Entra Private Access
Microsoft Entra Private Access
Microsoft Entra Private Access provides secure and deep identity-aware, Zero Trust network access to all private apps and resources.
57 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.
20,623 questions
asked 2024-07-10T01:48:00.9866667+00:00
EnterpriseArchitect 5,136 Reputation points
commented 2024-07-10T12:47:27.0233333+00:00
EnterpriseArchitect 5,136 Reputation points
1 answer One of the answers was accepted by the question author.

How to restart a VM in Automation State Configuration with latest configuration?

Hi. Let's say I've connected to a VM and enabled Azure Automation State Configuration. Then the VM stopped (for whatever reason). What should I do to restart the VM from the latest configurations? Can I just start it again or do I need to restore its…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,195 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-07-08T07:45:18.6966667+00:00
Mahdi 125 Reputation points
commented 2024-07-10T12:19:44.45+00:00
Abdul 2,510 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to get Gateways details for each API in the APIM Service?

We are getting the API Id of whole APIM service but not for each API in the APIM with the below script: $apimContext = New-AzApiManagementContext -ResourceGroupName "XXXX" -ServiceName "XXX" Get-AzApiManagementGateway -Context…

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,957 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-07-09T04:54:14.2766667+00:00
Rajoli Hari Krishna 396 Reputation points
accepted 2024-07-10T05:24:31.0166667+00:00
Rajoli Hari Krishna 396 Reputation points
1 answer

Something went wrong MDI instance cannot be created

How can I fix the below issue? The MDI instance on my existing tenant was not completed before by my predecessor, hence I deleted the three builtin groups, however, I am still stuck at the above issue, despite the gMSA has been created and the agent…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,443 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
Microsoft Defender for Identity
Microsoft Defender for Identity
A Microsoft service that helps protect enterprise hybrid environments from multiple types of advanced, targeted cyberattacks and insider threats.
181 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.
20,623 questions
asked 2024-07-02T15:45:31.0433333+00:00
EnterpriseArchitect 5,136 Reputation points
commented 2024-07-10T05:12:46.6+00:00
EnterpriseArchitect 5,136 Reputation points
1 answer

How to fix Deprecation issue for my VM which is a part of AVD and I have windows1019h2?

Hi, I have a VM which is a part of Virtual desktop. Now, I am the only assigned user in that VDI. I am getting error as my VM is about to deprecate till 8th Spptember. While checking the SKU in powershell. I found the version was : 18363.2274.220430. …

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,193 questions
Azure VMware Solution
Azure VMware Solution
An Azure service that runs native VMware workloads on Azure.
342 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,087 questions
Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,451 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-07-09T12:44:36.4233333+00:00
Ritesh Prasad Sah 0 Reputation points
answered 2024-07-09T15:06:53.6+00:00
Sina Salam 7,441 Reputation points
1 answer One of the answers was accepted by the question author.

User is not allowed to call Get-RecipientPermission Even as a global admin

As a global admin I had the right to do everything. All of suddent I cannot manage mailboxes, I tried to give a user permission on a shared mailbox I get this error : User is not allowed to call Get-RecipientPermission, Also I assigned myself Exhange…

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,358 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-07-04T14:26:54.4833333+00:00
Donavan Graves 30 Reputation points
edited a comment 2024-07-09T14:50:32.58+00:00
Donavan Graves 30 Reputation points
1 answer

Older versions of Teams are still appearing in the registry for other user profiles and are being flagged as vulnerable in 365 Defender, specifically in the HKEY_USERS registry path for others users

Dear Teams,   I wanted to update you on the issues we are facing after cleaning Classic Teams. Older versions of Teams are still appearing in the registry for other user profiles and are being flagged as vulnerable in 365 Defender, specifically in the…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-07-09T06:55:28.4433333+00:00
Durairaj Puttalai 1 Reputation point
answered 2024-07-09T06:59:05.4066667+00:00
Durairaj Puttalai 1 Reputation point
2 answers One of the answers was accepted by the question author.

Azure Synapse LinkConnection template json

We have created a LinkConnection in Azure synapse, the source database is MS SQL Server and target database is Dedicated SQL Pool. We are trying to create powershell script to automate the creation of this LinkConnection for each environment - Testing,…

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,694 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,195 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,328 questions
asked 2024-07-03T19:21:58.6166667+00:00
Girish Prabhudesai 41 Reputation points
accepted 2024-07-08T11:30:36.9633333+00:00
Girish Prabhudesai 41 Reputation points