ExchangeOnline Powershell - Get-QuarantineMessage -ReleaseStatus Requested: no results
I'm having a problem running a Get-QuarantineMessage Powershell script for ExchangeOnline in Powershell. My manager is able to run it connecting to the exact same account and get results. When I run it, I just get brought back to the prompt without any…
PS script deployed via GPO not installing
Hello experts, I could use some help determining why a PS script deployed via Group Policy is not applying. I suspect it is due to the ExecutionPolicy restriction however I have attempted to bypass in the script parameters as well as adding the bypass…
Installing GIT with out asking prompts with powershell
I am using below link and using windows 64 bit standalone installer. https://git-scm.com/download/win I can install this manually , but i want to install git in agent ( target machine) using powershell with out asking for any prompts , can we do that, if…
Powershell 5.1 not accepting keyboard input when using Remote Desktop HTML5 Web Client
Install the latest RDS HTML5 client on a RDS deployment as specified here: https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-web-client-admin Open a web browser session and start an RDS session. …
Sending via authenticated SMTP failing for one tenant but not the other
I have two tenants, one a prod tenant and one is a test tenant. The user's in both tenants have Authenticated SMTP allowed under 365 Admin Center user settings > mail > managed email apps: In org settings, the global authenticated SMTP setting is…
Getting an error when trying to setup Exchange Online ForwardingAddress in Azure Runbook
Hello, I am trying to setup an Azure Automation Runbook in which I convert a User Mailbox to a Shared Mailbox and setup a ForwardingAddress. I setup all the permissions and converting the mailbox is working, setting a forwarding address throws the…
What is the best way to execute PowerShell graph command executed against Azure / Entra ID ?
What is the best way to execute the PowerShell graph command executed against Azure / Entra ID ? $date = (Get-Date -Format "yyyy-MM-dd") 2Get-MgRiskDetection -All -Filter "ActivityDateTime ge $date and RiskLevel eq 'high'" The report…
Error Handling in ForEach-Object -Parallel CMDLET.
I Use a PowerShell 7 Script to Validate Resource Group and its JSON contents DisplayName, ObjectID and Role Definition Name. My Script will use Parallel block to loop through the subscriptions and validate RG First and then foreach Role Definition it has…
Use PowerShell to enable 'Send copies of group conversations and events to group members' on a dynamic O365 group
I have done quite a bit of researching and asking 'Co-Pilot' without any luck. Essentially, I want to do what the title says, which is: Enable 'Send copies of group conversations and events to group members' for the specified group using PowerShell. The…
Powershell script to loop through MSOLUsers in CSV file until they are synced to Azure AD/Entra ID
Hi all, I have an input CSV file like this: UserPrincipalName user1@test.com user2@test.com These users are located in our On Premise Active Directory but are NOT synced to our Azure AD/Entra ID (they are in an OU which we exclude from syncing to Azure…
How to create a webapp slot without copying settings using PowerShell?
I want to create a Slot for an Azure WebApp using PowerShell, without copying any settings from the main production slot. The command I'm using is: New-AzWebAppSlot -ResourceGroupName $ResourceGroup -Name $ApplicationName -Slot $SlotName -ErrorAction…
Powershell script to Download All Contents ( Folder and Files ) from Sharepoint and Local to SharePoint
Hi There, Good Day. Would like to seek your assistance on how we able to transfer/download Folder with files and sub-folder, files to Local Drive from Sharepoint and Local to SharePoint. Greatly appreciate your feedback. Thank You.
The "devtunnel host" command keeps returning an error
I was trying to create a devtunnel (initially in microsoft visual studio debugging, but then the CLI). I have the devtunnel command and I am logged in, but each time I try the devtunnel host command I received the following error: "Error: Tunnel…
How to get the Sleep Setting and set new Sleep Setting for System from PowerShell?
Hey Experts, We are looking for a PowerShell command to get the current sleep time interval from the system and set a new time interval for the system. Currently, we have four sleep settings in the system, and we want all the settings to be retrieved and…
Why is MailNickName property necessary when i use MSGraph command to create AzureAD groups.
I'm using Microsoft Graph command as below to create AzureAD group on PowerShell. New-MgGroup -displayname XXXXXXXXX -mailnickname XXXXXXX Since the MailNickName property is necesssary.Does this property' value only support the alphabet but other…
Deleting Storage Account Pending Migration to SRP in Powershell
After much research on these forums and online in general, I'm trying to run the following two commands in attempt to delete a storage account that is pending migration to SRP: Move-AzureStorageAccount-Abort -StorageAccountName…
Bulk delete emails from exchange online shared mailbox.
Hi, I have issues bulk deleting emails from a shared mailbox which is used to store only logs and other reports no longer needed. To my surprise, it is not as easy as I thougth. We need to get rid of hundreds of thousands of emails. Obviously outlook…
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…
Unable to start/stop workflow instances associated with a List Item
Hi All, I'm trying to stop workflow instances attached to a specific List Item In a SharePoint List. But I notice the workflow subscription command always returns null, due to which Stop-PnPWorkflowInstance fails. #Install-Module -Name…
Can I put the value of instanceDurationInDays in minutes for the QA while creating access reviews using powershell?
I am able to create an azure access reviews with Graph API 1.0 using PowerShell. Now, there is a property called instanceDurationInDays which should have an integer value. The access review will remain active for the number of days of the value of…