2,323 questions with PowerShell-related tags

Sort by: Updated
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,460 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,323 questions
asked 2024-07-18T13:43:04.61+00:00
Андрей Михалевский 2,866 Reputation points
commented 2024-07-18T15:37:52.6366667+00:00
Rich Matheisen 45,906 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,349 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,323 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
1 answer

Microsoft Search insights and configuration - Download Report using API or Power Automate

SharePoint site collection administrators will be able to get insights regarding the total number of search queries performed, number of results by type over time, top searched queries etc. from Site Settings. Site Settings->Search Insights and…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,422 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,274 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,323 questions
asked 2024-06-29T05:17:20.0066667+00:00
Varghese, Ajith (Cognizant) 0 Reputation points
edited the question 2024-07-18T09:53:26.3633333+00:00
Rakesh Gurram 5,325 Reputation points Microsoft Vendor
2 answers

How can I send a message to microsoft teams channel with powershell, without using a webook?

Webhooks do not seem to work with our teams instance no matter what permissions we try: Therefore, I am wanting to do this via powershell. I have created an app registration in the azure tenant, and given it the following permissions: This is my current…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,611 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,422 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,062 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,323 questions
asked 2023-07-03T23:00:20.8733333+00:00
Aaron Dalla-Longa 0 Reputation points
commented 2024-07-17T21:34:10.45+00:00
Yousef Imran 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to Get-ItemProperty for registry items on remote servers

I am attempting to pull SQL server instance details for a multitude of SQL servers, but am not able to get it working. Seems to come down to how parameter 'Path' gets it's value from my $path variable.: #Set server list manually with array $serverList =…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,323 questions
asked 2024-07-16T15:29:27.31+00:00
Lindberg, Andrew 20 Reputation points
commented 2024-07-17T15:08:40.7233333+00:00
Rich Matheisen 45,906 Reputation points
0 answers

Invalid input error when configuring exclusions for MARS agent backup schedules via PowerShell

MARS agent version: 2.0.9266.0 Operating Systems: Server 2022, 2019, Windows 11 Azure Powershell versions 10.4.1.37722 x64 as well as 12.1.0.38758 x64 We need to deploy the MARS agent and configure backup schedules via powershell to many devices. The…

Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
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,323 questions
asked 2024-07-17T03:32:28.3+00:00
Joel Stockley 5 Reputation points
commented 2024-07-17T14:57:55.55+00:00
SadiqhAhmed-MSFT 41,456 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Get-Service blocked by firewall

Hi, I have 2 virtual machines named AAA and BBB. I tried running the following command from the BBB machine and it didn't work: Get-Service -ComputerName AAA | Where-Object {($_.starttype -like "*auto*") -and ($_.Status -eq…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,608 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,323 questions
asked 2024-07-16T09:35:04.2+00:00
SC 166 Reputation points
accepted 2024-07-17T14:38:59.8366667+00:00
SC 166 Reputation points
3 answers

Wie behebe ich Code 0x8031005a?

Ich habe die Win 11 23H2-Version . Ein Geräteschlüssel ist nicht hinterlegt. Beim Versuch einen solchen selbst zu generieren, wird mir die Meldung angezeigt, daß die PowerShell -Version nicht aktuell ist. Ein Versuch mit folgender Eingabe schlägt…

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,975 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,323 questions
asked 2024-07-14T14:44:58.38+00:00
Dr. Detlef Briese 0 Reputation points
answered 2024-07-17T07:11:44.53+00:00
Dr. Detlef Briese 0 Reputation points
1 answer One of the answers was accepted by the question author.

Find all expired sharing links in SharePoint using PowerShell

How can I use PowerShell to find all expired anonymously shared links in SharePoint? I found this script (shared (1).txt) in this thread and modified it to (File.txt). However, it only fetches links with the access type of "can view and can…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,274 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,807 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,323 questions
asked 2024-07-16T12:31:42.8066667+00:00
Roy_Jaze 40 Reputation points
accepted 2024-07-17T02:46:39.78+00:00
Roy_Jaze 40 Reputation points
2 answers One of the answers was accepted by the question author.

I want to send en email and have that converted into news post in Sharepoint

Please help with this relatively simple ask (I think) which there are few recent answers on the MS community. I would like to Send an email from outlook to a certain email address with a subject and body I want that email to go to Sharepoint and be…

Outlook
Outlook
A family of Microsoft email and calendar products.
3,418 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,274 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,323 questions
asked 2024-07-11T00:29:59.7166667+00:00
kman202020 20 Reputation points
answered 2024-07-16T17:42:07.0033333+00:00
kman202020 20 Reputation points
1 answer

How to expand PowerShell MS Graph Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject Microsoft.Graph.PowerShell.Models.MicrosoftGraphVerifiedPublisher?

Using PowerShell for Microsoft Graphs, how can I expand or convert the below attributes or columns? CreatedOnBehalfOf : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject VerifiedPublisher :…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,422 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,323 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,602 questions
asked 2024-06-19T11:15:12.33+00:00
EnterpriseArchitect 5,136 Reputation points
answered 2024-07-16T15:17:37.7833333+00:00
Carolyne-3676 201 Reputation points
5 answers

PowerShell command outputting 'System.__ComObject' on Windows 11 23H2

I am working on a Windows 11 23H2 system and attempting to retrieve installed update details using the PowerShell command below, but it's giving me an output of System.__ComObject: $UpdateSession = New-Object -ComObject…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,323 questions
asked 2024-07-02T12:00:45.7933333+00:00
VM 61 Reputation points
commented 2024-07-16T14:48:09.4766667+00:00
Kishor Kumar 30 Reputation points
3 answers

Windows update agent api - Access denied on AddScanPackageService

Hi Together Could someone help me in this matter... I am trying to run following script block on remote system to get updates needed and getting access denied on following line: " $UpdateServiceManager.AddScanPackageService("Offline Sync…

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,460 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,323 questions
asked 2023-03-14T12:14:37.4066667+00:00
Zeljko Zaric 1 Reputation point
answered 2024-07-16T13:44:16.7066667+00:00
Jesper Arnecke 0 Reputation points
2 answers

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 powershell of Azure devops pipeline. How can I solve this issue

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,323 questions
asked 2024-07-12T17:18:41.65+00:00
Anonymous
answered 2024-07-16T06:35:20.2866667+00:00
Yanhong Liu 5,135 Reputation points Microsoft Vendor
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,349 questions
Outlook
Outlook
A family of Microsoft email and calendar products.
3,418 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,422 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,323 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,611 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,062 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,323 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,418 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,422 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,323 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,323 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,422 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,323 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,323 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,591 Reputation points MVP