Azure Synapse LinkConnection template json
We have created a LinkConnection in Azure synapse, the source database is MS SQL Server and target database is Dedicated SQL Pool. We are trying to create powershell script to automate the creation of this LinkConnection for each environment - Testing,…
How to create a PS/CLI script for file share capacity alert with Action group
I want to create an alert for file capacity of files and I need an action group as well. Problem is that the storage account has 90 files and i need for each fileshare 1 Alert. I want to try using a script to avoid taking a lot of time doing it…
backup azure APIM through power shell gives error forbidden.
Hi Team, we are trying to use service backup and restore in Azure API Management using PowerShell, just following doc gives error: Backup-AzApiManagement : Operation returned an invalid status code 'Forbidden'. I tried to use storage key based and user…
Issue obtaining access token for Azure Video Indexer using PowerShell
Hello, I'm trying to obtain an access token for Azure Video Indexer using PowerShell. Here is what I've done so far: Created a Video Indexer account: Subscription ID: 06a3bdd8-f407-4903-9161-f7101c66d9e1 Account ID:…
Exchange admin center bugs for manage email forwarding
I have set up the email forwarding in the Exchange Admin Center, where it is mentioned that "The mailbox owner will not be able to view and change this forwarding address." But I found that user logging into their mailbox can see which…
How to change drive letters (was: Can I use Visual C to program system tools)
I need to be able to write a tool that can change the drive letter in my application. When I insert a usb hard drive the program recognises the volume it should be with the drive letter in [] brackets in the label. When I insert the usb drive sometimes…
"Bandwidth Constraints for 12,000 Devices During .OST File Creation"
Hi Team, how can we implement bandwidth constraints for 12,000 devices when new .ost files are created and begin downloading emails?Also, Is there a way to use old .ost file with new outlook profile created in xyz.com domain outlook by deleting the new…
Powershell on Mac/Linux - New-PSSession to Exchange Server -> MI_RESULT_FAILED Error
How can the following error be resolved when trying to connect to an Exchange server via PowerShell from a Mac/Linux machine? "New-PSSession: [<exchangeserver.domain>] Connecting to remote server <exchangeserve.domain> failed with the…
Migration from OneDrive Business folder to Sharepoint documents while maintaining permissions
Hello, I have a OneDrive Business account (i.e. John Snow) with 35GB data (i.e. XYZ folder, in this folder a lot of folders and files). Currently files and folders are shared to other people, certain permissions are granted. Now, I want to migrate from…
How can an AES Encrypted StreamWriter Send data before the connection closes?
Given this Reader/Server side code: $Listener = [System.Net.Sockets.TcpListener]61855 $Listener.Start() $Client = $Listener.AcceptTcpClient() $Stream = $Client.GetStream() [byte[]]$key =…
WARNING: Unable to acquire token for tenant 'organizations' with error 'InteractiveBrowserCredential authentication failed: Method not found: 'Void Microsoft.Identity.Client.Extensions.Msal.MsalCacheHelper.RegisterCache(Microsoft.Identity.Client.ITokenCa
Hi Team, Can someone here please assist me with this error to connect my PowerShell session using the Connect-AzAccount ? PS C:\WINDOWS\system32\WindowsPowerShell\v1.0> Connect-AzAccount WARNING: Unable to acquire token for tenant 'organizations' with…
![](https://techprofile.blob.core.windows.net/images/WsWYoGdWukeBW66msAr6qQ.png?8D8128)
Having Trouble Running Powershell Scripts with Task Scheduler
I wrote a simple PowerShell script to back up a certain folder from a server to an external NAS, which is mapped as the N: drive. $sourcePath = "D:\SomeLocation\Folder" $destinationPath = "N:\BackupData" Copy-Item -Path $sourcePath…
MgGraph PowerShell
Hi Everyone, I need to clear the User Consent permissions on an Enterprise App so I can run the 3rd party app again and then grant "Consent on behalf of your organisation" so all users (assigned to the Ent App) can access it. Using MgGraph…
![](https://techprofile.blob.core.windows.net/images/a1395d6d60e64acc8c1bfc104037f1aa.png)
High CPU usage for vmmem
Hi, I have experienced high CPU usage for Vmmem frequently (~every 2days) and the only solution at the moment is simply restart my machine. It is understood that is related to WSL and I do have a Docker image running on Ubuntu on Windows. However it is…
Ev2 Shell Extension with Managed Identity accessing Storage Account blob
This is how we're accessing using MSI: Connect-AzAccount -Identity -TenantId $env:TenantId -SubscriptionId $env:SubscriptionId ## Attempt to upload payload to blob: $ctx = (Get-AzStorageAccount -ResourceGroupName $env:ResourceGroupName -Name…
PowerShell script for exporting Group Source from Entra ID
Hello experts, I have to export the group source that the whether the group is cloud or on-prem synced group from the Entra ID using powershell module. Can anyone help me out for the same? Looking for a quick reply. Thanks!
![](https://techprofile.blob.core.windows.net/images/a1395d6d60e64acc8c1bfc104037f1aa.png)
how to fix AAD issue "try again, that's not your current password"
Dear Experts, we created AD users from on premises, sync them to the cloud then enabled SSPR and password writeback, MFA. Here is the scenario when using Powershell script: User logs in with expired password (or recently changed temporary password) and…
![](https://techprofile.blob.core.windows.net/images/72HU1RH-WEGeY0-fx2oe9g.png?8DBBA8)
PowerShell command outputting 'System.__ComObject' on Windows 11 23H2
I am working on a Windows 11 23H2 system and attempting to retrieve installed update details using the PowerShell command below, but it's giving me an output of System.__ComObject: $UpdateSession = New-Object -ComObject…
How do I login in my Azure Account
Unable to login my azure portal via azure powershell by az login command there is an error as follows: Authentication failed against tenant 115142-e0fd-4b46-*718-9631f6a**53d8 'Default Directory': (pii). Status:…
![](https://techprofile.blob.core.windows.net/images/wfyQXOEw5ESrCErdbzSCcw.png?8DBE5A)
Trying to add Microsoft Sentinel to a Log Analytics Workspace in Azure but keep getting error "The gateway did not receive a response from 'Microsoft.SecurityInsights' within the specified time period"
I am trying to add Microsoft Sentinel to a Log Analytics Workspace connected to a Virtual Machine in the Azure portal but keep getting the error "The gateway did not receive a response from 'Microsoft.SecurityInsights' within the specified time…