Using PowerShell, can I list all members, visitors, and guests or a SharePoint site?
Can someone help me with a PowerShell script that can list all members, visitors, and guests of a particular SharePoint site? Would this need to be done in more than one command?
The window closes automatically when connect to Exchange Online with PowerShell
In order to change some of the organization's settings, I entered these commands in PowerShell one after the other. I don't know if there was a successful connection to Exchange Online PowerShell. But as soon as the last command is lost, the PowerShell…
When trying to publish linux function app packages using Publish-AzWebApp powershell command it is not uploading.
I tried publishing app multiple times using bellow command on both windows and linux, it was working fine. However, from last few days after migrating function app from dotnet 6 isolated to dotnet 8 isolated it has stopped working for Linux Function App.…
"Set-Mailbox : A parameter cannot be found that matches parameter name 'UserCertificate'" when using Entra Application
Hello, I have a powershell script to do a manual bulk upload of S/MIME certificates to exchange online, but it needs me to authenticate as a domain admin interactively on every run: # Connect to Exchange-Online using your own Credentials Install-Module…
We cannot join User machine to EntraID
I need help understanding why we cannot join a device to our EntraID? The user has a good password and has EntraID Lic and a Intune Lic. We have used the DSregtool.ps1 and it claims we should be able to join. We have tried using the Settings/Accounts…
C# .NET Bind to CN=Deleted Objects container in domain to list dACL
Hello dear community members, I need some help with C# .NET code to bind to CN=Deleted Objects container in a domain. I tried below methods: In PowerShell - [System.DirectoryServices.DirectoryEntry] In .NET System.DirectoryServices namespace with…
Invoke-command Access denied on Windows 11 but works with Windows 10
I'm trying to connect to a remote computer using Invoke-Command while running an elevated Powershell ise. I recently upgraded to Windows 11 and my scripts no longer work and are giving me an Access is denied error. Here is a test script I've been using…
Automation runbook for start/stop VM using Storage account blob
Hi, I am trying to deploy a powershell runbook in automation account which should read contents of CSV stored in storage account blob using system assigned managed identity of automation account. Looking for a piece of code as I don't want to use sas…
How to fix "403 forbidden" while trying to access MS Graph API during creation of User Flow using PowerShell or Bash in Azure AD B2C Tenant?
Hi all, I need help with API permissions for MS Graph API while creating User Flow using PowerShell. Context: I am trying to create User Flow in Azure AD B2C tenant, but while trying to send Graph API requests using Invoke-MgGraphRequest command, I am…
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.
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:
Getting of Notification Email using Powershell Script from Azure SAML Applications
How can we get the Notification Email (see image attached) using Powershell script in Microsoft Entra ID SAML applications whose certificates are near expiry within 60 days? Currently, we can get the Key Credentials of each SAML Applications, but we…
GPO script logOff is running with elevated permissions, can't run OneDrive correctly.
GPO script logOff is running with elevated permissions, can't run OneDrive correctly (it reports that it is not possible to run as administrator, even though I configured the policy in userconfiguration - windows settings - scripts LogOn\LogOff) How to…
How to setup Azure Automation account to restore database on SQL MI ?
Hello, I have a PowerShell script (see below) that I currently run daily from a task scheduler on a VM to restore a production database (SQL Managed Instance) to a secondary instance (SQL Managed Instance). I am planning to move this process to an Azure…
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…
Deleting Storage Account Pending Migration to SRP in Powershell
After much research on these forums and online in general, I'm trying to run the following two commands in attempt to delete a storage account that is pending migration to SRP: Move-AzureStorageAccount-Abort -StorageAccountName…
Automating Deployment and Configuration of Azure Storage Account with NFS V3.0 Using PowerShell and Integration with a Linux Server Outside Azure
As the maximum disk size provided by Azure is 32TB, it is not enough for some storage needs. We can create a new storage account and enable NFS V3.0 during creation. However, mounting it to an external (out of Azure) Linux server adds complexity. How can…
Real "files on demand". Automatically uploading cached OneDrive user files?
Hello, I recently came across a seemingly simple task, but in fact I have been unable to get OneDrive to do what I want it to do for two weeks now. I'll try to describe it briefly. The problem is that when a Windows user restarts or logs off their…
Exchange admin center bugs for manage email forwarding
I have set up the email forwarding in the Exchange Admin Center, where it is mentioned that "The mailbox owner will not be able to view and change this forwarding address." But I found that user logging into their mailbox can see which…
Automating switch between Standard HDD and Premium Disk on VMs
How can we have an automation that changes our VM's disk type to Standard HDD when we turn them off and then changes them to Premium before turning the VM back on? Is there any ready-to-use method available?
![](https://techprofile.blob.core.windows.net/images/ZuCGjNGWaEiWnbswF6AtpA.png?8DA64C)