Use PowerShell script to run WSL command – Ubuntu
I can manually open up PowerShell and run wsl ip addr show eth0 | grep 'inetb' | awk '{print $2}' | cut -d/ -f1 To get the IP address of the Ubuntu instance. But when I try to write a…
I can manually open up PowerShell and run wsl ip addr show eth0 | grep 'inetb' | awk '{print $2}' | cut -d/ -f1 To get the IP address of the Ubuntu instance. But when I try to write a…
Could anyone helps me to fetch the Apps name and all the Processes opened by the App? Just like the Task Manager shows. Screenshot of task manager Screenshot of task manager 2 Can you give me an example in Java,…
I'm new to JSON construction and I can't quite wrap my brain round how I do this. I can't even think of the vocabulary to ask Google... I want to create JSON that looks like this: [{ "common": { "attributes":…
I have a storage account in Azure which hosts a data lake. I want to authorize a specific directory with SAS token and I was able to do configure it by clicking in the portal. First of all, I created…
we had an azure tenant. we opened a new one, and passed our users to the new tenant and then added our users to the old tenants as guests. Passing means that we deleted our users from the first tenant,…
I can't for the life of me work out how to add elements to an array inside a foreach loop. I keep getting the error: 8 | $logs.Add(@{ | ~~~~~~~~~~~~ | Cannot find an overload for "Add" and the argument…
I have resources in a Resource Group in Azure and it wont let me move the resource because it is in a Resource Group that is not the hosting Resource Group even though it has been moved . I have…
Bonjour ! I want to use Update-MgPrivilegedAccessResourceRoleSetting cmdlet, from the Microsoft.Graph PowerShell module, in my Azure portal. I want to update some settings of my PIM role (for example MfaRule or ExpirationRule) But I obtain this error : {"message":"No HTTP…
I've got a very frustrating situation using the Azure CLI and attempting to replace the content of an Automation Account. I am attempting to update it via a Azure DevOps pipeline AzureCLI@2 task. This is the script line i am…
name : SN608-ps-iLevel-C (74617) total_bytes : 693123 sessions : 30 planname : Professional Plan Flexible Data tags : {All Island} sms : 0 usage : {@{network_name=T-Mobile USA, Inc; bytes=693123; sessions=30}}name SN523-ps-iLevel-C (02146) total_bytes : 660570 sessions : 31 planname :…