2,337 questions with PowerShell-related tags

Sort by: Updated
0 answers

New-MgBetaSecurityAuditLogQuery giving 403 error for Azure App

I'm looking to use the New-MgBetaSecurityAuditLogQuery command to query Exchange mailbox access via an Azure Application, with the required permission granted: AuditLogsQuery.Read.All I setup the command with the following params: $SearchParameters = @{ …

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,963 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,456 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,389 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,337 questions
Microsoft Entra
asked 2024-07-29T13:18:29.45+00:00
DPFY 116 Reputation points
2 answers

Collecting Outlook Version Information Programmatically Using PowerShell and Gathering User Data from Intune or SCCM

Hello Microsoft Forum Community,   I hope you're all doing well. I have a couple of questions regarding Outlook and PowerShell, and I was hoping someone could provide some guidance. Question 1: Collecting Outlook Version Information Programmatically…

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.
4,379 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,484 questions
Outlook
Outlook
A family of Microsoft email and calendar products.
3,432 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,075 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,337 questions
asked 2023-10-05T06:22:20.79+00:00
Swahela Mulla 90 Reputation points
edited an answer 2024-07-29T12:59:19.4233333+00:00
Micha Gerkema 5 Reputation points
0 answers

Powershell/CMD Exit Code 3221225794

We have an file transfer automation application where it can run different applications if needed i.e. WinSCP, PSFTP.exe (Putty), Winzip, etc. We use a lot Powershell in some of the file transfer processes. We have one new file transfer process that…

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,438 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,337 questions
asked 2024-01-09T17:25:42.2466667+00:00
Shelley Ford 1 Reputation point
edited a comment 2024-07-29T11:59:42.6466667+00:00
MotoX80 32,986 Reputation points
0 answers

code Backup.ps1 is not opening a file in code editor

code Backup.ps1 is not opening a file in code editor

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,337 questions
asked 2024-07-29T11:05:40.8166667+00:00
Ayaz Shahid 0 Reputation points
0 answers

code Backup.ps1 is not opening a file in code editor

code Backup.ps1 is not opening a file in code editor. I have already made sure that the file is available using the ls command. When I am typing code Backup.ps1, nothing is happening.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,337 questions
Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,325 questions
asked 2024-07-29T11:04:36.18+00:00
Ayaz Shahid 0 Reputation points
0 answers

How do I use the PowerShell command New-ComplianceSearchAction -Export to export search results to specified location and then download them locally?

We need to do a compliance project. We want to export the search results to a specific location through PowerShell, and then download them locally. How do I use the PowerShell command New-ComplianceSearchAction -Export to export search results to…

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,464 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,337 questions
asked 2024-07-29T08:40:09.85+00:00
Howard Ching 0 Reputation points
1 answer

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,198 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,337 questions
asked 2024-07-25T10:20:56.2033333+00:00
Craig Tucker 20 Reputation points
answered 2024-07-29T08:21:33.1166667+00:00
JAKUBEC Ludovic (Wakers) 0 Reputation points
0 answers

After 1/2 year API 403 error

I have a PowerShell script that runs daily and creates a folder in the employee contact lists via token (request) and writes the company's contacts in it so that everyone has them on their cell phone. The next day, this folder is deleted and the contacts…

Outlook
Outlook
A family of Microsoft email and calendar products.
3,432 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,456 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,337 questions
asked 2024-05-28T12:31:31.4833333+00:00
Bonagura Marcello 5 Reputation points
commented 2024-07-29T05:54:44.3733333+00:00
Bonagura Marcello 5 Reputation points
0 answers

How to execute password rotation for non-admin users of a VM using Azure Key Vault and Azure Automation Account?

I want to set up automated password rotation for my VM using Azure Key Vault and Azure Automation Account. I have used this article: https://www.advatek.co.uk/blog/enhancing-security-with-azure-key-vault-automated-password-rotation as a guide to do this.…

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,199 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,198 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,337 questions
asked 2024-07-29T02:24:27.9666667+00:00
Syed Harith Zaki 25 Reputation points
1 answer

How to access/modify which switches/ethernets apply to a given Network Bridge via Powershell?

I am trying to find out how to access/modify which switches/ethernets apply to a given Network Bridge via powershell.Screenshot (2).png FYI, I'm running windows 10 and have multiple website vm's on hyper-v that are routed through a reverse proxy vm. The…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,337 questions
asked 2024-07-28T02:01:02.9066667+00:00
hippocalypse 0 Reputation points
answered 2024-07-28T15:48:51.3833333+00:00
Rich Matheisen 45,906 Reputation points
1 answer

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,590 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,337 questions
asked 2024-07-27T20:52:00.45+00:00
Harsh Jivani 0 Reputation points
answered 2024-07-28T15:32:22.6166667+00:00
Sina Salam 7,441 Reputation points
2 answers

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.
9,011 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,337 questions
asked 2024-07-19T11:00:57.8933333+00:00
Gogol King 0 Reputation points
answered 2024-07-27T20:54:37.67+00:00
MotoX80 32,986 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,337 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,208 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,337 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,337 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,886 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,894 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,819 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,337 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,337 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,656 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,389 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,337 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,464 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,337 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,690 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,337 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,413 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