const shell = require('node-powershell');let ps2 = new shell({
executionPolicy: 'Bypass',
noProfile: true});
ps2.addCommand('Invoke-Command -ComputerName $machinename -ScriptBlock {node
path of the script $args[0]} -ArgumentList $text -
credential $Cred')
tried accessing in the remote node.js script as follows: var arg=$args[0]
console.log(""+arg); using invoke-command which is node-powershell
command,how to pass local variable to a remote nodejs script and access it
in that nodejs script
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/d176b888-0888-4c12-b666-8e888ae99705%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.