2,256 questions with PowerShell-related tags

Sort by: Updated
0 answers

Wat zijn de optimale instellingen om Windows-prestaties te verbeteren zonder extra software?

\n "1.0" -Author "" -Description "Module cmdlet"

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,256 questions
asked 2024-06-30T12:20:08.2233333+00:00
veyon5 0 Reputation points
edited the question 2024-06-30T12:25:35.0466667+00:00
veyon5 0 Reputation points
4 answers One of the answers was accepted by the question author.

Users with MFA: Enabled, Disabled, Enforced

I manage a Azure AD Does anyone have a PowerShell script that can help me get all users from Azure Active directory with MFA: Enabled, Disabled, Enforced Thanks for the help.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,256 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,275 questions
asked 2023-08-09T19:25:14.8066667+00:00
GuestGuivenchi 105 Reputation points
edited an answer 2024-06-29T16:42:34.3633333+00:00
Brian Zarb 1,635 Reputation points
0 answers

Microsoft Search insights and configuration - Download Report using API or Power Automate

SharePoint site collection administrators will be able to get insights regarding the total number of search queries performed, number of results by type over time, top searched queries etc. from Site Settings. Site Settings->Search Insights and…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,190 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,105 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,256 questions
Microsoft Power Platform Training
Microsoft Power Platform Training
Microsoft Power Platform: An integrated set of Microsoft business intelligence services.Training: Instruction to develop new skills.
185 questions
asked 2024-06-29T05:17:20.0066667+00:00
Varghese, Ajith (Cognizant) 0 Reputation points
2 answers

Connect-AipService

Im having an issue where on powershell when I run the command "connect-aipservice" I then input the correct credential and 2fa code but every time I enter it, I get the following error " Connect-AipService : The attempt to connect to the…

Azure Information Protection
Azure Information Protection
An Azure service that is used to control and help secure email, documents, and sensitive data that are shared outside the company.
529 questions
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.
1,018 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,256 questions
asked 2024-06-27T14:48:22.9833333+00:00
AT 0 Reputation points
answered 2024-06-28T20:15:37.5466667+00:00
Marilee Turscak-MSFT 35,901 Reputation points Microsoft Employee
0 answers

"Bandwidth Constraints for 12,000 Devices During .OST File Creation"

Hi Team, how can we implement bandwidth constraints for 12,000 devices when new .ost files are created and begin downloading emails?Also, Is there a way to use old .ost file with new outlook profile created in xyz.com domain outlook by deleting the new…

Windows Network
Windows Network
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.Network: A group of devices that communicate either wirelessly or via a physical connection.
694 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,025 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,964 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,738 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,256 questions
asked 2024-06-28T19:07:32.29+00:00
Prabhjot Singh 170 Reputation points
1 answer

The risk and consequence for the users when migrating Legacy Multi-factor authentication to the new Entra ID Authentication methods

I need some assistance before migrating from this old legacy portal: https://account.activedirectory.windowsazure.com/UserManagement/MfaSettings.aspx to this new location:…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,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,256 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,734 questions
Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,275 questions
asked 2024-06-26T03:03:45.3533333+00:00
EnterpriseArchitect 4,976 Reputation points
answered 2024-06-28T17:42:00.8433333+00:00
Babafemi Bulugbe 2,835 Reputation points MVP
1 answer

How to onboard Defender via userdata scripts?

I am trying to onboard defender to windows servers. By following onboarding steps 1 to 4 in this doco, I was able to onboard defender to windows servers manually. However, we are using userdata powershell scripts for our windows server. I need to put all…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,494 questions
Microsoft Defender for Cloud
Microsoft Defender for Cloud
An Azure service that provides threat protection for workloads running in Azure, on-premises, and in other clouds. Previously known as Azure Security Center and Azure Defender.
1,250 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,256 questions
Microsoft Defender for Endpoint Training
Microsoft Defender for Endpoint Training
Microsoft Defender for Endpoint: A Microsoft unified security platform for preventative protection, postbreach detection, and automated investigation and response. Previously known as Microsoft Defender Advanced Threat Protection.Training: Instruction to develop new skills.
26 questions
asked 2024-06-27T05:15:24.6066667+00:00
Byron Liu 0 Reputation points
answered 2024-06-28T12:45:03.19+00:00
Andrew Blumhardt 9,831 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Unhandled exception at Microsoft.ActiveDirectory.Management.Commands.SafeSessionCache

Hi all, Our App crashes randomly every now and then. Right before it crashes the following appears logged: ==================================================================== Application: xxxxxx.exe Framework Version: v4.0.30319 Description: The…

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,121 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,256 questions
asked 2024-06-19T10:56:17.3966667+00:00
Jose Martinez Poyato (jmartin4) 20 Reputation points
accepted 2024-06-28T11:29:46.18+00:00
Jose Martinez Poyato (jmartin4) 20 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.
11,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,256 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,275 questions
asked 2023-08-08T13:25:14.0933333+00:00
EnterpriseArchitect 4,976 Reputation points
commented 2024-06-28T10:50:42.2533333+00:00
Satish Kumar Vupperpally 0 Reputation points
1 answer One of the answers was accepted by the question author.

Request for Email Activity Report with Internal/External Breakdown

Hi everyone, Is it possible to generate a report that shows the number of emails sent and received by each user, with a breakdown of internal and external emails? I understand that we can find some basic metrics in the admin center under Reports >…

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,187 questions
Microsoft Exchange Online
Microsoft Exchange
Microsoft Exchange
Microsoft messaging and collaboration software.
435 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,256 questions
asked 2024-06-19T12:56:03.7066667+00:00
Aran Billen 741 Reputation points
accepted 2024-06-28T10:00:07.1266667+00:00
Aran Billen 741 Reputation points
1 answer

Powershell and Windows 11

In Windows 11 Pro 22H2 running PowerShell v5.1.22621.2506, I'm seeing issues when running PowerShell commands. For example, I run the copy-item command and PowerShell says it is an invalid command. I close PowerShell and open it again and the copy-item…

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,738 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,256 questions
asked 2024-06-27T20:41:10.9533333+00:00
Jim Harbert 0 Reputation points
answered 2024-06-28T08:12:31.9266667+00:00
Hania Lian 10,351 Reputation points Microsoft Vendor
1 answer

365 Calendar Management is frustrating! What are best practices? Why are there so many ways to create Calendars? Why isn't any one method that great?

Shared Mailbox Calendar Sharepoint Calendar Public Folder Calendar Personal Shared Calendar Group Calendar All of these have positive and negative things about them, but why can't any one Calendar just be simple? (basic Calendar where an Owner can manage…

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,330 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,256 questions
asked 2024-06-27T18:27:54.8933333+00:00
BC 0 Reputation points
answered 2024-06-28T07:31:24.62+00:00
Noah Ma-MSFT 1,850 Reputation points Microsoft Vendor
1 answer

I'm trying to use the Get-MgUserDrive command in PowerShell with the 'me' alias, full email address, and explicit user ID, but keep getting a 'User not found' error

I run the command below in powershell with using the Invoke-MgGraphRequest cmdlet. Please find below the Powershell Command´s Screenshot and the error message. Here is the Error msg: What do you suggest? Gemini propose an Alternative…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,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,256 questions
asked 2024-06-12T17:00:19.47+00:00
Mo7Z 0 Reputation points
commented 2024-06-28T02:38:23.9366667+00:00
Yakun Huang-MSFT 1,720 Reputation points Microsoft Vendor
1 answer

How do i edit the team site template within SharePoint online so it provisions each new site with a uk locale instead of US when a new team is created in MS-Teams

How do I edit the team site template within SharePoint online so it provisions each new site with a uk locale instead of US when a new team is created in MS-Teams. Our tenant sits on a US server and all our dates are us dates and I need them to be UK…

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,187 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,448 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,105 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,256 questions
asked 2024-06-27T12:26:03.0066667+00:00
NeilNorpa 1 Reputation point
answered 2024-06-28T02:23:26.7166667+00:00
RaytheonXie_MSFT 33,176 Reputation points Microsoft Vendor
0 answers

Trying to add Microsoft Sentinel to a Log Analytics Workspace in Azure but keep getting error "The gateway did not receive a response from 'Microsoft.SecurityInsights' within the specified time period"

I am trying to add Microsoft Sentinel to a Log Analytics Workspace connected to a Virtual Machine in the Azure portal but keep getting the error "The gateway did not receive a response from 'Microsoft.SecurityInsights' within the specified time…

Microsoft Sentinel
Microsoft Sentinel
A scalable, cloud-native solution for security information event management and security orchestration automated response. Previously known as Azure Sentinel.
1,037 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,256 questions
asked 2024-06-27T04:27:49.0766667+00:00
Aaqib Ali 0 Reputation points
edited the question 2024-06-27T20:34:57.63+00:00
Aaqib Ali 0 Reputation points
2 answers

How can I combine 2 get-ADComputer queries in 1

Can someone please help me? I am trying to find computers that match this criteria (see from screenshot Screenshot 2024-06-26 085801.png) Right now I have 2 queries, Find all enabled computers : $allEnabledComputers=Get-ADComputer -Filter…

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,443 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,256 questions
asked 2024-06-27T02:44:50.9366667+00:00
Bhutani, Monika 0 Reputation points
answered 2024-06-27T18:59:51.69+00:00
Rich Matheisen 45,591 Reputation points
1 answer One of the answers was accepted by the question author.

PowerShell MFA opens browser instead of mini-browser

Recently I reset my Windows 11 PC and also upgraded to PowerShell 7.4.2. Something is now causing any MFA sessions in PowerShell to launch a new tab in my default browser rather than opening a mini-browser to handle the modern authentication. It should…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,256 questions
asked 2024-04-17T13:58:24.7133333+00:00
David Dawson 100 86 Reputation points
edited a comment 2024-06-27T17:42:26.05+00:00
David Dawson 100 86 Reputation points
1 answer

Use PowerShell cmdlets in C#

Is it possible to use the cmdlets of a specific PowerShell version in C#? PowerShell has its limits regarding OO programming, so I'd like to use C# more, and make use of the power of the PowerShell cmdlets from within C#. My requirement is to have access…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,562 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,554 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,256 questions
asked 2024-06-27T13:32:37.0866667+00:00
Hinterleitner Andreas 0 Reputation points
answered 2024-06-27T14:57:44.9333333+00:00
Jiale Xue - MSFT 41,976 Reputation points Microsoft Vendor
0 answers

Why do Get-AzSentinelAlertRule/Incident Powershell CLI queries not always provide specified output detail?

When running the following List-all-alert-rules query, Get-AzSentinelAlertRule -ResourceGroupName "myResourceGroupName" -workspaceName "myWorkspaceName" all specified field key:value pairs are returned for every rule, including the…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,172 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,256 questions
asked 2024-06-24T07:32:41.6366667+00:00
Colin Sanders 0 Reputation points
commented 2024-06-27T07:53:53.7366667+00:00
Colin Sanders 0 Reputation points
2 answers One of the answers was accepted by the question author.

Listing file information filtered on values in a file

Hi, I would like to list sizes on all files in a directory, but the listed file names must match filenames picked up from a file. Basic information file size from this; Get-ChildItem -Path "\servername\DATA\files" -File | Select-Object…

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,443 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,256 questions
asked 2024-06-26T09:18:57.3433333+00:00
Fredrik M 206 Reputation points
accepted 2024-06-27T07:02:42.51+00:00
Fredrik M 206 Reputation points