2,082 questions with PowerShell-related tags

Sort by: Updated
1 answer

how to fix this error : Method invocation failed because | [Deserialized.Microsoft.IIs.PowerShell.Framework.ConfigurationElement#bindings#binding] does not contain a | method named 'AddSslCertificate'.

Hello, I'm trying to automate the creation of the SSL certificate in the iis server i wrote a powershell that do this but i m getting this error : Line | 1 | Import-Module -Name WebAdministration -Force -SkipEditionCheck | …

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,173 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,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,082 questions
asked 2024-04-17T15:12:53.5433333+00:00
EL MEDIOUNI Sohaib 0 Reputation points
edited a comment 2024-04-29T01:55:21.0166667+00:00
Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,971 Reputation points Microsoft Vendor
1 answer

How to schedule a script and setup email notification via Task scheduler or any other way?

How to schedule a script and setup email notification via Task scheduler or any other way? As I have gone through some blogs and online links but its shows traditional ways and seems "Email Send" option is deprecated in Task Scheduler. See…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,664 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,770 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,230 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2024-04-27T07:12:30.42+00:00
Mytoast Admin 115 Reputation points
commented 2024-04-28T06:03:06.62+00:00
Mytoast Admin 115 Reputation points
2 answers

How to test a synapse link service from a powershell script?

How to test a synapse link service from a powershell script?

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,396 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2024-04-18T19:05:59.8166667+00:00
Jean-Francois Roger ADM 0 Reputation points
commented 2024-04-26T20:23:19.63+00:00
BhargavaGunnam-MSFT 26,306 Reputation points Microsoft Employee
1 answer

Task scheduler cannot run script, works with the same user directly over powershell

Hello Everyone I am trying to run a Scheduled task, that should run a powershell script every evening. Even though I can run the script with the SYSTEM-USER without any issues, it does not work when I try to run over task scheduler. The script does not…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,173 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2024-04-26T10:56:48.9433333+00:00
Bühler Gabriel 71 Reputation points
answered 2024-04-26T11:51:56.53+00:00
MotoX80 31,826 Reputation points
0 answers

After applying a pnp site template to a SharePoint site, the homepage content is aligned in the center of the page

Using Invoke-PnpSiteTemplate to apply a template to a site causes the homepage content to be aligned in the center of the page. How can I avoid this? I want the content to be aligned to the left.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,686 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2024-04-26T11:01:45.6466667+00:00
Ron Schalker 0 Reputation points
2 answers

Powershell new user issue

Hello. I am currently trying to learn the basics of using Powershell with Office365 and one of those is creating a new user. I enter the below code as a test: new-msoluser -UserPrincipalName "HYang@mirador.com" -DisplayName "Harp Yan"…

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.
3,834 questions
Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,317 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,650 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2024-04-25T19:29:22.9933333+00:00
Kareem 85 Reputation points
commented 2024-04-25T21:20:56.54+00:00
Marcin Policht 11,385 Reputation points MVP
1 answer One of the answers was accepted by the question author.

How to find user's Downloads folder in PowerShell?

There are a number of posts on the web saying to effectively concatenate the expansion of %USERPROFILE% and "\Downloads" to locate the Downloads special folder. That is horribly broken because a) it's not localized, and b) users can change 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.
4,770 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2024-01-19T06:25:17.52+00:00
Mark Moore 21 Reputation points
accepted 2024-04-25T18:03:09.64+00:00
Mark Moore 21 Reputation points
0 answers

How to load assembly path in the new runtime experience in Automation Accounts' runbooks?

We have a runbook that we use to log to Application Insights. We use it for making logs both from Azure and Hybrid workers. In hybrid workers the logging works correctly, but in Azure it fails with Cannot find type…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,126 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2024-04-25T10:08:10.14+00:00
Alibek Cholponbaev 20 Reputation points
1 answer One of the answers was accepted by the question author.

no license file found for appx bundle

I am trying to install appxbundle, the drivers are installed correctly. But during the appxbundle installation it is throwing the above error.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,664 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2024-04-25T05:24:50.09+00:00
Negi, Nileesh - Dell Team 20 Reputation points
accepted 2024-04-25T09:31:13.2933333+00:00
Negi, Nileesh - Dell Team 20 Reputation points
2 answers

Using Powershell is there a way to find if a SharePoint Online site has a retention policy applied to it.

I am working on an automation and have found the option to exclude a SharePoint site from a compliance retention policy What I am looking for is to create a loop to check if the site has had the retention policy removed. So really just a cmdlet that…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,686 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.
943 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2024-04-22T14:15:57.3933333+00:00
Paul Wright 0 Reputation points
commented 2024-04-25T06:41:45.4533333+00:00
Paul Wright 0 Reputation points
0 answers

Get all the windows update and put in to the ciminstance

I have to get all windows update to put inside ciminstance, i already try using this script $wmiCustomNamespace = "Get_Update_SCDA" $wmiCustomClass = "W32_Updates" $classExists = Get-CimClass -Namespace root\$wmiCustomNamespace…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2024-04-25T03:09:13.66+00:00
NAUFAL SAIDHUS SYUHUR 0 Reputation points
edited the question 2024-04-25T03:31:40.6233333+00:00
NAUFAL SAIDHUS SYUHUR 0 Reputation points
1 answer

Issue adding new owner to Outlook shared calendar

Trying to add a new owner to a shared mailbox as the option is not longer available in Outlook application. Using PowerShell command Add-MailboxFolderPermission -Identity sourceuser.ac.uk:\calendar\ma_test -User destinationuser.ac.uk -AccessRights…

Outlook
Outlook
A family of Microsoft email and calendar products.
3,010 questions
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,193 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2024-04-19T16:04:11.3566667+00:00
Mario Cleovoulou 0 Reputation points
commented 2024-04-25T02:42:30.6233333+00:00
Jake Zhang-MSFT 1,235 Reputation points Microsoft Vendor
1 answer

How to Correctly Find the Downloads Folder in PowerShell?

There are a number of posts on the web effectively saying to concatenate %UserProfile% and "Downloads" in order to find the path to the Downloads special folder. That is just wrong because a) "Downloads" is not localized, and b)…

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,770 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2024-01-19T04:44:10.4933333+00:00
Mark Moore 21 Reputation points
commented 2024-04-25T00:11:18.47+00:00
Kenneth Kasajian 0 Reputation points
1 answer One of the answers was accepted by the question author.

Powershell script needed

closed.....

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2024-04-24T16:35:23.0566667+00:00
Ibrahim AlHusari 151 Reputation points
edited the question 2024-04-24T19:49:20.7666667+00:00
Ibrahim AlHusari 151 Reputation points
1 answer

Automating the Client Secrets rotation using KeyVault or any methods before the expiry date?

I need to rotate the Client Secrets in my existing subscriptions before the expiry date. How can I achieve it for multiple subscriptions when using the suggested method ttps://learn.microsoft.com/en-us/azure/key-vault/secrets/tutorial-rotation? Can I…

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,126 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,300 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,650 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,561 questions
asked 2024-04-16T03:27:13.7333333+00:00
EnterpriseArchitect 4,761 Reputation points
commented 2024-04-24T12:55:18.87+00:00
EnterpriseArchitect 4,761 Reputation points
1 answer One of the answers was accepted by the question author.

How to unenroll windows device from Intune using PowerShell?

Hello Experts, We have looking for some PowerShell script or command to unenroll the Windows device from Intune without user interaction. We are trying to enroll the device using the graph api query. we have deleted the device object from the managed…

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,365 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2024-04-24T05:29:28.9233333+00:00
Anant Bera 86 Reputation points
accepted 2024-04-24T07:23:38.2666667+00:00
Anant Bera 86 Reputation points
1 answer One of the answers was accepted by the question author.

Azure CLI ERROR when add extensions: An error occurred. Pip failed with status code 1

Hi everyone I'm trying to add extensions in Azure CLI with the command: az extension add --name subscription however I get the following message: An error occurred. Pip failed with status code 1. Use --debug for more information. Here the debug…

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,574 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
323 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2023-12-01T05:55:00.18+00:00
Carlos Ochoa Medrano 30 Reputation points
edited a comment 2024-04-24T06:50:16.6833333+00:00
Joanna Wójtowicz 0 Reputation points
0 answers

Partner center - automation to add security group to relationships

Hello, I would like to automate the ways we onboard our customer in partner center. When one of our customer accept the request, we are adding some security groups in the relationships with different Entra delegated roles (Under the tab "admin…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2024-04-23T11:27:47.88+00:00
Jérôme 90 Reputation points
edited the question 2024-04-24T01:44:37.5266667+00:00
Junjie Zhu - MSFT 15,056 Reputation points Microsoft Vendor
2 answers

Powershell - Enable Bitlocker & Create recovery txt file output network directory

Hello, I have been searching to try and find a PowerShell set of commands or script to enable bit locker on remote machine and save the text recovery file to a UNC network path. I do not want to lock requiring pin or text to start the PC; just to save…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2023-02-06T16:21:23.6666667+00:00
Joshua Tyo 0 Reputation points
commented 2024-04-23T18:48:51.2633333+00:00
DonH 0 Reputation points
2 answers

Powershell error while connecting with exchange

Hi Team, Good day. Getting error "Content within this application coming from the website listed below is being blocked by Internet Explorer Enhanced Security Configuration." while running (connect -exchangeonline) command in…

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,082 questions
asked 2024-04-17T00:26:27.7733333+00:00
Syed Bukhari 0 Reputation points
commented 2024-04-23T09:02:37.96+00:00
Bruce Jing-MSFT 690 Reputation points Microsoft Vendor