2,210 questions with PowerShell-related tags

Sort by: Updated
1 answer

Powershell scripts in System Center Orchestrator 2022

Hi all, We are trying to move from SC Orchestrator 2012 to 2022 version. in previous version, we were using the Powershell integration Pack which allowed us to run PowerShell scripts in remote machines and use output of those scripts in runbook. Since…

System Center Orchestrator
System Center Orchestrator
A family of System Center products that provide an automation platform for orchestrating and integrating both Microsoft and non-Microsoft IT tools.
218 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,210 questions
asked 2024-06-10T17:48:43.7833333+00:00
Bilel Moakhar 0 Reputation points
answered 2024-06-10T19:43:32.2833333+00:00
Andreas Baumgarten 99,136 Reputation points MVP
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,536 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,413 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,047 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,426 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,210 questions
asked 2024-06-10T12:51:34.3+00:00
Roger Roger 5,006 Reputation points
accepted 2024-06-10T17:17:01.35+00:00
Roger Roger 5,006 Reputation points
2 answers

Run script on multiple users (using Excel table)

Hello everyone, im trying to build a PowerShell script that runs a command multiple times but with different URLs, but i cant quite understand how to build it. The point is to remove a user from the Share Point sites listed in the column D. So lets say…

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,578 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,976 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,210 questions
asked 2024-06-10T08:03:49.4266667+00:00
Emiliano 0 Reputation points
edited a comment 2024-06-10T16:18:53.27+00:00
Rich Matheisen 45,341 Reputation points
1 answer

Getting certificates details using Invoke-Command powershell gives error

Invoke-command -computername server1 -ScriptBlock { dir cert: -Recurse | Where-Object { $_Subject -like 'server1' }} Gives error The system cannot open the device or file specified. Please help on how to this.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,210 questions
asked 2024-06-10T14:05:33.4566667+00:00
Sam White 6 Reputation points
answered 2024-06-10T15:18:15.1766667+00:00
Michael Taylor 49,676 Reputation points
0 answers

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,976 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,748 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,210 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,024 questions
asked 2024-06-07T07:22:08.2966667+00:00
Azahara Cruz 0 Reputation points
edited the question 2024-06-10T14:33:37.59+00:00
Ryan Hill 26,621 Reputation points Microsoft Employee
3 answers

Azure Virtual Desktop Auto Shutdown and Power On

Hello All, We're currently managing a pool of 30-40 VMs, and to optimize our licensing costs with Microsoft, we're planning to shut down idle VDI VMs that haven't been used in over 8 hours. To automate this process, could you assist us with a PowerShell…

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,352 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,156 questions
Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,406 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,210 questions
asked 2024-06-03T06:49:38.01+00:00
Madhukar Mali 0 Reputation points
answered 2024-06-10T11:21:48.0666667+00:00
Prrudram-MSFT 22,916 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.
10,998 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,426 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,210 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,024 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,306 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.
10,998 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,210 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 81,486 Reputation points Microsoft Employee
0 answers

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.
992 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,210 questions
asked 2024-06-07T07:49:33.1333333+00:00
Dalvi, Satish 0 Reputation points
commented 2024-06-10T05:19:26.85+00:00
PRADEEPCHEEKATLA-MSFT 81,486 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,190 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,210 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,024 questions
asked 2024-06-10T01:50:53.0733333+00:00
ネパリ サンデャ 380 Reputation points
2 answers One of the answers was accepted by the question author.

WARNING: Unable to acquire token for tenant 'organizations' with error 'InteractiveBrowserCredential authentication failed: Method not found: 'Void Microsoft.Identity.Client.Extensions.Msal.MsalCacheHelper.RegisterCache(Microsoft.Identity.Client.ITokenCa

Hi Team, Can someone here please assist me with this error to connect my PowerShell session using the Connect-AzAccount ? PS C:\WINDOWS\system32\WindowsPowerShell\v1.0> Connect-AzAccount WARNING: Unable to acquire token for tenant 'organizations' with…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,998 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,210 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,024 questions
asked 2023-08-08T13:25:14.0933333+00:00
EnterpriseArchitect 4,916 Reputation points
commented 2024-06-08T19:27:55.08+00:00
Isra Oax 0 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,023 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,386 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,426 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,210 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 102.9K Reputation points
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,386 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,047 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,426 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,210 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,806 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,210 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,341 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,210 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
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,053 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,210 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,291 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,210 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,911 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,906 questions
Windows 365 Enterprise
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,577 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,210 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,606 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,210 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,157 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,998 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,210 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,024 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