2,216 questions with PowerShell-related tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

Problems with managed identity and sharepoint

I have an azure function that creates sites in sharepoint. The problem is that after giving Sites.FullControl.All permissions under Microsoft Graph on the Managed Identity that the Azure function authenticates with, it creates the site correctly but when…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,998 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.
2,756 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,216 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,078 questions
asked 2024-06-07T07:22:08.2966667+00:00
Azahara Cruz 20 Reputation points
accepted 2024-06-11T07:02:47.03+00:00
Azahara Cruz 20 Reputation points
1 answer

Cannot create New Entra ID User using Powershell

I am using PowerShell to connect to Microsoft Graph to create new users in Entra ID. I changed Graph version to too many versions but still got these errors. What is wrong with Microsoft? I am using Global Administrator account.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,216 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,078 questions
asked 2024-06-02T13:49:01.2233333+00:00
PHYO AUNG KYAW 0 Reputation points
commented 2024-06-11T06:59:41.1066667+00:00
Givary-MSFT 29,261 Reputation points Microsoft Employee
0 answers

Universal Print - is there a Method of automatically deleting any Pending Print jobs that are several days old

I was wondering if there was a PowerShell Script command or an Intune Policy, Registry Entry etc. I could apply to my Windows 10/11 Devices where any Submitted Print jobs to a Universal Print Share that was pending and it was 5 Days old, the system…

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,603 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,216 questions
asked 2024-06-11T02:31:14.4033333+00:00
Steven Molnar 5 Reputation points
edited the question 2024-06-11T06:41:57.0366667+00:00
Roy Li - MSFT 32,721 Reputation points Microsoft Vendor
2 answers

is it possible to stop users downloading chrome apps via intune?

Hi all,   Is it possible to stop users downloading app versions of sites ie youtube on chrome?      If so can this be done via intune? 

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,932 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,603 questions
Microsoft Intune Configuration
Microsoft Intune Configuration
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Configuration: The process of arranging or setting up computer systems, hardware, or software.
1,768 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,570 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,216 questions
asked 2024-06-05T11:37:04.0066667+00:00
Aran Billen 721 Reputation points
commented 2024-06-11T01:55:49.52+00:00
Crystal-MSFT 44,851 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

Group membership

Hi All The following script doesn't work for AD groups. Members of ADGroup1 should be able to add or remove users from other AD Group. please guide me. # Define the $owner that will be able to manage the members of $group $owner = "ADGroup1"; …

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,537 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,414 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,056 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,427 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,216 questions
asked 2024-06-10T12:51:34.3+00:00
Roger Roger 5,046 Reputation points
accepted 2024-06-10T17:17:01.35+00:00
Roger Roger 5,046 Reputation points
2 answers

Can I put the value of instanceDurationInDays in minutes for the QA while creating access reviews using powershell?

I am able to create an azure access reviews with Graph API 1.0 using PowerShell. Now, there is a property called instanceDurationInDays which should have an integer value. The access review will remain active for the number of days of the value of…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,035 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,427 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,216 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,078 questions
asked 2024-05-27T13:42:49.5833333+00:00
Sumit Bhargav 0 Reputation points
commented 2024-06-10T11:06:28.2733333+00:00
Shweta Mathur 28,691 Reputation points Microsoft Employee
1 answer

How to get list of Reservations in Azure via Powershell that include remaining cost or cancellation fee?

I'm trying to use powershell or the Azure API to get a list of all of my reservations in USWest and USWest2 that are in a provisioned state of Succeeded (or not archived), along with their remaining cost like you can in the UI (see attached picture).…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,035 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,216 questions
asked 2024-06-03T20:22:18.02+00:00
Chris Moceri 10 Reputation points
commented 2024-06-10T06:03:40.2+00:00
PRADEEPCHEEKATLA-MSFT 82,041 Reputation points Microsoft Employee
0 answers

About PS script

My requirements are My Azure AD users have company name attributes some have same names and some have different and some have no company name attribute Same company name atrribute users must see the calender of each other but different company name…

Outlook
Outlook
A family of Microsoft email and calendar products.
3,208 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,216 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,078 questions
asked 2024-06-10T01:50:53.0733333+00:00
ネパリ サンデャ 380 Reputation points
3 answers One of the answers was accepted by the question author.

Could someone kindly help me to set the max memory for SQL via powershell

Hi Experts, Could someone please help me to set the max memory in SQL for the below request. I have checked the below link. But I am not able to make out. Because I am not expertise in scripting and PowerShell. So need your help. …

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,051 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,403 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,427 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,216 questions
asked 2024-06-06T06:45:34.3766667+00:00
Jimmy Afflick 80 Reputation points
commented 2024-06-07T21:19:25.4266667+00:00
Erland Sommarskog 103.2K Reputation points MVP
1 answer One of the answers was accepted by the question author.

I am getting error, When I am trying to update the GPO by executing gpupdate /force.

Hi Experts, I have applied the GPO to disable windows auto update and Trying to update the GPO. But I am getting below error while I am trying to update the GPO. "Windows failed to applied the {F312195E-sD90-447A-A3F5-08DFFA24735E) settings .…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,403 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,056 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,427 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,216 questions
asked 2024-05-21T06:21:54.51+00:00
Jimmy Afflick 80 Reputation points
commented 2024-06-07T17:51:48.2966667+00:00
Jimmy Afflick 80 Reputation points
1 answer

TCP connect to (<ip address> : <port>) failed

Hello, On a new Win11 laptop, I can't succeed to connect a network drive to a File Share with PowerShell. Here's a table listing the context: StepWin10Win11Connected to Azure P2S VPNYesYesConnection methodPowerShellPowerShellResource group A / Storage…

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.
2,814 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,216 questions
asked 2024-06-07T10:39:11.2533333+00:00
Nicolas P...e 0 Reputation points
answered 2024-06-07T15:56:04.49+00:00
Rich Matheisen 45,416 Reputation points
2 answers One of the answers was accepted by the question author.

ExchangeOnline Powershell - Get-QuarantineMessage -ReleaseStatus Requested: no results

I'm having a problem running a Get-QuarantineMessage Powershell script for ExchangeOnline in Powershell. My manager is able to run it connecting to the exact same account and get results. When I run it, I just get brought back to the prompt without any…

Microsoft Exchange Online
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,216 questions
asked 2024-05-24T19:02:59.75+00:00
Erin Martin 40 Reputation points
accepted 2024-06-07T14:14:09.77+00:00
Erin Martin 40 Reputation points
1 answer

In Purview,How to assign the glossary to the assets for bulk upload using script?

Hi, We have recently started using purview. One of the task we did is we defined our glossary and uploaded to the purview. Now we want to assign the glossary to the assets we have in purview. I am facing the issue with the payload and mapping step. …

Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
997 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,216 questions
asked 2024-06-07T07:49:33.1333333+00:00
Dalvi, Satish 0 Reputation points
answered 2024-06-07T10:08:46.42+00:00
PRADEEPCHEEKATLA-MSFT 82,041 Reputation points Microsoft Employee
3 answers

Use PowerShell to enable 'Send copies of group conversations and events to group members' on a dynamic O365 group

I have done quite a bit of researching and asking 'Co-Pilot' without any luck. Essentially, I want to do what the title says, which is: Enable 'Send copies of group conversations and events to group members' for the specified group using PowerShell. The…

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.
4,078 questions
Microsoft Exchange
Microsoft Exchange
Microsoft messaging and collaboration software.
423 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,216 questions
asked 2024-05-23T20:54:43.1533333+00:00
Mark-3345 30 Reputation points
commented 2024-06-07T06:37:50.54+00:00
Bruce Jing-MSFT 1,530 Reputation points Microsoft Vendor
1 answer

How can I assign User Role Policy (Role Assignment Policy) to a Mail-enabled security group using PowerShell?

I am trying to remove Forward option from OWA for our corporate users. I can create a new role and role policy can assign it to one single user or multiple users one by one, but I do not want manual process. We have hundreds of users, so I want to assign…

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,299 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,216 questions
asked 2024-05-29T22:51:52.9066667+00:00
Abhi Patel 0 Reputation points
commented 2024-06-07T06:23:03.25+00:00
Bruce Jing-MSFT 1,530 Reputation points Microsoft Vendor
1 answer

How do I upgrade multiple Windows 10 Pro users who have an Office 365 Enterprise license to Windows 11 Enterprise without reimaging the computer

How do I upgrade multiple Windows 10 Pro users who have an Office 365 Enterprise license to Windows 11 Enterprise without reimaging the computer?

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,932 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,920 questions
Windows 365 Enterprise
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,603 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,216 questions
asked 2024-06-05T19:30:30.61+00:00
Monroe Johnson 0 Reputation points
answered 2024-06-07T02:09:54.0733333+00:00
Hania Lian 9,691 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

PowerShell issue?

I am currently studying Powershell and in the book I am using it gives me this command to run........PS Cert:>GCI -Recurse > C:\a.txt; notepad.exe a.txt.....yet when I run this command the file opens up and it is blank. A little help please.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,216 questions
asked 2024-06-06T21:32:28.18+00:00
scott gilbert 20 Reputation points
commented 2024-06-06T22:30:19.3733333+00:00
scott gilbert 20 Reputation points
2 answers One of the answers was accepted by the question author.

Effect of MC792991 Disablement of Symmetric keys for Microsoft Entra first-party applications Service Principals

Hello Team, Greetings! This is Joni.   Due to the Microsoft post as follows,  a partner need to address how this affects to end users' resources and workloads.  Disablement of Symmetric keys for Microsoft Entra first-party applications Service Principals…

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,158 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,035 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,216 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,078 questions
asked 2024-05-20T14:08:33.86+00:00
yulei0917 50 Reputation points
commented 2024-06-06T18:19:01.02+00:00
jpcapone 1,356 Reputation points
1 answer

Service account and best practice for PowerAutomate flows and PowerApps flows

I have a bunch of flows running directly through my account (edit Excel files, edit Sharepoint list and adding documents, sending emails with Outlook under my name, etc), and I'm leaving the company soon. So I'm looking into a smooth transition. I've…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,216 questions
asked 2024-01-02T07:46:50.6666667+00:00
Mata Ricardo 5 Reputation points
commented 2024-06-06T17:04:47.02+00:00
Amaury, Van Espen 6 Reputation points
1 answer One of the answers was accepted by the question author.

Getting report for any devices registered and Azure AD joined in the past hour via email?

I'm using Azure AD Premium P2 and haven't yet implemented Intune. How can I get a report of any devices that have joined and registered to my domain via Azure AD in the last hour by email? Is there a PowerShell script or even a built-in Azure AD…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,035 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,216 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,078 questions
asked 2023-04-20T07:50:23.2333333+00:00
EnterpriseArchitect 4,916 Reputation points
commented 2024-06-06T08:23:06.3766667+00:00
EnterpriseArchitect 4,916 Reputation points