2,799 questions with PowerShell-related tags

Sort by: Updated
0 answers

Bulk upload the zip & post code

Hello, Please i need your help on this issue. We need to do a one-time bulk upload of unique number via Entra portal for column Zip or postal code. I tried using Powershell

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,867 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,381 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,799 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.
23,166 questions
asked 2025-02-10T23:22:20.96+00:00
John Peter 20 Reputation points
0 answers

PowerShell Script to list all the files and folders that are being shared in a document library

Hello, I am trying to find out which folders or files on a Document Library are being shared, either internally or externally, and who was it shared to. Is there a powershell script that does this? Best.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,176 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,799 questions
asked 2025-02-10T20:27:03.1333333+00:00
Xia, Henry 0 Reputation points
0 answers

"The SSL connection could not be established, see inner exception." Issue Installing Microsoft.Graph Module in PowerShell in PowerShell

Hi everyone, I'm experiencing an issue when trying to install the Microsoft.Graph module using PowerShell 7. When I run the following command: Install-Module Microsoft.Graph -Scope CurrentUser -Repository PSGallery -Force -verbose I receive the…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,006 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,623 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,799 questions
asked 2025-02-10T17:02:00.11+00:00
Bragaglia, Andrea (IT) 0 Reputation points
commented 2025-02-10T18:17:51.3766667+00:00
Matthew Dowst 11 Reputation points
1 answer

Support for Inline Child Scripts in PowerShell 7.2 Runbooks

What is the current status of support for inline scripts in Powershell 7.2 runbooks? The current documentation lists inline scripts as "not supported", but it is unclear whether this will change or when it might change. We have several scripts…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,301 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,799 questions
asked 2024-04-16T07:32:25.3133333+00:00
Guilherme Noronha 10 Reputation points
commented 2025-02-10T14:56:52.05+00:00
Jon Smith 0 Reputation points
1 answer One of the answers was accepted by the question author.

Change toast color XML fonts and background

Your help and time are greatly appreciated! I am trying t change the background to black and fonts to Red. the original is here https://www.imab.dk/windows-10-toast-notification-script/ <?xml version="1.0"…

Microsoft Configuration Manager
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,799 questions
asked 2025-02-08T21:56:59.3633333+00:00
Belgian Malinois 441 Reputation points
commented 2025-02-10T06:45:50.2033333+00:00
AllenLiu-MSFT 47,796 Reputation points Microsoft Vendor
2 answers

How to retrieve all the users lastlogon details from entra id

Hi Q&A team, So i have been trying to retrieve all the users last logon from the microsoft entra id even i tried to retrieve with the help of KQL queries as well so did not solved my issue so please provide me detailed steps to resolve this…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,799 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,166 questions
asked 2025-02-04T10:59:06.68+00:00
Vishwa Teja Devarakonda 0 Reputation points
commented 2025-02-10T02:41:32.95+00:00
Navya 15,150 Reputation points Microsoft Vendor
2 answers

How to generate a report for the list of all enterprise application that is using a single sign on (SSO)

Please asking for your help on how to generate a report to view the list of all Enterprise applications using a single sign on authentication via in a powershell. Thank you in advance

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,006 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,623 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,799 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.
23,166 questions
asked 2025-01-30T05:02:33.4+00:00
JYLVEN TARRAJA 80 Reputation points
commented 2025-02-10T02:00:42.6566667+00:00
Harshitha Eligeti 1,455 Reputation points Microsoft Vendor
0 answers

Install-Module -Name d365fo.tools -force -verbose doesnt work in virtual machine

Hello, The command line Install-Module -Name d365fo.tools -force -verbose doent work in powershell in our virtual machine (Azure devbox). We have this error message : PackageManagement\Install-Package : Package 'PSFramework' failed to download. At…

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,332 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,799 questions
asked 2025-02-05T17:04:10.2933333+00:00
CSA - HFR HERMES 0 Reputation points
commented 2025-02-10T01:26:02.4166667+00:00
Mounika Reddy Anumandla 2,265 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Moving AD objects between OU

We are upgrading Windows 10 to 11. I am trying to automate moving workstation objects between two OU's, however the script does not catch anything. Import Active Directory module Import-Module ActiveDirectory Define Source and Target OUs $SourceOU =…

Microsoft Configuration Manager
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,799 questions
asked 2025-02-05T02:14:31.1266667+00:00
Belgian Malinois 441 Reputation points
accepted 2025-02-09T14:40:48.88+00:00
Belgian Malinois 441 Reputation points
2 answers One of the answers was accepted by the question author.

How to get all users with alias as subdomain

Hello All, We need to pull a report where users having alias as our subdomains We have around 20k users and we need to filter out them with our subdomains (15). Please suggest a quick and easy to figure it out, pulling out the entire report and checking…

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,735 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.
2,221 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,799 questions
asked 2025-01-30T20:46:33.41+00:00
Mani 376 Reputation points
accepted 2025-02-08T20:58:22.54+00:00
Mani 376 Reputation points
2 answers One of the answers was accepted by the question author.

How to get all data related to Entra ID Conditional access Policy

Hello All, How to get all data related to Entra ID Conditional access Policy I tried Get-AzureADMSConditionalAccessPolicy | FL And it has given me this output, Id : ce4c0f55-6554-47c4-9527-9429cdaa4ca8 DisplayName : MFA_Policy State …

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,799 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.
23,166 questions
asked 2025-01-21T19:42:31.05+00:00
Mani 376 Reputation points
accepted 2025-02-08T20:57:19.46+00:00
Mani 376 Reputation points
1 answer

How we can get the Subscriptions details that have defender plan enabled

I looking for the option that I can fetch the subscriptions details that defender plan enabled. Please shared the workaround if available.

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,484 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,799 questions
asked 2023-05-10T13:50:13.5533333+00:00
Prateek Rana 65 Reputation points
commented 2025-02-07T16:32:34.5233333+00:00
LaBombard, Lory 41 Reputation points
2 answers

How to fix Error Acquiring Token

I'm getting this error whenever i try to connect to Exchange online using PowerShell as Admin and I can't figure out how to fix it. Error Acquiring Token: Unknown Status: Unexpected Error: 0xffffffff80070520 Context: (pii) Tag: 0x21420087 (error code…

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,735 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,785 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,799 questions
asked 2025-01-13T15:53:39.0066667+00:00
Andrea Thiel 0 Reputation points
answered 2025-02-07T13:11:43.85+00:00
luis 0 Reputation points
1 answer

Validating inactive user list and excluding removing inactive users from AD groups

test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test…

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,623 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,799 questions
asked 2025-02-06T04:00:54.7333333+00:00
Varma 1,385 Reputation points
answered 2025-02-07T12:11:03.59+00:00
Marcin Policht 35,210 Reputation points MVP
1 answer

Unable to Assign MSI with MST to GPO Computer Configuration Using PowerShell

Is there a PowerShell method to properly assign an MST along with an MSI to GPO Computer Configuration? Does SoftwareInstallation.CreatePackage() support MST assignments via PowerShell? Is there an alternative way (like modifying registry or using…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,799 questions
Windows Training
Windows Training
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.Training: Instruction to develop new skills.
32 questions
asked 2025-02-04T03:06:47.9733333+00:00
dipeeka pise 0 Reputation points
commented 2025-02-07T11:30:21+00:00
Pradeep M 5,680 Reputation points Microsoft Vendor
1 answer

Query regarding extracting default site owners and site admins list of all SharePoint online sites in m365 tenant.

Hi Experts , I'm looking to extract the Default site owners and site admins list for every SharePoint online sites in a M365 tenant , can you please provide your suggestion and guidance of what are all the available methods/ways to extract it in detail…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,006 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,176 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,271 questions
SharePoint Workflow
SharePoint Workflow
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Workflow: An orchestrated and repeatable pattern of business activity, enabling data transformation, service provision, and information retrieval.
624 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,799 questions
asked 2025-02-07T07:11:58.06+00:00
JAGANRAJ J 0 Reputation points
answered 2025-02-07T08:28:15.0033333+00:00
CarlZhao-MSFT 45,181 Reputation points
1 answer

powershell script is not working as expect

I wanted to cancel all running or pending runs in a Logic App Standard workflow(from a custome days) But I think the below script is not working as expected. Variables $ResourceGroupName = "ResourceGroupName " $LogicAppName =…

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,623 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,799 questions
asked 2025-02-07T07:19:29.9166667+00:00
answered 2025-02-07T07:21:19.0266667+00:00
2 answers One of the answers was accepted by the question author.

Error with Get-RemoteDomain Cmdlet in PowerShell for Exchange Online

Encountering an error when trying to run the Get-RemoteDomain cmdlet: "The term 'Get-RemoteDomain' is not recognized as the name of a cmdlet." All required modules are installed since the Get-Mailbox command runs successfully. The environment…

Microsoft Exchange Online
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,735 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,799 questions
asked 2025-02-01T18:06:10.11+00:00
Slava G 20 Reputation points
accepted 2025-02-07T06:00:50.7833333+00:00
Slava G 20 Reputation points
1 answer One of the answers was accepted by the question author.

Powershell script for Microsoft Entra to reset the password in AD account user after 14 days

Please asking for your help on how to create a script in a powershell to reset the password of the AD users (Microsoft Entra) after in the 14days. Thank you in advance

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,623 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,799 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,166 questions
asked 2025-01-30T05:14:57.5566667+00:00
JYLVEN TARRAJA 80 Reputation points
commented 2025-02-07T05:05:28.1133333+00:00
JYLVEN TARRAJA 80 Reputation points
1 answer

How to generate a report via powershell,list of all Enterprise applications using a single sign on authentication

Hi, Good day Please asking on your expertise in generating a list of enterprise applications in Microsoft Entra to identify who are using the Single Sign On authentication. Thank you in advance.

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,692 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,623 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,799 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,166 questions
asked 2025-01-31T00:15:56.0166667+00:00
JYLVEN TARRAJA 80 Reputation points
commented 2025-02-07T03:52:40.06+00:00
Sandeep G-MSFT 20,701 Reputation points Microsoft Employee