Invoke-PnPTenantTemplate is not performing any action.. "Access token acquired"
I have 2 SharePoint Online tenants which both have a modern communication sites. now i used this command to get the source site template:- PS C:\Users\mohan> Connect-PnPOnline -Url "https://ssms.sharepoint.com/sites/PPM-test/"…
What is the UserID required by Get-MgUserContact?
According to the documentation, Get-MgUserContact requires either a UPN or a UserId in the -UserId field. However, mail contacts don't have UPNs, and the documentation doesn't define what a mail contact's UserID is. I've tried email address, display…
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…
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…
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…
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…
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,
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…
![](https://techprofile.blob.core.windows.net/images/fGkjp4has0Ge0PvHyM9iNw.png?8DBC64)
![](https://techprofile.blob.core.windows.net/images/fGkjp4has0Ge0PvHyM9iNw.png?8DBC64)
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…
![](https://techprofile.blob.core.windows.net/images/zCxR1gzTUkeGX5-wM6PGoA.png?8DB52A)
![](https://techprofile.blob.core.windows.net/images/as_Tu4nfLUeUI0EOf39xtg.png?8D9529)
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…
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?
![](https://techprofile.blob.core.windows.net/images/zCxR1gzTUkeGX5-wM6PGoA.png?8DB52A)
![](https://techprofile.blob.core.windows.net/images/zCxR1gzTUkeGX5-wM6PGoA.png?8DB52A)
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…
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…