powershell
2110 TopicsHow to Report the Sponsors for Entra ID Guest Accounts
Entra ID populates the sponsor property for new guest accounts with details of the person who invites the guest to the tenant. It’s data that can be used for different purposes, such as having someone to justify the continued presence of a guest account in a Microsoft 365 tenant. This article explains how to report guest accounts and their sponsors with some straightforward PowerShell. https://office365itpros.com/2025/04/18/guest-accounts-sponsors/4Views0likes0CommentsActivating a users multiple PIM groups using PowerShell
Hi All, Following on from the implementation of PIM by one of my clients. Due to the large numbers of groups for some staff, i.e. developers etc, we have looked into activating them programmatically. However, this always appears to fall over due to the syntax etc. Whether using Get-MgPrivilegedAccessGroupEligibilityScheduleInstance or Invoke-MgGraphRequest -Method POST -Uri "https://graph.microsoft.com/beta/identityGovernance/privilegedAccess/group/assignments" or New-MgRoleManagementDirectoryRoleAssignmentScheduleRequest. In various scripts, it either falls over intermittently saying '..is not recognised as the name of a cmdlet..etc etc etc. To check whether anyone else has achieved this. I am trying to avoid reworking what they have put in place over the past 3 months or so. Many Thanks MoZZaSolved8Views0likes0CommentsPowerShell counterpart for Failover Cluster Manager "Live Migration Settings"
In Failover Cluster Manager, there's "Live Migration Settings" where I can define what cluster networks I want to carry live migration traffic. Even after some research, I cannot find a PowerShell cmdlet that lets me do the same...17Views0likes0CommentsCopy-PnPFile Not Working Value cannot be null.\r\nParameter name: Null value for source item at
I'm tying to use Copy-PnPFile command to copy all files and folders from site collection A document library to another site collection B/folder but it's not working. Following is the command I'm using: Copy-PnPFile -SourceUrl "/sites/AshTest/Docs" -TargetUrl "/sites/ADM-AshTest/TestDocs/Docs" -Force Error, please let me know what can be done to make it work. Copy-PnPFile : {"odata.error":{"code":"-2147467261, System.ArgumentNullException","message":{"lang":"en-US","value":"Value cannot be null.\r\nParameter name: Null value for source item at https://tenant.sharepoint.com/sites/AshTest/Docs"}}} At line:1 char:1 + Copy-PnPFile -SourceUrl "/sites/AshTest/Docs" -TargetUrl "/sites/ADM- ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (:) [Copy-PnPFile], HttpRequestException + FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Files.CopyFile2.5KViews0likes3CommentsMicrosoft Attempts to Fix Microsoft Graph PowerShell SDK Problem with Azure Automation
V2.26 and V2.26.1 of the Microsoft Graph PowerShell SDK were low-quality, buggy disasters. Microsoft aims to fix the problem in the next version to make it possible for the SDK to work with Azure Automation runbooks again and address many of the obvious problems that should never have appeared outside Microsoft. It will take time for customer confidence to be restored. https://office365itpros.com/2025/04/14/microsoft-graph-powershell-sdk-2261/30Views0likes0CommentsPowershell - Lock screen & Desktop background issue
I am currently starting to configure for a smaller organisation, using Intune for MDM, I've managed to successfully change my Azure AD login to be a standard user (I don't want every user having full administration rights) - that works well and I've assigned an Azure AD group to have admin privileges. So my next step is to set a corporate lock screen and desktop background image, using this script. But I now have an issue, either way I want to handle the script in Intune. Running script as: Run this script using the logged on credentials: No The script runs, but the user doesn't download the image files (having tested with administrative privileges in Powershell - the user doesn't have an internet connection, as the laptop is on wifi). So the lock screen and desktop background don't get set. Run this script using the logged on credentials: Yes The script runs, downloads the files successfully but then can't set the registry keys (as my standard user doesn't have permission to alter registry keys). So the lock screen and desktop background don't get set. Do Powershell scripts run in order - and sequentially? That way I could set two scripts, one to download and one to set the registry keys. Or is there any other way of achieving this? Please bear in mind I'm using Windows 10 Pro - so the usual Intune background settings don't work with. Many thanks.Solved23KViews0likes8CommentsSave list as template on modern team site
Wonder if anyone can advise how I can create a list in a modern sharepoint team site from a template that I saved from a classic team site. I don't see any option from within powershell settings. I have been getting my head around all the various sharepoint resources and have been creating lists etc on my classic team site for now but our users are starting to use the modern team sites created from Office 365 groups and I really would like to have them use some of the list templates I've created. Any help appreciated.105KViews1like27CommentsReport of all classic SharePoint sites
I wonder if someone can guide me to a PowerShell script that I can run which will: Generate a list of all Classic SharePoint sites I have, Include all of the subsites of those sites, Gather useful information about them (Name, URL, Owners, Members, last usage, storage etc etc.) Generate a CSV file with the list TIA!42Views0likes1CommentHow to restore the confluence backup on sharepoint
Hi, We have a backup of our confluence (both html and pdf format), and we would like to restore it on our sharepoint as sharepoint pages along with the links as it was on confluence. When searching in the web, i see an option to use PnP Powershell, but would like to know if there is anyone who has already tried it and it has worked . I would really appreciate if i can get the steps /instructions to restore the backup on sharepoint.16Views0likes0CommentsSort SharePoint Online organization properties
There`re more than 200 organization properties in SPO. Whenever I just want to find out the status of a selected property, I realize that Get-SPOTenant isn`t very admin-freandly 😥 it won´t support sort or filter, because output of this command doesn't include columns like Get-SPOSite do. I may be wrong, but can someone tell me how to sort by name of properties in output of Get-SPOTenant?Solved49Views0likes2Comments