skip to Main Content

Javascript – NodeJS – Child Process – Exec VS Powershell ISE | why are the results different?? why can't the PSCredential be created?

MY PS Script: $admin = "TEST" $Password = ConvertTo-SecureString "Test12345" -AsPlainText -Force $Credential = [PSCredential]::new( $admin, $Password) if ($Credential -is [System.Management.Automation.PSCredential]) { return "PS Credentials - true" } else { return "PS Credentials - false" } RESULT in PS ISE:…

VIEW QUESTION

Azure – How to access a nested JSON field in PowerShell

I'm trying to access a specific field in a JSON object created by Azure Advisor using PowerShell. I have the following object: @{id=/subscriptions/xxxx/providers/Microsoft.Advisor/recommendations/xxxx; category=Cost; impact=High; impactedArea=Microsoft.Subscriptions/subscriptions; description=Consider virtual machine reserved instance to save over your on-demand costs; recommendationText=Consider virtual machine…

VIEW QUESTION
Back To Top
Search