2,310 questions with PowerShell-related tags

Sort by: Updated
1 answer

Disk is not visible in portal

Hello Everyone. I am trying to add one OS disk as data disk into my vm using powershell. I am able to update the vm. after this it is not showing in portal. are we need to add manually. I want to reduce this efforts as well. I really appreciate for…

Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
600 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,310 questions
asked 2024-07-20T13:15:23.9733333+00:00
Mohsin Khan 45 Reputation points
edited the question 2024-07-22T03:30:51.8666667+00:00
vipullag-MSFT 25,941 Reputation points
1 answer

How can I troubleshoot issues connecting my "Powershell Onedrive Graph" API to Microsoft Graph Explorer for bulk exporting OneDrive photo URLs to Excel using a Microsoft 365 Business Basic license?

Please find below a screenshot of Microsoft Graph , Azur Api and MS365 license. Thank you, Regards,

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,339 questions
Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,941 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,400 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
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,310 questions
asked 2024-07-21T18:45:19.02+00:00
Mo7Z 0 Reputation points
answered 2024-07-22T03:00:37.2533333+00:00
Yakun Huang-MSFT 2,335 Reputation points Microsoft Vendor
1 answer

Receiving "The SSL connection could not be established, see inner exception." on all Azure PowerShell cmdlets.

I am receiving the following error, regardless of the Azure PowerShell cmdlet that I am using. Again, it is for all azure cmdlets that I am receiving this SSL error message. My TLS is set to 1.2. About 1 out of every 3 Azure PowerShell cmdlets return…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,310 questions
ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
19 questions
asked 2024-07-19T22:00:47.9533333+00:00
Jason Yoder 0 Reputation points
edited the question 2024-07-22T02:12:41.7766667+00:00
AmaranS 3,860 Reputation points Microsoft Vendor
1 answer

Need a poweshell script to list all the SPO sites with the certain character in URL where the offline client availability is set to true

Need help with a powershell to list all the SPO sites where the offline client availability is set to true.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,252 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,802 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,310 questions
asked 2024-07-19T05:36:13.67+00:00
Priya S 0 Reputation points
edited the question 2024-07-22T01:32:29.6066667+00:00
Emily Du-MSFT 44,071 Reputation points Microsoft Vendor
1 answer

i need help to delete the additional root folders i created

Hello. so i made the big mistakes of creating root folders and files and i need help to delete them so basically i was trying to code a node and java file and i didnt thought of what permissions im giving to the VS code and about 1 or 2 hours later i…

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,937 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,310 questions
asked 2024-07-19T11:00:57.8933333+00:00
Gogol King 0 Reputation points
answered 2024-07-21T22:20:34.3533333+00:00
Jacen Wang 0 Reputation points Microsoft Vendor
1 answer

Restore a SQL Server backup to Azure SQL Managed Instance

What is the best way to restore an SQL Server backup file (.bak) from a storage container to Azure SQL Managed Instance, and overwrite the existing database with the backup? I am looking for the appropriate PowerShell Az command to accomplish this task.…

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,310 questions
asked 2024-01-27T08:11:08.8433333+00:00
PS 396 Reputation points
commented 2024-07-21T10:12:19.46+00:00
Vinodh247 13,301 Reputation points
2 answers

Discrepancy in Windows Form Appearance between PowerShell ISE and PowerShell

Hello Everyone, I've encountered an issue with the appearance of a Windows Form created using PowerShell. When running the script within PowerShell ISE, the form displays correctly with clear fonts and the expected size. However, when running the same…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,310 questions
asked 2024-04-17T14:51:12.7466667+00:00
Swahela Mulla 90 Reputation points
edited an answer 2024-07-21T08:44:03.74+00:00
Prabhakaran Setti 0 Reputation points
1 answer

Help with PowerShell - remove an attribute value if a user is not in all 4 groups

Hi, I am hoping to get some suggestions on how to do this. There are 4 defined groups. I need to get a list of AD users that have adminCount = 1 Then I need to compare. If a user is not in all 4 groups (not just 1 group), then remove the adminCount. This…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,310 questions
asked 2024-07-19T22:26:40.6633333+00:00
M Tran 486 Reputation points
answered 2024-07-19T23:14:27.68+00:00
Marcin Policht 18,010 Reputation points MVP
1 answer

How to fix Unexpected character encountered while parsing value: <. Path '', line 0, position 0. when connecting to Exchange Online via powershell

I am running the latest exchange online management module version 3.5.1 and have powershellget 2.2.5 and packagemanagement 1.4.8.1 installed. When I run the Connect-ExchangeOnline cmdlet I get the following error message:

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,373 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,310 questions
asked 2024-07-19T02:55:55.5166667+00:00
YM 0 Reputation points
edited a comment 2024-07-19T18:48:02.57+00:00
YM 0 Reputation points
2 answers One of the answers was accepted by the question author.

Runtime Exception When Using Set-OrganizationConfig

Trying to run Set-OrganizationConfig cmdlet in powershell EXO V3 module returns runtime exception: "unable to find type [uint]". Has anyone had this error before and know of a potential solution? I cannot find anything online to reference…

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,373 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,310 questions
asked 2024-07-17T11:36:20.5+00:00
Rhys Pickett 40 Reputation points
commented 2024-07-19T16:35:39.89+00:00
Matthew Trembly 51 Reputation points
1 answer

Powershell Script exporting MFA status and licence skuid

Hi all. I'm new to powershell and have been attempting to understanding some of the scripts readily available from the multitude of sources found by google. My objective is to export a list of licensed users, what their licenses are, and their MFA…

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,339 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,310 questions
asked 2024-02-13T16:57:54.42+00:00
Owen Cheung 25 Reputation points
edited a comment 2024-07-19T14:46:17.0533333+00:00
Robert Kahler 1 Reputation point
2 answers One of the answers was accepted by the question author.

IF statement not functioning in Azure runbook

I have a runbook with a PowerShell if statement to check if the input value of a received MAC address is in a valid format. If the format is not valid I am running a cmdlet which calls a function to update the MAC address and use the updated MAC. Else if…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,191 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,310 questions
asked 2024-07-09T14:06:43.48+00:00
DW_FL 41 Reputation points
commented 2024-07-19T11:32:46.6133333+00:00
Mahesh Goud Juvvadi 935 Reputation points Microsoft Vendor
1 answer

Power shell script to create excel file and load data by query

Hi, Please help me to get a powershell script to generate a excel file and send by DB mail. regards,

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,162 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,310 questions
asked 2023-05-11T12:51:26.6966667+00:00
SVA 116 Reputation points
commented 2024-07-19T11:05:55.4366667+00:00
Osama Ibrahim 0 Reputation points
0 answers

PowerShell Filter

Hello, I have powershell script like below output. The result is fine but when i want to filter only showing Type="Vmware Backup" and only to show "Job Name" and "Last Result" columns why i not get the result? Something…

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,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,310 questions
asked 2024-07-19T06:39:27.7333333+00:00
Handian Sudianto 4,471 Reputation points
commented 2024-07-19T10:43:57.26+00:00
Andreas Baumgarten 103.8K Reputation points MVP
0 answers

Retrieving task details from Migration Manager (Fileshare Migration) no longer work via Powershell

https://learn.microsoft.com/en-us/sharepointmigration/mm-reports#download-detailed-task-level-reports-via-powershell in the Function GetAlltasks there no longer retrieve Data from MS Graph and it gives no error Message so the Script get error, that no…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,400 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,310 questions
asked 2024-07-19T09:51:24.4666667+00:00
Ilkiz, Heiko 20 Reputation points
1 answer

Azue runbook - Exchange PowerShell

We are trying to automate mail flow reporting via Azure runbooks using an app registration (service principal) to authenticate. The runbook will query Exhchange Online powershell modules for mailflow data. The only Entra permissions that seem to allow…

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,400 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,191 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,310 questions
asked 2024-07-12T14:18:19.4366667+00:00
Daniel Birrell 41 Reputation points
commented 2024-07-19T05:32:57.25+00:00
Noah Ma-MSFT 2,340 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Check Internet Connectivity using Powershell

Hello, I want to make a powershell script to test is the server have internet connectivity or not by doing ICMP to 8.8.8.8 for example and the script will return 1 if get reply and 0 if not get the reply. Anyone know here how to make that script?

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,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,310 questions
asked 2024-07-19T00:53:03.6533333+00:00
Handian Sudianto 4,471 Reputation points
accepted 2024-07-19T03:03:09.7233333+00:00
Handian Sudianto 4,471 Reputation points
2 answers One of the answers was accepted by the question author.

Trying to add Microsoft Sentinel to a Log Analytics Workspace in Azure but keep getting error "The gateway did not receive a response from 'Microsoft.SecurityInsights' within the specified time period"

I am trying to add Microsoft Sentinel to a Log Analytics Workspace connected to a Virtual Machine in the Azure portal but keep getting the error "The gateway did not receive a response from 'Microsoft.SecurityInsights' within the specified time…

Microsoft Sentinel
Microsoft Sentinel
A scalable, cloud-native solution for security information event management and security orchestration automated response. Previously known as Azure Sentinel.
1,057 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,310 questions
asked 2024-06-27T04:27:49.0766667+00:00
Aaqib Ali 30 Reputation points
commented 2024-07-18T18:19:38.9033333+00:00
Craig Chambers 0 Reputation points
1 answer

ports remote request powershell

Hello. I have executed the get-service -computername PC01 command Wireshark showed me that port 135 is used in the first…

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,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,310 questions
asked 2024-07-18T13:43:04.61+00:00
Андрей Михалевский 2,846 Reputation points
commented 2024-07-18T15:37:52.6366667+00:00
Rich Matheisen 45,831 Reputation points
1 answer One of the answers was accepted by the question author.

Set -RemotePowerShellEnabled on Multiple Accounts with Duplicate Display Names

Hey team, I've been racking my brain for the last hour and I think I just need a fresh perspective. In short - The following command would disable remote PowerShell for all users within the tenant: Get-User | Set-User -RemotePowerShellEnabled…

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,339 questions
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,310 questions
asked 2024-07-17T17:14:40.9666667+00:00
Championface 20 Reputation points
commented 2024-07-18T11:39:07.21+00:00
Championface 20 Reputation points