2,552 questions with PowerShell-related tags

Sort by: Updated
0 answers

Setting PIN Complexity through a BAT script

Hello my company does not own an AD, so when we configure new workstations, we've got to set Group Policies manually, I've been working on a script to automate the task, but I am stuck with setting my pin complexity settings in my script. reg add…

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.
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,552 questions
asked 2024-10-18T07:16:01.4633333+00:00
Michał Korczyński 0 Reputation points
commented 2024-10-19T14:16:48.6866667+00:00
MotoX80 33,996 Reputation points
1 answer

How to search all folders in OneDrive for PDF containing a word?

I need help with listing full pathname of PDF files containing a word. Get-ChildItem -Path C:\Users\Me -Include *.pdf -File -Recurse -ErrorAction SilentlyContinue | Select-String -pattern “Tax” | group path | select name | Out-File -FilePath…

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,128 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
asked 2024-10-17T14:46:51.6833333+00:00
Sunny PA Wong 1 Reputation point
answered 2024-10-19T13:12:41.5433333+00:00
MotoX80 33,996 Reputation points
1 answer

How to find when rule was created in Office 365 Outlook

One of my clients email was compromised and a rule was created. Want to find out where the user was located when accessing the account and when the rule was created.

Outlook
Outlook
A family of Microsoft email and calendar products.
3,901 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
asked 2024-04-17T17:23:05.5966667+00:00
Michael Smith 0 Reputation points
commented 2024-10-19T06:13:40.43+00:00
Kevin M. Covert 0 Reputation points
1 answer

Running Powershell Scripts Across Tenants using Az Automation and System-Assigned Managed Identity

I have some Exchange Online PS scripts that I'm running in my own tenant using system-assigned managed identity to avoid interactive and certificate based sign in. Is it possible to run those scripts in another tenant? Say, for example, a customer wants…

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,542 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,904 questions
asked 2024-10-15T07:08:00.6533333+00:00
ash7f 0 Reputation points
commented 2024-10-19T06:13:05.96+00:00
Navya 11,225 Reputation points Microsoft Vendor
0 answers

How can I Uninstall MS SARA for Enterprise via PowerShell?

Hello, I am looking for a way to uninstall MS SARA for Enterprise via PowerShell. I have looked at the SARA for Enterprise documentation, and it does not give any guidance on this matter. Note: I am an IT Technician trying to automate our PC build…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
asked 2024-10-18T19:28:45.5266667+00:00
Joshua Larson 0 Reputation points
1 answer One of the answers was accepted by the question author.

Extraction of IAM roles in Azure via script

Hello All, is there a way to get all Azure IAM role assignment with also the details of the groups? I explain better: if I go to the Azure portal and click download role assignment I get a list of users and groups with the pertaining role. I would like…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
Microsoft Entra
asked 2024-10-17T13:07:02.9233333+00:00
Tristano,G,Giuseppe,JBP12 R 91 Reputation points
edited the question 2024-10-18T18:34:08.8833333+00:00
VenkateshDodda-MSFT 21,226 Reputation points Microsoft Employee
0 answers

How to generate a working SAS token for Azure Blob Storage via Powershell 5.1 native code.

Despite following the documentation found here: https://learn.microsoft.com/en-us/rest/api/storageservices/create-account-sas, I am unable to generate a working account SAS token for use with Azure Blob Storage. Particularly, one which authorizes writing…

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,876 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
asked 2024-10-14T16:36:55.7866667+00:00
Kevin Swarner 0 Reputation points
commented 2024-10-18T17:31:31.03+00:00
Keshavulu Dasari 765 Reputation points Microsoft Vendor
1 answer

Unable to fetch disabled users across subscriptions

Hello Team, I'm trying to get list of disabled users across all subscriptions under our tenant. But when I run the below script it is not fetching the data instead loading VS code. If I run Get-disabled users command it is giving the list of disabled…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,250 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,537 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
asked 2024-10-18T06:54:27.2733333+00:00
Mahadev, Rakesh [HAEA] 140 Reputation points
commented 2024-10-18T17:15:56.66+00:00
Mahadev, Rakesh [HAEA] 140 Reputation points
1 answer

Unauthorized when using Add-DistributionGroupMember to add user to Exchange managed Distribution

I followed the steps in this article https://learn.microsoft.com/en-us/powershell/exchange/connect-exo-powershell-managed-identity?view=exchange-ps&WT.mc_id=M365-MVP-9501 to use my Azure Automation System managed identity to connect to ExchangeOnline…

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,542 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,904 questions
asked 2024-10-17T17:37:22.63+00:00
Shawn Imholte 20 Reputation points
commented 2024-10-18T15:39:58.6233333+00:00
Shawn Imholte 20 Reputation points
1 answer

Add extra authetication methods in Entra

Hi , In Entra , if i filter for a user -->Authentication method , i can see the user is capable with 2 authntication methods . I use Powershell to filter , since Entra won't show which is availble . ExtensionData …

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,904 questions
asked 2024-10-09T13:45:55.8033333+00:00
Sharon01 61 Reputation points
commented 2024-10-18T15:13:21.0033333+00:00
Raja Pothuraju 6,825 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

I need help with PowerShell script to disable search indexing on a list of sites and subsites.

I have cobbled together this script to disable search indexing of sites listed in the sites.txt file, but I'm having trouble figuring out how to apply the same change to all subsites under the sites.txt list. Any PowerShell SMEs who are familiar with…

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,616 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
asked 2024-10-17T17:33:42.5033333+00:00
Vincent Collogan 46 Reputation points
commented 2024-10-18T15:10:01.8633333+00:00
Vincent Collogan 46 Reputation points
0 answers

/powercfg Module to sum up all the Power consumption (Battery and AC)

powercfg /spr /output "c:\sleepy.xml" /xml /duration 1 Is there a better way to collect all the used Powerinformation and sum the mW number? My Goal is to collect the total Powerconsumption (Battery and AC Usage) in total. The reason behind it…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,642 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,724 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
asked 2024-10-18T13:24:09.7533333+00:00
Guenes, Abdurrahman 5 Reputation points
1 answer

Not able to create Virtual Network Rule for MySQL flexible server using powershell code

Hello Team , Actually we have IAC infracture to deploy MYSQL DBaaS services. However the existing terraform modules now has been depreciated and we are trying to upgrade the latest terraform module to deploy the same. Now the issue is:- In the existing…

Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
836 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
asked 2024-10-17T14:44:27.3533333+00:00
MONDALABDULKADIR-7547 25 Reputation points
edited a comment 2024-10-18T12:49:54.77+00:00
MONDALABDULKADIR-7547 25 Reputation points
3 answers

Connect-PnPOnline : The term 'Connect-PnPOnline' is not recognized as the name of a cmdlet. Cant get around this

Hi All i have been going over this for the last few days but i cant get PnP.PowerShell to work on my SharePoint site. BTW: i am the owner and administrator of the SP site. I can install PnP.PowerShell (as an administrator) but when i …

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,007 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
asked 2024-10-14T03:10:46.93+00:00
Dave Dave 0 Reputation points
commented 2024-10-18T06:35:30.2033333+00:00
Xyza Xue_MSFT 24,901 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Is there any way to scale up the azure webapp vertically (change app service plan) automatically?

Is there a way to automatically scale up an Azure Web App vertically (by changing the App Service Plan)? Has this functionality been completely removed by Azure? I attempted to use an Azure Automation Account with a PowerShell Runbook, but encountered…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
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,552 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,807 questions
asked 2024-10-18T04:35:37.13+00:00
Rahul Kamble 20 Reputation points
accepted 2024-10-18T05:34:01.9866667+00:00
Rahul Kamble 20 Reputation points
3 answers

Storage Spaces can't remove disk

W10. Storage pool composed of four drives. I had two drives get degraded, in my storage pool, and had to replace them. The dead drives are now marked as "retired" , and has been physically removed, but I can't actually remove them from the…

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.
5,427 questions
Windows Server Storage
Windows Server Storage
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Storage: The hardware and software system used to retain data for subsequent retrieval.
651 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
asked 2024-10-12T02:52:13.3533333+00:00
Matt R 0 Reputation points
answered 2024-10-18T04:08:31.6966667+00:00
Matt R 0 Reputation points
1 answer

How to fix the following error

Following a lab from Cyberinsight for creating private dns zone which has been created and it showing in virtual network links. Next step is to create a virtual machine to test the configuration, but I'm getting this error, " New-AzResourceGroup: A…

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
679 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,930 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
GitHub Training
GitHub Training
GitHub: A web-based hosting service for software development and version control using Git. Acquired by Microsoft in 2018.Training: Instruction to develop new skills.
45 questions
asked 2024-10-12T12:45:44.52+00:00
Deverick Durham 0 Reputation points
commented 2024-10-18T02:42:34.4966667+00:00
Rich Matheisen 46,796 Reputation points
2 answers

How to export Distribution List & its nested Distribution Lists' members to CSV file

Hello, We want to export all members of one large distribution list and its nested distribution lists. How can we do that? Regards, Raj

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,542 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,640 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,112 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
asked 2024-10-17T15:31:33.21+00:00
raj a 316 Reputation points
edited the question 2024-10-18T02:42:01.4966667+00:00
Xintao Qiao-MSFT 3,450 Reputation points Microsoft Vendor
1 answer

Custom Scheduling Intervals for Intune Proactive Remediation

Hi everyone, I’ve been using Intune’s proactive remediation feature and noticed that the scheduling options are limited to intervals like once an hour. However, I need more granular control, such as scheduling tasks to run every minute or every two…

Microsoft Intune Reporting
Microsoft Intune Reporting
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Reporting: The process of giving an account of something that has been observed, heard, done, or investigated.
67 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,110 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
asked 2024-10-17T11:05:58.9733333+00:00
Swahela Mulla 95 Reputation points
answered 2024-10-18T01:45:39.8166667+00:00
Crystal-MSFT 48,931 Reputation points Microsoft Vendor
0 answers

How to enable cloud kerberos via powershell

I am looking for the proper scripts to install cloud kerberos to use for WHFB in a Hybrid environment. I have found a few but none are the same. Also are there any security impacts to do this for already established on prem certs or…

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,110 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,904 questions
asked 2024-10-17T01:19:44.56+00:00
Michael Steszewski 20 Reputation points
commented 2024-10-18T01:08:18.14+00:00
Xenia-MSFT 2,350 Reputation points Microsoft Vendor