Kelly Garcia
asked on
.framework class powershell remote machine
Hi Guys,
I can't seem to use the -computer switch in powershell when I type a .net frame class e.g :
[System.Environment]::Mach ineName
[System.Environment]::OSVe rsion
[System.Environment]::GetE nvironment Variables( )
how can I do this - run these commands on a remote machine?
Also how can I retrieve a list of all that's available under the system class?
thank you in advance.
I can't seem to use the -computer switch in powershell when I type a .net frame class e.g :
[System.Environment]::Mach
[System.Environment]::OSVe
[System.Environment]::GetE
how can I do this - run these commands on a remote machine?
Also how can I retrieve a list of all that's available under the system class?
thank you in advance.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks, problem with psremoting is that it has to enabled on every server, and I don't know if there is a quick way to do it without manually having to log into each one?
yea I really want to learn automation at an advanced level, therefore it seems like I need to lean c#.net too to become an expert.
yea I really want to learn automation at an advanced level, therefore it seems like I need to lean c#.net too to become an expert.
ASKER
so powershell developers make the cmdlets right for applications? example powercli used for VMware, would have been written by a powershell developer, the netapp storage also has a powershell module and this again would having been written by a powershell developer?
ASKER
is the powercli module for vsphere written using c#?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have heard that cmdlets are actually .net framework classes, so I am wondering could there be a way to create a new cmdlet in .net and include the -computer switch?/