2,059 questions with PowerShell-related tags

Sort by: Updated
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,619 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,748 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,168 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 questions
asked 2024-04-27T07:12:30.42+00:00
Mytoast Admin 115 Reputation points
answered 2024-04-27T12:45:45.5133333+00:00
Russell dyas 75 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,371 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 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,136 Reputation points Microsoft Employee
0 answers

Azcopy is not support in runbook

Azcopy exe I am trying to install inside in runbook but it's not detected and I don't want hybrid worker because I have to maintain it, is there any way to convert exe onto powershell module so that I can convert azcopy exe into module and add that…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 questions
asked 2024-04-26T16:16:35.2933333+00:00
Himanshuk 161 Reputation points
commented 2024-04-26T19:45:36.16+00:00
Monalla-MSFT 11,636 Reputation points
2 answers

Cannot run "Connect-AipService"

This is the error I get after runinng these commands Update-Module -Name AIPService PS /home/aggie> (Get-Module AIPService –ListAvailable).Version Major Minor Build Revision 3 0 0 1 The following error I get when I run…

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.
516 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.
932 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,878 questions
asked 2024-04-26T15:27:49.8766667+00:00
AT 0 Reputation points
answered 2024-04-26T16:57:00.66+00:00
Sina Salam 3,561 Reputation points
0 answers

Powershell from SSIS - Empty environment variable

I'm running a script in an SSIS package and I specify an account to run the package in SQL Server Agent. When it runs, I am unable to get the value of $ENV:LOCALAPPDATA Here's my code along with writing out the LOCALAPPDATA value Start-Transcript…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,715 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,453 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 questions
asked 2024-04-26T14:36:22.63+00:00
HSB 25 Reputation points
1 answer

Permissions assigned with Grant-PnPAzureADAppSitePermission on a site do not work with custom or non-inherited security.

Good afternoon. When you create the document library and leave it securely inheriting from the main site and allowing you to create folders and files without problems with Add-PnPFolder and Add-PnPFile. But I disinherited the document library permissions…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,628 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,878 questions
asked 2024-04-25T22:52:10.33+00:00
Jairo Javier Baleta Cali 106 Reputation points
commented 2024-04-26T12:17:09.46+00:00
Jairo Javier Baleta Cali 106 Reputation points
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,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,059 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,571 Reputation points
0 answers

Is it possible to have a Power Automate Flow create a onedrive sync of a specific folder? Or PowerShell script?

Is it possible to create a Power Automate Flow to do the following: Click a button Power Automate form appears Form requests a name of a folder from the user. User enters an existing folder name in a SharePoint Online Library. OneDrive Opens if not…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,628 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 questions
asked 2024-04-25T18:07:58.09+00:00
Rohman, William T 0 Reputation points
edited a comment 2024-04-26T11:11:38.33+00:00
Shawn Collins 420 Reputation points
1 answer

Are there any beginner-friendly tutorials or resources for getting started with Microsoft products like Azure, Office 365, or Power BI?

my name is virat i work at Rebolt Alloys is there any beginner-friendly tutorials or resources for getting started with Microsoft products like Azure, Office 365, or Power BI?

Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
948 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 questions
Office 365 Training
Office 365 Training
Office 365: A set of Microsoft legacy offerings that combine Office desktop apps with cloud services including OneDrive and Microsoft Teams.Training: Instruction to develop new skills.
15 questions
asked 2024-04-26T10:27:05.8033333+00:00
Rebolt Alloys 0 Reputation points
answered 2024-04-26T11:08:33.23+00:00
Marcin Policht 10,675 Reputation points MVP
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,628 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 questions
asked 2024-04-26T11:01:45.6466667+00:00
Ron Schalker 0 Reputation points
2 answers

Create a retention policy in Exchange Online using PowerShell

How can I use PowerShell to create a retention policy that deletes emails older than two weeks for a specific account in Exchange Online? I want to ensure that only the intended account is affected by the policy. Additionally, how can I verify that the…

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,177 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 questions
asked 2024-04-09T08:24:49.0666667+00:00
Marcus Tagtstrom 0 Reputation points
commented 2024-04-26T10:46:57.9066667+00:00
Andy David - MVP 141.6K Reputation points MVP
2 answers

Windows Powershell and Visual Studio Running Extremely Slow

Hello, I work as an IT support engineer for my company and a user reached out to me saying that they have been experiencing issues with their VS code and Powershell commands running very slow. I recreated the same environment on my laptop, and I had the…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,608 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,364 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 questions
asked 2024-04-24T19:29:34.0733333+00:00
Daniel Bulakh 10 Reputation points
commented 2024-04-26T07:20:24.22+00:00
Tianyu Sun-MSFT 27,271 Reputation points Microsoft Vendor
1 answer

Does Dsregcmd \leave uneroll Win 11 device from intune??

Hi experts We have a Windows 11 device which is Hybrid joined as well as Co-Managed. We want to remove the device from the Intune. We are running the DSREGCMD /Leave command to unjoin the from hybrid. after this the device object is deleted from the…

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,168 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,336 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 questions
asked 2024-04-25T08:57:41.8933333+00:00
Anant Bera 86 Reputation points
commented 2024-04-26T05:50:48.0033333+00:00
Yanhong Liu 1,780 Reputation points Microsoft Vendor
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,789 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,303 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,592 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 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 10,675 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,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,059 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,113 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 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,619 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 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,628 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.
932 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 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

Update snapshot Property by using Azure Automation account

Hello, I have a Backup vault that takes snapshot for OS disks and shared disks everyday, during 14 days. When checking the snapshot file, the network setting is enabled public access from all network. Because there are a lot of snapshot file that I need…

Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,126 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,113 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,059 questions
asked 2024-04-23T14:49:55.79+00:00
Hanh Trinh 41 Reputation points
commented 2024-04-25T04:17:23.61+00:00
Hanh Trinh 41 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,059 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