2,331 questions with PowerShell-related tags

Sort by: Updated
1 answer

i need help to delete the additional root folders i created

Hello. so i made the big mistakes of creating root folders and files and i need help to delete them so basically i was trying to code a node and java file and i didnt thought of what permissions im giving to the VS code and about 1 or 2 hours later i…

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,996 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,331 questions
asked 2024-07-19T11:00:57.8933333+00:00
Gogol King 0 Reputation points
commented 2024-07-27T20:54:37.67+00:00
MotoX80 32,911 Reputation points
0 answers

How to resolve 'patchSettings' error when creating new Linux VM with PowerShell script and JSON template?

I am attempting to deploy a new Linux VM using a PowerShell script and JSON template, but I am encountering an error related to the 'LinuxConfiguration' object and the 'patchSettings' parameter. Specifically, I want to ensure that 'patchMode' is set to…

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,594 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,331 questions
asked 2024-07-27T20:52:00.45+00:00
Harsh Jivani 0 Reputation points
2 answers

Help with PowerShell - remove an attribute value if a user is not in all 4 groups

Hi, I am hoping to get some suggestions on how to do this. There are 4 defined groups. I need to get a list of AD users that have adminCount = 1 Then I need to compare. If a user is not in all 4 groups (not just 1 group), then remove the adminCount. This…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,331 questions
asked 2024-07-19T22:26:40.6633333+00:00
M Tran 486 Reputation points
commented 2024-07-27T20:04:43.6966667+00:00
Rich Matheisen 45,906 Reputation points
0 answers

how to fix engine state is changed from avaible to stop windows powershell

how to fix event viewer powershell engine state is changed

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,200 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,331 questions
asked 2024-07-27T18:36:20.03+00:00
kevin smith 0 Reputation points
1 answer

Restore a SQL Server backup to Azure SQL Managed Instance

What is the best way to restore an SQL Server backup file (.bak) from a storage container to Azure SQL Managed Instance, and overwrite the existing database with the backup? I am looking for the appropriate PowerShell Az command to accomplish this task.…

Azure SQL Database
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,331 questions
asked 2024-01-27T08:11:08.8433333+00:00
PS 396 Reputation points
commented 2024-07-27T10:36:01.3433333+00:00
Vinodh247 13,801 Reputation points
3 answers

Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.

Can someone tell me why the following powershell code no longer works with newer MSBuild 17 (It works fine with MSBuild 15) $retVal = Add-Type -Path "C:\Program Files\Microsoft Visual…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,888 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,803 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,331 questions
asked 2023-06-09T13:52:16.9066667+00:00
flagrant99 21 Reputation points
commented 2024-07-27T09:18:44.31+00:00
Wasiqul Islam 0 Reputation points
0 answers

Mount-WindowsImage error: access denied

I extracted install.wim from Win11_23H2_English_x64v2.iso to C:\TEMP, and tried to run the following command (in an elevated Terminal window): PS C:\TEMP> Mount-WindowsImage -ImagePath c:\temp\install.wim -Path c:\temp\mount -index 4…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,331 questions
asked 2024-07-27T03:59:49.0433333+00:00
Neo 421 Reputation points
1 answer

Experiencing memory issues when connecting to Exchange Online Management using C#

I am experiencing memory issues when connecting to Exchange Online Management using C#. The process involves executing commands such as Get-User, Get-DistributionGroupMember, Add-DistributionGroupMember, and Remove-DistributionGroupMember. After each…

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,652 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,388 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,331 questions
asked 2024-07-26T03:59:40.6233333+00:00
Vishali Gupta 0 Reputation points
commented 2024-07-26T17:19:32.6966667+00:00
Vishali Gupta 0 Reputation points
4 answers

PowerShell - I am unable to find the help file to update the powershell help (Version: 5.1.2)

Good afternoon, Please can you help me find (or provide) Powershell help update file for complete help locally by running 'update-help' command. Powershell version: 5.1.2 Thanks & regards.

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,463 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,331 questions
asked 2024-07-25T11:58:49.06+00:00
Sameer Mirza 0 Reputation points
commented 2024-07-26T15:20:28.58+00:00
Rich Matheisen 45,906 Reputation points
1 answer

Not able to publish .net 8 files to Azure Linux Function app using Publish-AzWebApp command from powershell.

I am trying to deploy .net 8 published files to Linux Azure function app from Linux using Publish-AzWebApp. Deployment is not giving any error but files are not getting deployed. The same working for Windiows function app. Could you please help!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,681 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,331 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,408 questions
asked 2024-07-25T15:22:12.8333333+00:00
Aditya Parcha 0 Reputation points
answered 2024-07-26T11:13:08.74+00:00
Pinaki Ghatak 3,265 Reputation points Microsoft Employee
1 answer

Automating Deployment and Configuration of Azure Storage Account with NFS V3.0 Using PowerShell and Integration with a Linux Server Outside Azure

As the maximum disk size provided by Azure is 32TB, it is not enough for some storage needs. We can create a new storage account and enable NFS V3.0 during creation. However, mounting it to an external (out of Azure) Linux server adds complexity. How can…

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,944 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,331 questions
asked 2024-07-22T07:11:07.2133333+00:00
KindCompute-6524 85 Reputation points
commented 2024-07-26T06:50:02.4466667+00:00
Amrinder Singh 4,910 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

Alternative option to upload images without Enabling Allow storage account key access for storage account

I've been utilizing a PowerShell script to upload images to our Azure storage account. However, after enhancing our security measures by disabling the Allow storage access key, I encountered the following issue. i am looking for the alternative for…

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,944 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,331 questions
asked 2024-07-25T06:24:21.74+00:00
Galipelly Rajashekar (Quadrant Resource LLC) 40 Reputation points Microsoft Vendor
answered 2024-07-26T06:02:44.75+00:00
Nehruji R 4,766 Reputation points Microsoft Vendor
4 answers

Wie behebe ich Code 0x8031005a?

Ich habe die Win 11 23H2-Version . Ein Geräteschlüssel ist nicht hinterlegt. Beim Versuch einen solchen selbst zu generieren, wird mir die Meldung angezeigt, daß die PowerShell -Version nicht aktuell ist. Ein Versuch mit folgender Eingabe schlägt…

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,996 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,331 questions
asked 2024-07-14T14:44:58.38+00:00
Dr. Detlef Briese 0 Reputation points
answered 2024-07-26T03:10:26.0733333+00:00
Hania Lian 11,126 Reputation points Microsoft Vendor
2 answers

Powershell check user in group and then add if not a member

Hi, The script below keeps dropping into the 'Automation has failed...' else statement once a user has been added into a security group. I can see that the user has been added but need the additional check to write the output as these outputs are being…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,331 questions
asked 2023-01-24T14:35:09.9866667+00:00
Watts, Steven 0 Reputation points
commented 2024-07-25T20:16:28.97+00:00
Jesse Boan 0 Reputation points
0 answers

How can I get/update the DataSource linked to a SSRS Subscripton via API 2.0?

I have a subscription that has its data source connection severed every time I update the source report (the subscription is on a linked report). I want to get the DataSource so that I can verify it exists and then reassociate it to the subscription. If…

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,878 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,331 questions
asked 2024-07-25T18:38:09.8266667+00:00
Kalata, Wesley 0 Reputation points
1 answer

How to fix Unexpected character encountered while parsing value: <. Path '', line 0, position 0. when connecting to Exchange Online via powershell

I am running the latest exchange online management module version 3.5.1 and have powershellget 2.2.5 and packagemanagement 1.4.8.1 installed. When I run the Connect-ExchangeOnline cmdlet I get the following error message:

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,388 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,331 questions
asked 2024-07-19T02:55:55.5166667+00:00
YM 0 Reputation points
commented 2024-07-25T14:41:38.1033333+00:00
Tom W 0 Reputation points
2 answers

Disk is not visible in portal

Hello Everyone. I am trying to add one OS disk as data disk into my vm using powershell. I am able to update the vm. after this it is not showing in portal. are we need to add manually. I want to reduce this efforts as well. I really appreciate for…

Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
603 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,331 questions
asked 2024-07-20T13:15:23.9733333+00:00
Mohsin Khan 45 Reputation points
commented 2024-07-25T14:08:31.7633333+00:00
Nehruji R 4,766 Reputation points Microsoft Vendor
3 answers

Using PowerShell, can I list all members, visitors, and guests of a SharePoint site?

Can someone help me with a PowerShell script that can list all members, visitors, and guests of a particular SharePoint site? Would this need to be done in more than one command?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,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,331 questions
asked 2023-06-19T21:05:20.99+00:00
Bailey, John 0 Reputation points
commented 2024-07-25T13:29:55.38+00:00
Alvaro Avila 0 Reputation points
0 answers

Connect-ExchangeOnline in Azure Automation account gives Unable to find type (EXO 3.5.1 PS7.2)

I have setup an Azure Automation account and loaded the EXO 3.5.1 module along with PackageManagement V1.4.8.1 and PowerShellGet v2.2.5. I open a new PowerShell runbook and just posted a Connect-ExchangeOnline -ManagedIdentity - Organisation…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,196 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,331 questions
asked 2024-07-25T10:20:56.2033333+00:00
Craig Tucker 20 Reputation points
1 answer

Can we use Certificate based Authentication for connecting to On Prem SQL Server?

Hi Experts, We use a PowerShell command to connect to the SQL Server by creating a connection string. In the PowerShell script, we have to encode the username and password for creating the connection string and passing it to the SQL Server. The SQL…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,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,331 questions
asked 2024-07-25T04:14:39.7933333+00:00
Anant Bera 131 Reputation points
edited a comment 2024-07-25T10:10:20.4033333+00:00
MikeyQiaoMSFT-0444 1,925 Reputation points