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 = @{ …
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…
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…
![](https://techprofile.blob.core.windows.net/images/pxpvXcfHUkGs_31NHERBiA.png?8D83C7)
code Backup.ps1 is not opening a file in code editor
code Backup.ps1 is not opening a file in code editor
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.
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…
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…
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…
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.…
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…
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…
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…
![](https://techprofile.blob.core.windows.net/images/pxpvXcfHUkGs_31NHERBiA.png?8D83C7)
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…
![](https://techprofile.blob.core.windows.net/images/siIzquzvok-OvkV73N8s5Q.png?8DA48C)
how to fix engine state is changed from avaible to stop windows powershell
how to fix event viewer powershell engine state is changed
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.…
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…
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…
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…
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.
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!
![](https://techprofile.blob.core.windows.net/images/ny8DxPvPMky3dIOsQ9_3Dg.png?8DC7C0)