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…
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…
![](https://techprofile.blob.core.windows.net/images/yb8aL45cdkyS0Sir-iBAeg.png?8DCA68)
![](https://techprofile.blob.core.windows.net/images/yb8aL45cdkyS0Sir-iBAeg.png?8DCA68)
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…
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…
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 =…
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…
![](https://techprofile.blob.core.windows.net/images/84eXqZh4KEGayKJ9OOltlQ.png?8DBCF1)
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…
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…
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…
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…
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 :…
![](https://techprofile.blob.core.windows.net/images/WsWYoGdWukeBW66msAr6qQ.png?8D8128)
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…
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…
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
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…
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 =…
![](https://techprofile.blob.core.windows.net/images/D8hQfuDe2U2nfKfQkM5Lkw.png?8DACB7)
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…
![](https://techprofile.blob.core.windows.net/images/92LGs-kRCUGxGsS6_HJ-eA.png?8D85F3)
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 =…
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…
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.
![](https://techprofile.blob.core.windows.net/images/6zoZhv5_BgAAAAAAAAAAAA.png?8DABC3)