2,612 questions with PowerShell-related tags

Sort by: Updated
0 answers

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…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,314 questions
Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
831 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,612 questions
asked 2024-11-14T18:42:45.26+00:00
Thomas McCartney DA 0 Reputation points
0 answers

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…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,855 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,612 questions
asked 2024-11-14T18:13:51.1166667+00:00
Prakash Kumar Singh 40 Reputation points
0 answers

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 Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,490 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,612 questions
asked 2024-11-11T15:45:58.24+00:00
Arianne Chung 0 Reputation points
commented 2024-11-14T17:51:32.03+00:00
Keshavulu Dasari 1,730 Reputation points Microsoft Vendor
2 answers

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…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,134 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,612 questions
asked 2024-11-13T17:36:04.2966667+00:00
mitesh patel 6 Reputation points
answered 2024-11-14T16:12:25.0566667+00:00
Rich Matheisen 46,896 Reputation points
0 answers

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…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,736 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,612 questions
asked 2024-11-14T12:04:01.5066667+00:00
Steins 41 Reputation points
0 answers

I couldn't make new connection to Onedrive for Business

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,161 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,157 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,682 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,612 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,187 questions
asked 2024-11-14T11:43:49.48+00:00
Marishet Hayilemariam 0 Reputation points
2 answers One of the answers was accepted by the question author.

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…

Outlook
Outlook
A family of Microsoft email and calendar products.
4,052 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,314 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,612 questions
asked 2024-05-28T12:31:31.4833333+00:00
Bonagura Marcello 10 Reputation points
accepted 2024-11-14T11:05:01.7866667+00:00
Bonagura Marcello 10 Reputation points
2 answers

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…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,736 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,945 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,612 questions
asked 2024-03-11T11:55:06.7966667+00:00
Erwin Pauwels 10 Reputation points
commented 2024-11-14T09:50:23.5333333+00:00
Alexey Krasheninnikov 0 Reputation points
2 answers

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.

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,682 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,612 questions
asked 2024-11-12T01:14:43.0733333+00:00
CC 0 Reputation points
commented 2024-11-14T07:15:01.5766667+00:00
Vasil Michev 108.3K Reputation points MVP
2 answers

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…

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,029 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,561 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,612 questions
asked 2024-11-09T22:07:37.7033333+00:00
Glenn Maxwell 11,521 Reputation points
commented 2024-11-14T05:41:17.8+00:00
Mounika Reddy Anumandla 745 Reputation points Microsoft Vendor
1 answer

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…

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,728 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,977 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,612 questions
asked 2024-11-07T05:03:57.15+00:00
Researcher 6 Reputation points
answered 2024-11-14T01:20:25.98+00:00
Rojer 0 Reputation points
3 answers One of the answers was accepted by the question author.

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…

Windows Server Printing
Windows Server Printing
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Printing: Printer centralized deployment and management, scan and fax resources management, and document services
689 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,612 questions
asked 2024-11-01T16:27:40.0233333+00:00
Jan 25 Reputation points
commented 2024-11-13T21:00:02.05+00:00
Uli Wehner 0 Reputation points
1 answer

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…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,314 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,612 questions
asked 2023-10-11T06:54:28.6966667+00:00
Mantas Antanaitis 5 Reputation points
commented 2024-11-13T16:30:14.0666667+00:00
Eliot Cole 51 Reputation points
1 answer

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…

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,029 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,314 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,262 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,561 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,612 questions
asked 2024-11-13T05:55:47.0866667+00:00
EnterpriseArchitect 5,406 Reputation points
commented 2024-11-13T12:07:32.17+00:00
Mounika Reddy Anumandla 745 Reputation points Microsoft Vendor
0 answers

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) …

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,736 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,612 questions
asked 2024-11-13T10:36:36.1033333+00:00
Siddhesh Thorat (PSP) 0 Reputation points
1 answer One of the answers was accepted by the question author.

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)…

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,161 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,052 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,612 questions
asked 2024-11-07T14:32:47.0933333+00:00
Sebastian Biały 40 Reputation points
accepted 2024-11-13T10:19:45.4+00:00
Sebastian Biały 40 Reputation points
1 answer One of the answers was accepted by the question author.

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,…

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,161 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,855 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,612 questions
asked 2024-11-07T14:28:53.7233333+00:00
Sebastian Biały 40 Reputation points
accepted 2024-11-13T10:19:02.89+00:00
Sebastian Biały 40 Reputation points
0 answers

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,…

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,234 questions
Azure Private Link
Azure Private Link
An Azure service that provides private connectivity from a virtual network to Azure platform as a service, customer-owned, or Microsoft partner services.
517 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,262 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,612 questions
asked 2024-11-12T01:56:14.4066667+00:00
Yu-Jeong Seo 110 Reputation points
commented 2024-11-13T06:01:36.2133333+00:00
Yu-Jeong Seo 110 Reputation points
1 answer

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…

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,157 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,855 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,281 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,561 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,612 questions
asked 2024-11-07T20:09:27.5433333+00:00
Capt America 0 Reputation points
commented 2024-11-13T00:49:21.3833333+00:00
Ling Zhou_MSFT 18,175 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

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 :-…

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,006 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,612 questions
asked 2024-11-06T21:31:49.4833333+00:00
vaddi_dataengineer 20 Reputation points
accepted 2024-11-13T00:42:26.7566667+00:00
vaddi_dataengineer 20 Reputation points