Link to home
Start Free TrialLog in
Avatar of sidwelle
sidwelleFlag for United States of America

asked on

powershell add-content , set-content

Why do both of these commands prompt for values with some parameters and not others ?

Add-Content "c:\LastRun.txt" Get-Date    #Prompts with...
cmdlet Set-Content at command pipeline position 1
Supply values for the following parameters:
Value[0]:

Add-Content $lf $e    #Doesn't prompt, just writes to the file.
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sidwelle

ASKER

Thanks for the quick reply, it was a coding error on my part !

Found it !