2,822 questions with PowerShell-related tags

Sort by: Updated
0 answers

Form help needed

I could not delete the question for some reason, so this is what was left

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,822 questions
asked 2025-02-21T01:36:56.0466667+00:00
Belgian Malinois 461 Reputation points
edited the question 2025-02-21T12:47:09.5033333+00:00
Belgian Malinois 461 Reputation points
0 answers

STDOUT in AZurePowershell

Hi Team, I am using the CData PowerShell connector in an Azure PowerShell runbook and attempting to generate logs with the -logfile "STDOUT://" option. However, I am unable to see any logs in the console. When I try the same configuration in…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,822 questions
asked 2025-02-21T12:30:42.58+00:00
Support Testing 0 Reputation points
2 answers

How to publish a Runbook to latest runtime version using blob storage?

Hi, so i have written a Powershell script that publish a files to my blob storage, and i got it to upload the file(s) to Process Automation/Runbooks. But i cant seem to get the Runtime version to the latest, how can i do that? Right now a part of the…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,312 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,822 questions
asked 2025-02-12T12:46:12.4666667+00:00
André Lindqvist 20 Reputation points
commented 2025-02-21T10:14:30.8433333+00:00
Ashok Gandhi Kotnana 3,535 Reputation points Microsoft Vendor
1 answer

Powershell to .exe - ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2'

I am having an issue converting a powershell script to .exe The issue seems to lie with connecting to exchange. Is there a better way to do this when converting to .exe? When running in powershell it seems to work fine. Powershell version 7.4.4…

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,822 questions
asked 2024-08-03T05:54:42.7933333+00:00
Matt Wood 0 Reputation points
commented 2025-02-21T02:55:23.88+00:00
Matt Wood 1 Reputation point
1 answer

PowerShell Script to list all the files and folders that are being shared in a document library

Hello, I am trying to find out which folders or files on a Document Library are being shared, either internally or externally, and who was it shared to. Is there a powershell script that does this? Best.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,232 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,822 questions
asked 2025-02-10T20:27:03.1333333+00:00
Xia, Henry 0 Reputation points
commented 2025-02-21T01:23:17.14+00:00
AllenXu-MSFT 23,816 Reputation points Microsoft Vendor
0 answers

A Datetime object string value coming from MSGraph is corrupted with an extra ending space, what is causing this ?

I am retrieving lastsigninDateTime of users with MSGraph, and I came upon this error with one of the users. It seems like the string value has an added space or null character in this case for some reason, and it can't properly convert this to a Datetime…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,822 questions
asked 2025-02-20T22:03:53.8533333+00:00
BOUCHARD, David (MTL) 0 Reputation points
edited the question 2025-02-20T22:21:28.5066667+00:00
BOUCHARD, David (MTL) 0 Reputation points
1 answer

AZURE Disable "Enable Always-on soft delete" option

Hello everyone. I am currently stuck after accidentally activating the "Enable Always-on soft delete" box on my vault, and I cannot uncheck it, delete the vault, or delete the resource where the vault is located. I followed the microsoft…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,822 questions
asked 2023-04-26T19:09:02.86+00:00
Thomas STEFANI 0 Reputation points
commented 2025-02-20T22:16:23.1166667+00:00
Wai Kuen Chau 0 Reputation points
0 answers

I need a full list of all mailboxes, shared mailboxes, and resources.

I am trying to get a single list that will show me all of our mailboxes, shared mailboxes, and resources, as well as show the license type. When I run this command (Get-Mailbox -ResultSize Unlimited | Select-Object DisplayName, RecipientTypeDetails,…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,822 questions
asked 2025-02-20T22:02:14.2333333+00:00
SShu 0 Reputation points
1 answer One of the answers was accepted by the question author.

Connect Azure Automation Account to Azure SQL using Managed Identity

Hello, I'm trying to create a Runbook (Powershell) to connect to Azure SQL Database and then add an Entra ID user in that database. If there is way to do so in CLI commands it's fine by me. The problem is that we're always stuck at the DB connection step…

Azure SQL Database
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,312 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,822 questions
asked 2025-02-19T09:56:47.0966667+00:00
Michel Sfeir 85 Reputation points
accepted 2025-02-20T17:21:43.84+00:00
Michel Sfeir 85 Reputation points
1 answer

How to get Get-TeamsProtectionPolicy function to use with Microsoft 365, since I'm getting an Exchange path error when trying to import the ExchangePowerShell module?

Hello all, I'm using PowerShell version 5.1.26100.2161 in case that's relevant. What I'm trying to do: I'm trying to use the PowerShell functions Get-TeamsProtectionPolicy and Get-TeamsProtectionPolicyRule to view a company's Teams protection policy…

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.
5,769 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,898 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,758 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,822 questions
asked 2024-12-31T16:36:34.5566667+00:00
Brett 0 Reputation points
edited a comment 2025-02-20T16:07:58.2466667+00:00
Brett 0 Reputation points
0 answers

permissions for New-AzAKSCluster

Hello, I have 2 Azure environments (different Tennant / Subscription). In the first Tennant the script is running New-AzKeyVault ... New-AzAKSCluster ... without any problems... In the 2nd environment, New-AzKeyvault ... runs perfect and creates the…

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,278 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,822 questions
asked 2025-02-17T21:48:03.4766667+00:00
Stefan Kiessig 40 Reputation points
commented 2025-02-20T15:37:12.09+00:00
Markapuram Sudheer Reddy 830 Reputation points Microsoft Vendor
1 answer

Need to uninstall Java with SCCM deployment

In my environment, I need to uninstall Java from machines. Multiple versions of Java are installed, but I want to deploy a single script that can uninstall Java regardless of its version. Could you please suggest a PowerShell script to achieve this…

Microsoft System Center
Microsoft System Center
A suite of Microsoft systems management products that offer solutions for managing datacenter resources, private clouds, and client devices.
1,076 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,569 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,822 questions
asked 2025-02-11T04:06:55.6233333+00:00
TechUST 561 Reputation points
commented 2025-02-20T07:38:35.1+00:00
AllenLiu-MSFT 47,971 Reputation points Microsoft Vendor
0 answers

Runbooks issue

SharePointExcelAutomation code does not run all the way. Copilot cannot give solution for errors. We need someone from Microsoft Support.

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,175 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,232 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,822 questions
asked 2025-02-14T14:47:11.97+00:00
Zoltan Csirke 0 Reputation points
commented 2025-02-20T05:45:01.49+00:00
Yanli Jiang - MSFT 29,286 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to bulk edit user's manager in Entra

Hi All, I was trying to bulk edit the user's properties. I have completed the Department, Username, etc. But I cannot edit the Manager Field. I have got this error Update-MgUser : Cannot process argument transformation on parameter 'Manager'. Cannot…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,108 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,822 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,325 questions
asked 2024-12-12T04:40:43.9933333+00:00
Munin O 20 Reputation points
accepted 2025-02-20T04:07:01.3733333+00:00
Munin O 20 Reputation points
0 answers

Sharepoint powershell for viewing all comments in pages, on a sharepoint site

I got referred here from this query. https://answers.microsoft.com/en-us/msoffice/forum/all/collecting-a-list-of-all-comments-made-in-the/e1ab0dbf-f9fe-43e2-a014-af6abdcaf2e8?rtAction=1738593869018 I've never used PowerShell before, and so will need to…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,822 questions
asked 2025-02-03T15:01:39.9333333+00:00
Dominic Savio 5 Reputation points
commented 2025-02-20T03:03:55.3833333+00:00
Knowles, A. (Ammie) 20 Reputation points
1 answer

Powershell O365 Migration Error

Hello Please i need your help on this issue. Testing a migration account and getting an error.

Microsoft Exchange Online
Microsoft Exchange
Microsoft Exchange
Microsoft messaging and collaboration software.
688 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,822 questions
asked 2025-02-11T00:23:31.8033333+00:00
John Peter 25 Reputation points
commented 2025-02-20T02:03:46.75+00:00
Xintao Qiao-MSFT 6,425 Reputation points Microsoft Vendor
0 answers

Maven doesn't work

I am trying to use maven from Azure Portal and i am facing a problem in the powershell(also in the bash shell). Maven gave me this error on every command that i try to run: Someone can indicate to me what is the problem?

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,822 questions
asked 2025-02-19T20:58:57.6+00:00
ANTONIO AMBROSIO 0 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.
3,140 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
343 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,822 questions
asked 2023-12-01T05:55:00.18+00:00
Carlos Ochoa Medrano 40 Reputation points
commented 2025-02-19T10:27:49.94+00:00
Wajira Ranasinghe 0 Reputation points
0 answers

SPMT - Make CSV - PowerShell

Hi I want to migration from FileServer to SharePoint/Teams files. I have SharePoint Migration Tool (SPMT) and I need to make a CSV file there for migration task. I mean Bulk Migration CSV , to migrate content using a list of sources and destination. I…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,822 questions
asked 2025-02-18T11:54:39.8966667+00:00
Sokoban 1,041 Reputation points
edited the question 2025-02-19T01:08:01.2533333+00:00
Emi Zhang-MSFT 27,961 Reputation points Microsoft Vendor
2 answers

Vulnerability CVE-2024-21413

I manage an Azure AD Does anyone have a powershell script that can help me remedy CVE-2024-21413 ? It asks me for a Detection script file and a Remediation script file. Thanks for the help.

Microsoft Intune Updates
Microsoft Intune Updates
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Updates: Broadly released fixes addressing specific issue(s) or related bug(s). Updates may also include new or modified features (i.e. changing default behavior).
119 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,569 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,822 questions
asked 2024-02-26T23:31:23.0266667+00:00
GuestGuivenchi 105 Reputation points
answered 2025-02-18T17:23:02.36+00:00
Deepak S 0 Reputation points