2,043 questions with PowerShell-related tags

Sort by: Updated
1 answer

Automating the Client Secrets rotation using KeyVault or any methods before the expiry date?

I need to rotate the Client Secrets in my existing subscriptions before the expiry date. How can I achieve it for multiple subscriptions when using the suggested method ttps://learn.microsoft.com/en-us/azure/key-vault/secrets/tutorial-rotation? Can I…

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,110 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,244 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,565 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,043 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,442 questions
asked 2024-04-16T03:27:13.7333333+00:00
EnterpriseArchitect 4,721 Reputation points
commented 2024-04-24T12:55:18.87+00:00
EnterpriseArchitect 4,721 Reputation points
0 answers

Risk and consequence when executing Kerberos password reset in a Hybrid Azure AD - OnPremise AD DS?

What are the risks and consequences of resetting the Kerberos krbtgt account during business hours using the steps defined…

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,841 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,361 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,043 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.
19,442 questions
asked 2024-04-24T12:19:23.93+00:00
EnterpriseArchitect 4,721 Reputation points
edited the question 2024-04-24T12:20:26.2133333+00:00
EnterpriseArchitect 4,721 Reputation points
1 answer

export the output

Hi all i want to execute the below syntax on few servers and i have created a collection and added the Servers to it. When i execute manually from powershell i get the output but i want to export that output to a text file under c:\windows\Temp folder.…

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,361 questions
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Deployment: The process of delivering, assembling, and maintaining a particular version of a software system at a site.
899 questions
Microsoft Configuration Manager Application
Microsoft Configuration Manager Application
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Application: A computer program designed to carry out a specific task other than one relating to the operation of the computer itself, typically to be used by end users.
457 questions
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,043 questions
asked 2024-04-24T05:05:14.7+00:00
Rising Flight 3,731 Reputation points
answered 2024-04-24T08:52:48.9433333+00:00
Jing Zhou 1,780 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to unenroll windows device from Intune using PowerShell?

Hello Experts, We have looking for some PowerShell script or command to unenroll the Windows device from Intune without user interaction. We are trying to enroll the device using the graph api query. we have deleted the device object from the managed…

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,320 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,043 questions
asked 2024-04-24T05:29:28.9233333+00:00
Anant Bera 66 Reputation points
accepted 2024-04-24T07:23:38.2666667+00:00
Anant Bera 66 Reputation points
1 answer One of the answers was accepted by the question author.

Azure CLI ERROR when add extensions: An error occurred. Pip failed with status code 1

Hi everyone I'm trying to add extensions in Azure CLI with the command: az extension add --name subscription however I get the following message: An error occurred. Pip failed with status code 1. Use --debug for more information. Here the debug…

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,560 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
322 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,043 questions
asked 2023-12-01T05:55:00.18+00:00
Carlos Ochoa Medrano 25 Reputation points
edited a comment 2024-04-24T06:50:16.6833333+00:00
Joanna Wójtowicz 0 Reputation points
0 answers

Partner center - automation to add security group to relationships

Hello, I would like to automate the ways we onboard our customer in partner center. When one of our customer accept the request, we are adding some security groups in the relationships with different Entra delegated roles (Under the tab "admin…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,043 questions
asked 2024-04-23T11:27:47.88+00:00
Jérôme 90 Reputation points
edited the question 2024-04-24T01:44:37.5266667+00:00
Junjie Zhu - MSFT 14,526 Reputation points Microsoft Vendor
1 answer

How to onboard On-premise Windows Servers on Azure Arc on scale using PowerShell (PSSession)

We are planning to onboard our on-premises Windows Server (lowest version is 2012 R2) to Azure Arc on a scale (Approx. 400 Servers). We downloaded PS script from Azure Arc and ran from one of the servers to other remote servers using PS Session to…

Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
319 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,112 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,841 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,043 questions
asked 2024-04-08T07:59:34.7366667+00:00
Bishnu Baliyase 110 Reputation points
commented 2024-04-24T00:12:25.6066667+00:00
Monalla-MSFT 11,551 Reputation points
2 answers

Powershell - Enable Bitlocker & Create recovery txt file output network directory

Hello, I have been searching to try and find a PowerShell set of commands or script to enable bit locker on remote machine and save the text recovery file to a UNC network path. I do not want to lock requiring pin or text to start the PC; just to save…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,043 questions
asked 2023-02-06T16:21:23.6666667+00:00
Joshua Tyo 0 Reputation points
commented 2024-04-23T18:48:51.2633333+00:00
DonH 0 Reputation points
2 answers

Using Powershell is there a way to find if a SharePoint Online site has a retention policy applied to it.

I am working on an automation and have found the option to exclude a SharePoint site from a compliance retention policy What I am looking for is to create a loop to check if the site has had the retention policy removed. So really just a cmdlet that…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,606 questions
Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
927 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,043 questions
asked 2024-04-22T14:15:57.3933333+00:00
Paul Wright 0 Reputation points
answered 2024-04-23T17:46:27.76+00:00
BhargavaGunnam-MSFT 25,971 Reputation points Microsoft Employee
0 answers

Update snapshot Property by using Azure Automation account

Hello, I have a Backup vault that takes snapshot for OS disks and shared disks everyday, during 14 days. When checking the snapshot file, the network setting is enabled public access from all network. Because there are a lot of snapshot file that I need…

Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,124 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,113 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,043 questions
asked 2024-04-23T14:49:55.79+00:00
Hanh Trinh 41 Reputation points
2 answers

Powershell error while connecting with exchange

Hi Team, Good day. Getting error "Content within this application coming from the website listed below is being blocked by Internet Explorer Enhanced Security Configuration." while running (connect -exchangeonline) command in…

Microsoft Exchange Online
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,043 questions
asked 2024-04-17T00:26:27.7733333+00:00
Syed Bukhari 0 Reputation points
commented 2024-04-23T09:02:37.96+00:00
Bruce Jing-MSFT 460 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Unable to retrieve the list of Guest users without ExternalUserState value

There are cases when ExternalUserState property of Guest users may be empty (null/blank) due to invitation being sent from different services (possibly SharePoint). It is not possible to retrieve the list of those users because according to…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,565 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,606 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,043 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,636 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,442 questions
asked 2024-04-10T15:05:00.26+00:00
Alex Rough 40 Reputation points
edited the question 2024-04-23T06:13:06.06+00:00
AllenXu-MSFT 16,006 Reputation points Microsoft Vendor
1 answer

"Time to display recovery option when needed" setting

Is there a possibility to check the "Time to display recovery option when needed" setting whether it is checked or unchecked using a Powershell script?

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,043 questions
asked 2024-04-23T02:06:10.66+00:00
Cindy Barceñas 0 Reputation points
edited an answer 2024-04-23T03:06:17.2866667+00:00
Hania Lian 7,711 Reputation points Microsoft Vendor
0 answers

PowerShell ISE script to access Azure Secrets and Azure Certificate Thumbprint using TenentID

Hello All, I am looking for guidance on writing PS ISE script to get Azure Secrets and Azure Certificate Thumbprint using TenantID. Any help would be highly appreciated. 

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,361 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,043 questions
asked 2024-04-22T19:11:16.91+00:00
Hemant 1 Reputation point Microsoft Vendor
1 answer

Azure Lighthouse PowerShell

Is there any way to use PowerShell to interrogate Azure Lighthouse customers and their delegations? I have a need to get the Customer Name for the HomeTenantId of the subscriptions delegated to my tenant.

Azure Lighthouse
Azure Lighthouse
An Azure service that provides secure managed services and access control for partners and customers.
66 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,043 questions
asked 2024-04-18T20:45:29.1133333+00:00
Monk, David 0 Reputation points
commented 2024-04-22T08:22:56.5366667+00:00
AnuragSingh-MSFT 19,691 Reputation points
1 answer One of the answers was accepted by the question author.

how can I find email address, cn number etc. in Get-CalendarDiagnosticObjects DisplayAttendeesAll names ?

Good Day Friends, I want to take calendar events with attendee list, by that I'm using CalendarDiagnosticObjects in PS, but in DisplayAttendeesAll part it's just showing the names. There are several people in the organization or in meeting request (as…

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,171 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,361 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,043 questions
asked 2024-04-17T07:13:22.0166667+00:00
Guney 40 Reputation points
accepted 2024-04-22T08:04:07.76+00:00
Guney 40 Reputation points
1 answer One of the answers was accepted by the question author.

Mg Graph Sign-In logs showing data more than 30 days older

Hi folks, Hope you are doing well! I'm using a PowerShell script based on MG Graph module to get the last sign-in date of all users. PS script: Now as specified here Azure AD only stores Sign-ins data until 30 days in P2 license, but in the result of…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,565 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,043 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,442 questions
asked 2024-04-19T16:31:28.49+00:00
Apurva Pathak 290 Reputation points
commented 2024-04-22T07:02:10.5833333+00:00
Apurva Pathak 290 Reputation points
1 answer

Issue adding new owner to Outlook shared calendar

Trying to add a new owner to a shared mailbox as the option is not longer available in Outlook application. Using PowerShell command Add-MailboxFolderPermission -Identity sourceuser.ac.uk:\calendar\ma_test -User destinationuser.ac.uk -AccessRights…

Outlook
Outlook
A family of Microsoft email and calendar products.
2,946 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,171 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,043 questions
asked 2024-04-19T16:04:11.3566667+00:00
Mario Cleovoulou 0 Reputation points
commented 2024-04-22T06:44:44.99+00:00
Jake Zhang-MSFT 1,075 Reputation points Microsoft Vendor
1 answer

how to reinstall Microsoft PhoneLink after removing it with powershell

Following online suggestions for getting PhoneLink working i got to the reinstall phase and uninstalled with powershell but when I go to reinstall I get the error message c:\whatevermanifest not found ... the folders…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,601 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,043 questions
asked 2024-04-19T11:00:47.7633333+00:00
mx dog 1 Reputation point
answered 2024-04-21T06:57:52.5166667+00:00
S.Sengupta 15,036 Reputation points MVP
1 answer

How to get list of all attribute in AD

Hello, How To get list of all attribute in AD(default and custom attribute ) in csv file. Thanks Rich

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,841 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,361 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,043 questions
asked 2024-04-19T11:35:32.11+00:00
Richa Kumari 286 Reputation points
commented 2024-04-19T15:31:20.1066667+00:00
Rich Matheisen 44,776 Reputation points