Azure Automation PowerShell - While trying to connect to AzureAD using 'Connect-AzureAD' it give me issue of cmdlet not recognized.
I am trying to get all the users in AD using PowerShell automation runbook. The modules are installed in the shared resources. Still when executing line : 'Connect-AzureAD' throws error of : I have tried options like : Importing the modules…
Remove app from user context and deploy this script via Intune
I am trying to uninstall a application called MicroSIP via Microsoft Intune on all of our Windows machines but the script is says "not installed" every time I run it. I have tied multiple scripts but no luck. I did find my issue. So here it is.…
How can I send Outlook (Microsoft 365) meeting invitations from one email account to multiple email accounts using PowerShell?
I need your help to create a PowerShell script to send invitations to an Outlook (Microsoft 365) meeting from an email account user@domino to multiple email accounts (user1@domino, user2@domino...) through from PowerShell I hope you can help me.
Disable WinRM PowerShell Remoting
Hi All I have a requirement to Disable or Harden PowerShell Remoting and WinRM Services. The impact what i see is one server cannot connect to another server using remote powershell scripts. Please also let me know what possible issues we can come across…
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…
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? (working fine from windows machine though) "New-PSSession: [<exchangeserver.domain>] Connecting to remote server…
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:…
"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…
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…
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…
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!
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…
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…
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:…