Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Powershell 2.0 with remoting : ok what is Remoting ?

Reply
 
Old 12-06-2007   #1 (permalink)
IT Staff


 
 

Powershell 2.0 with remoting : ok what is Remoting ?

I read the threads somewheere the Powershell 2.0 comes with remoting.

Now i m not a developer, what does Remoting means ?

To me, i thought i can use GWMI to access remote computer from my machine.

Is that my definition of Remoting ?

Thanks



My System SpecsSystem Spec
Old 12-06-2007   #2 (permalink)
Karl Prosser[MVP]


 
 

Re: Powershell 2.0 with remoting : ok what is Remoting ?

yes and no.
GWMI, and also powershells WMI cmdlets have the ability to do remote
WMI. and various other cmdlets can act against remote machines , but
this behaviour is build inside each cmdlet itself, not part of the
powershell engine.

with powershell remoting in 2.0, you can do a few things

1) connect to a remote machine, and run commands, either as a script, or
interactive as if you were sitting there
2) write a script that sends out powershell code to many different
machines, to run that code on each of those machines, and return the
results to you
3) as a server, where many different users can connect from their local
machines and run script against you.

I know i didn't explain it entirely accurately, but it should be enough
to give you a general picture.

-Karl

IT Staff wrote:
Quote:

> I read the threads somewheere the Powershell 2.0 comes with remoting.
>
> Now i m not a developer, what does Remoting means ?
>
> To me, i thought i can use GWMI to access remote computer from my machine.
>
> Is that my definition of Remoting ?
>
> Thanks
>
>
My System SpecsSystem Spec
Old 12-06-2007   #3 (permalink)
Jon


 
 

Re: Powershell 2.0 with remoting : ok what is Remoting ?

"IT Staff" <jkklim@xxxxxx> wrote in message
news:O$KmA%238NIHA.3852@xxxxxx
Quote:

>I read the threads somewheere the Powershell 2.0 comes with remoting.
>
> Now i m not a developer, what does Remoting means ?
>
> To me, i thought i can use GWMI to access remote computer from my machine.
>
> Is that my definition of Remoting ?
>
> Thanks
>


It effectively means that you can sit at one computer, and open up
powershell session on another computer, and run whatever commands you like -
not just retrieving wmi info.

eg Here's an example of a session connecting from an XP machine to a Vista
machine. 'RunV' is a local script here on the XP machine that runs any
commands I type on a connected Vista machine. You could similarly run
automated scripts on a connected machine ........


PS (1) > [environment]::OSVersion | fl


Platform : Win32NT
ServicePack : Service Pack 2
Version : 5.1.2600.131072
VersionString : Microsoft Windows NT 5.1.2600 Service Pack 2



PS (2) > runv
Running commmands on Vista computer ......
PS REMOTE>[environment]::OSVersion | fl


Platform : Win32NT
ServicePack :
Version : 6.0.6000.0
VersionString : Microsoft Windows NT 6.0.6000.0



PS REMOTE>exit
PS (3) >


[NB I used 'winrs' to connect, in this particular case, rather than
invoke-expression, since the CTP doesn't currently support Vista machines,
but it's effectively the same end result ]


--
Jon



My System SpecsSystem Spec
Old 12-06-2007   #4 (permalink)
IT Staff


 
 

Re: Powershell 2.0 with remoting : ok what is Remoting ?

Thanks guys i understand now.

The reason i ask is this when i did imaging for desktop, the engineer ask me
why i want to put .net framework on every machine, winrm , powershell ver xx
etc

I bluff at the superficial level, that i need to run powershell codes.

Now u have given me a good reasons to support my justifications :-)




"Jon" <Email_Address@xxxxxx> wrote in message
news:O339ZS9NIHA.5524@xxxxxx
Quote:

> "IT Staff" <jkklim@xxxxxx> wrote in message
> news:O$KmA%238NIHA.3852@xxxxxx
Quote:

>>I read the threads somewheere the Powershell 2.0 comes with remoting.
>>
>> Now i m not a developer, what does Remoting means ?
>>
>> To me, i thought i can use GWMI to access remote computer from my
>> machine.
>>
>> Is that my definition of Remoting ?
>>
>> Thanks
>>
>
>
>
> It effectively means that you can sit at one computer, and open up
> powershell session on another computer, and run whatever commands you
> like - not just retrieving wmi info.
>
> eg Here's an example of a session connecting from an XP machine to a Vista
> machine. 'RunV' is a local script here on the XP machine that runs any
> commands I type on a connected Vista machine. You could similarly run
> automated scripts on a connected machine ........
>
>
> PS (1) > [environment]::OSVersion | fl
>
>
> Platform : Win32NT
> ServicePack : Service Pack 2
> Version : 5.1.2600.131072
> VersionString : Microsoft Windows NT 5.1.2600 Service Pack 2
>
>
>
> PS (2) > runv
> Running commmands on Vista computer ......
> PS REMOTE>[environment]::OSVersion | fl
>
>
> Platform : Win32NT
> ServicePack :
> Version : 6.0.6000.0
> VersionString : Microsoft Windows NT 6.0.6000.0
>
>
>
> PS REMOTE>exit
> PS (3) >
>
>
> [NB I used 'winrs' to connect, in this particular case, rather than
> invoke-expression, since the CTP doesn't currently support Vista machines,
> but it's effectively the same end result ]
>
>
> --
> Jon
>
>
>

My System SpecsSystem Spec
Old 12-07-2007   #5 (permalink)
Karl Prosser[MVP]


 
 

Re: Powershell 2.0 with remoting : ok what is Remoting ?

well thats for powershell version 2.0, which there is only an early CTP
for, which isn't licensed to be installed in a production environment,
nor recommended.

-Karl
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
PowerShell Remoting equivalent of SSH scp PowerShell
Widnow's Powershell Remoting PowerShell
Powershell v2 remoting not working? PowerShell
Powershell 2.0 and remoting PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46