Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

How does $(......) work?

$
0
0

Hello,

Can someone plz explain and provide references to how $(....) works below and why we use it.

$mycred = Get-Credential

$CompName = Read-Host -Prompt "Enter Computer Name"

Write-Debug "user name: $($mycred.UserName)"

Write-Debug "password: $($mycred.GetNetworkCredential().Password)"


Thanks for your help! SdeDot


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>