New-MgServicePrincipalAppRoleAssignedTo : Insufficient privileges to complete operation
Hello. I have a logic app that needs specific roles assigned to it in order to function properly, so I have been using the Microsoft.Graph cmdlet New-MgServicePrincipalAppRoleAssignedTo to assign those roles. First, I have my powershell script assign…
Guest access expiration report for SharePoint Online site?
Hi, In my tenant, Guest access expiration is set for 180 days. I need to generate report for a SPO site that how many guests' users already lost access and how many guest users going to lose the access in future. Is there a way to get this report using…
Alternative Methods for Capturing Data Lake Size in Less Time
Need assistance in capturing the size of the data lake per environment (e.g., Dev, SIT, Prod). Currently, a PowerShell script is used to fetch details, generating a CSV file for each environment with the medallion, folder, subfolder, and size. The…
Azure Functions using Powershell - How to pre-load powershell modules to be used during execution.
Hello Geeks, Here's the scenario - I'm executing Azure functions (PowerShell code) using time trigger running on Consumption App service plan. I would like to execute this function every minute. The functions basically uses bunch of Azure powershell…
Does verb 'pintohome' be fully disable since later version of win10?
I have a powershell script helps to pin some folder to Frequent Folder to quickly achieve them. It used to work well on win10. But recently i found it that the script will be fully stucked unless i kill the window or thread, but its still ok the do it…
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…
update and restart from powershell or command line
Dear all, I've been looking for a solution on how to install feature updates from the command line or Powershell in windows 10/11. I've already found the get-windowsupdate PS feature, this also reboots after installing windows updates, but for some…
How to remove Default & Anonymous User as default User on all created public folder?
How to remove the Default & Anonymous User as default User on the new created public folder? Found that if these two users shown on the list and other user can read this folder. Thank you.
Query on Snapsht
Hi All, I am using the PowerShell syntax below to take snapshots of Windows VMs. Will the current syntax use an incremental or full snapshot? I want to use a full snapshot. Additionally, I would like to take snapshots of Linux VMs. If I change -OsType…
How to Set Excel's "Find All" Feature to Search Entire Workbook by Default Instead of Current Sheet?
I'm trying to adjust Excel's "Find All" feature so that it searches the entire workbook by default, rather than only the current sheet. I’ve researched this and found that there are third-party tools and VBA macros that can accomplish this, but…
Add a local IPP printer queue programmatically or with Powershell when Windows protected print mode is enabled
After enabling Windows protected print mode I am no longer able to add a printer queue programmatically using the Win32 API nor using Powershell. Windows protected print mode requires me to use the built-in driver called Microsoft IPP Class Driver. The…
Get Sharepoint "Site URL", when you have a "Site Id"
Hello, How do I get a Sharepoint Site URL when I have a Site Id using powershell&graphAPI? I'm using an app registration to autohorize. This is a part of powershell script: $CustomerGraphToken = New-PartnerAccessToken -ApplicationId…
Retrieving the disk space utilization on Azure VM using PowerShell script?
I need clarification on whether it is possible to query the Azure VM disk space utilization. The PowerShell command below does not accurately show the usage; it only displays the VM disk…
Need to fetch Registry Patches (CVEs) present in Software Center
Hi Team, I've written PowerShell Script to fetch all the Registry Keys (CVEs) present in the Software Center. But, it is not returning any result. Can you please help us here. Ex. : Reference of my PowerShell script (Not everything I pasted here) …
Granting permissions to sharepoint site via powershell
I would like to use powershell to grant permissions to multiple users via a csv/txt file to a sharepoint site. I doesn't want to add them to any group, neither sharepoint group nor domain group. I want them to appear in the members tab (not site members)…
Error granting permissions to a folder in a document library in Sharepoint via PowerShell
I plan to create a file exchange in the document library where everyone can only see their folder and only within that folder have the ability to share files outside the organization. I have created a script that creates a folder in the document library,…
Storing Azure Metrics in Private Storage Account Using Azure Automation
I want to retrieve metric values using Get-AzMetric in Azure Automation and store the daily updated values in an Azure Storage Account. However, the Storage Account is configured with a private link and can only be accessed through a specified network,…
Restore OneDrive files in bulk from Preservation Library - Powershell
Is there a way to pull files from the OneDrive Preservation library in bulk? User had two computers and had OneDrive sync'd on both. While in the process of issues they lost their OneDrive files and had cleared the trash. They are all now located in the…
Unable to delete Azure Synapse Workspace even through Powershell force deletion
Hello Team, I am unable to delete synapse analytics even though following up post through webUI or powershell. I tried following the steps mentioned in the link below :-…