Microsoft Learn Sandbox "Access Denied" - Appeal
Microsoft Learn: Access to Sandbox for "Python for Beginners" and "Microsoft Azure AI Engineer Certification" courses. I lost access to sandbox due to suspicious activity and believe it was because I was accessing it through two…
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…
Cannot create New Entra ID User using Powershell
I am using PowerShell to connect to Microsoft Graph to create new users in Entra ID. I changed Graph version to too many versions but still got these errors. What is wrong with Microsoft? I am using Global Administrator account.
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…
Getting error while connecting to azure through powershell | A window handle must be configured. See https://aka.ms/msal-net-wam#parent-window-handles
WARNING: Unable to acquire token for tenant 'organizations' with error 'InteractiveBrowserCredential authentication failed: A window handle must be configured. See https://aka.ms/msa l-net-wam#parent-window-handles' WARNING: Please run 'Connect-AzAccount…
Task scheduler scripts
Hi All i have 100 plus scripts running on a VM. i have task schedulers running daily, for few weekly. i want to export all the task scheduler scripts to a csv file. using the below syntax i am able to export $data = @() foreach ( $task in…
Add exact upns
Hi All i have userprincipalnames in a csv file in the below format. usernames user1@contoso.com user2@contoso.com i want to add these users to AD group from powershell. if there are any other user with user1.a@contoso.com or user2.a@contoso.com. i…
I'm trying to use the Get-MgUserDrive command in PowerShell with the 'me' alias, full email address, and explicit user ID, but keep getting a 'User not found' error.
Here is a summary of the steps I took to attempt to execute the Get-MgUserDrive -UserId 'me' command, and why I encountered the persistent "User not found" error: Azure AD application authentication and configuration: I verified that Im…
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…
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…
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…
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…