Activate Azure benefit license for Azure Arc machines via Powershell or Azure Policy
Hi folks, is there a way to enable the Azure benefit license (Software Assurance) via Azure Policy or via Powershell? I only found some cmdlets/Policies for Azure Virtual Machines but not for Azure Arc Machines. Thanks
How to access old user folder?
I recently had an issue which caused me to have to reinstall windows onto a different drive, and now that I've got that done, I'm trying to copy over my old files to the new drive. Problem: I can't access my old user folder. Now, I'm no stranger to…


Microsoft Desired State Configuration 3.0
Hi, I know that Microsoft Desired State Configuration 3.0 is still in preview, but I am interested in some documentation where I can find how to do things now (push config to remote servers, configure periodic checks for config drifts now when LCM is no…
What are the steps and procedure to use gMSA as the Windows Server Service Account?
After creating the gMSA using the below PowerShell, how can I successfully replace the services in all of my Windows Server Application servers? New-ADServiceAccount -Name New-gMSA -DNSHostName Mydomain.com -PrincipalsAllowedToRetrieveManagedPassword…


azure sandbox
i cannot sign in my sandbox account in powershell and i have tried bash aswell with my azure free account

How can I use Powershell to update the number in an Auto Attendant's' Call Flow' - 'Call Routing' - 'Redirect Call' field?
We're looking to set up some On Call auto attendants which would redirect to whichever staff member was rostered on that week. I have some Powershell scripting in mind, but the critical problem is that I don't know how to script updating the number in an…
Issues using managed dependencies in Azure Functions with PowerShell - ExchangeOnlineManagement
Hi everyone, I am trying to deploy a simple Azure Function using PowerShell. However, I cannot load any modules. I have a module for ExchangeOnlineManagement I declared it in the requirements file. I also added managed depedencies to the host.json file…
How to launch Microsoft Edge to a specific Workspace?
How can I launch Microsoft Edge directly to a specific shared Edge Workspace, ie what is the command line switch? Preferably I would like to launch two workspaces at once; more preferably I would like to launch them on to the last desktop region that…
Connect-SPOService : No valid OAuth 2.0 authentication session exists ?
I have not been able to connect using the command “Connect-SPOService -Url https://company-admin.sharepoint.com” for several months now. I pick account Enter password click "Next" And get this empty "working..." window…
Convert Curl to invoke-restMethod
I am trying to use this Curl example and make it work with Powershell. I am stuck at multiple data for "Identifier". this section will create report in CSV format "report_metadata": { "report_type": "orders", …
How can I build mez file from .proj or .pq file via commandline?
I need to automate building of PowerBI connector from .proj or .pq file to .mez On local machine, we are able to do that with Visual studio code and it's Power Query SDK extension https://learn.microsoft.com/en-us/power-query/install-sdk but I am not…
How can I build mez file from .proj or .pq file via commandline?
I need to automate building of PowerBI connector from .proj or .pq file to .mez On local machine, we are able to do that with Visual studio code and it's Power Query SDK extension https://learn.microsoft.com/en-us/power-query/install-sdk but I am…
How to resolve "Unable to start the Cloud Shell" error in Learn Sandbox
When attempting to access the Learn Sandbox CLI, the error "Unable to start the Cloud Shell" occurs despite following the recommended troubleshooting methods. Attempts have been made to log in with two different Microsoft accounts. What steps…
Unable to add the users to the admins group in databricks workspace
Could not add the users into admins group of dataricks workspace (if users are associated with some groups) using PowerShell module "Update-DatabricksSCIMUser -UserName $usermailID -GroupNames admins -Entitlements allow-cluster-create" But…
How to enable BitLocker autounlock on USB device from Powershell
Hello, I created a script to enable bitlocker on a USB storage device. In the same script after I wait for the encrypt status to reach 100% I tried to enable autounlock with the following line: Enable-BitLockerAutoUnlock -MountPoint "D:" Once…
How to get all users with alias as subdomain
Hello All, We need to pull a report where users having alias as our subdomains We have around 20k users and we need to filter out them with our subdomains (15). Please suggest a quick and easy to figure it out, pulling out the entire report and checking…
Microsoft Entra ID, Last Sign In
Good afternoon. I am a tenant administrator, I need to obtain the last sign in of the users, currently I see that I get the following error, it is worth mentioning that I always use this script and I did get the information but a few days ago I started…
PowerShell Command to find duplicate documents in SharePoint Online
We have lot of duplicate documents in our SharePoint online. Looking for help from the community. Can PowerShell command be used to do the following? Identify duplicate documents on each site/library. Move them to a another library where they can be…
How to fix 'System.Net.ServicePointManager' error when I open Powershell?
I have tried everything that I could imagine. Things like, sfc /scannow, DISM, CHKDSK, Restore my Windows twice, changing the machine.conf to default and so long, any of these worked. So I want really to know if I can fix this problem with something that…
Getting error when deploying AKS cluster with ARM template using Marketplace application:
{ "code": "DeploymentFailed", "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage…