Which of the following commands would instantiate a variable in Powershell? Group of answer choices
my today = (Get-Date).DateTime
var = 'Today';DateTime
{today} = DATE.get
$Today = (Get-Date).DateTime
$Today = (Get-Date).DateTime Explanation: ------------- 1) $Today = value, is how you would create a variable in powershell 2) (Get-Date).DateTime gives the date time object 3) $Today = (Get-Date).DateTime stores datetime object in the variable created
Get Answers For Free
Most questions answered within 1 hours.