Cannot System.string to System.Management.Automation.ScriptBlock
hi
i try execute script
invoke-command -scriptblock "get-date"
and recive exception:
invoke-command : cannot bind parameter 'scriptblock'. cannot convert "get-date" value of type "system.string" type "system.management.automation.scriptblock".
my question why? of scripts working way.
Windows Server > Windows PowerShell
Comments
Post a Comment