![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Get-Service -computerName in CTP issue? I am trying to run the following command get-service -computername localhost The help files indicate I should be able to do this however I get the following error: Get-Service : A parameter cannot be found that matches parameter name 'computername'. At line:1 char:26 + get-service -computername <<<< localhost Am I doing something wrong? |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Get-Service -computerName in CTP issue? On Dec 5, 11:56 am, berkej <ber...@xxxxxx> wrote: Quote: > I am trying to run the following command > > get-service -computername localhost > > The help files indicate I should be able to do this however I get the > following error: > > Get-Service : A parameter cannot be found that matches parameter name > 'computername'. > At line:1 char:26 > + get-service -computername <<<< localhost > > Am I doing something wrong? computer. Also according to the Windows PowerShell Week Question & Answer log (http://www.microsoft.com/technet/scriptcenter/webcasts/ psweek/day1qanda.mspx): "Ideally any Cmdlet/command you can run locally you'll also be able to run against remote computers. That isn't the case today: Get-Service will tell you info about the services installed on the local computer, but can't connect to a remote computer." I know of no way to do it without connecting to the Powershell on the remote machine (RDP, or SSH like the article mentions). Orrin |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Get-Service -computerName in CTP issue? "berkej" <berkej@xxxxxx> wrote in message news:F90A259C-8592-41CE-A83C-285FFA96DAE6@xxxxxx Quote: >I am trying to run the following command > > get-service -computername localhost > > The help files indicate I should be able to do this however I get the > following error: > > Get-Service : A parameter cannot be found that matches parameter name > 'computername'. > At line:1 char:26 > + get-service -computername <<<< localhost > > Am I doing something wrong? There's no such parameter in the current cmdlet, so I suspect the documentation is ahead of the CTP in that respect - at least in the version we have access to. But it gives an indication of what is to come, I suppose. -- Jon |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Get-Service -computerName in CTP issue? Orrin run get-help get-service -detailed. Look at example 6 it indicates: C:\PS>get-service -computername Comp01, Server02, Server03 | sort -property machinename | format-table -property machinename, status servicename This command gets the services on the local computer (Comp01) and two remote computers (Server02 and Server03), sorts them by the name of the computer (in the MachineName property of the service) and displays them in a table that shows the MachineName, status, and service name. MachineName is just one of the properties of a service object. To see all of the properties and methods of a service object, pipe the results of a Get-Service command to the Get-Member cmdlet (ty pe "get-service | get-member"). Based on this help document it looks like the command should work. Jon might be right and that the documention is a hint of what is to come...either that or it was functionality lost in the CTP. "Orrin" wrote: Quote: > On Dec 5, 11:56 am, berkej <ber...@xxxxxx> wrote: Quote: > > I am trying to run the following command > > > > get-service -computername localhost > > > > The help files indicate I should be able to do this however I get the > > following error: > > > > Get-Service : A parameter cannot be found that matches parameter name > > 'computername'. > > At line:1 char:26 > > + get-service -computername <<<< localhost > > > > Am I doing something wrong? > According to the get-help for get-service it is for the local > computer. Also according to the Windows PowerShell Week Question & > Answer log (http://www.microsoft.com/technet/scriptcenter/webcasts/ > psweek/day1qanda.mspx): > > "Ideally any Cmdlet/command you can run locally you'll also be able to > run against remote computers. That isn't the case today: Get-Service > will tell you info about the services installed on the local computer, > but can't connect to a remote computer." > > I know of no way to do it without connecting to the Powershell on the > remote machine (RDP, or SSH like the article mentions). > > Orrin > |
My System Specs![]() |
| | #5 (permalink) |
| | Re: Get-Service -computerName in CTP issue? I missed that this was for a CTP, I'm using 1.0 and it only goes to Example 5. My mistake. Orrin On Dec 5, 1:13 pm, berkej <ber...@xxxxxx> wrote: Quote: > Orrin run get-help get-service -detailed. Look at example 6 it indicates: > > C:\PS>get-service -computername Comp01, Server02, Server03 | sort -property > machinename | format-table -property machinename, status servicename > > This command gets the services on the local computer (Comp01) and two remote > computers (Server02 and Server03), sorts them by the name of the computer (in > the MachineName property of the service) > and displays them in a table that shows the MachineName, status, and > service name. > > MachineName is just one of the properties of a service object. To see all of > the properties and methods of a service object, pipe the results of a > Get-Service command to the Get-Member cmdlet (ty > pe "get-service | get-member"). > > Based on this help document it looks like the command should work. Jon might > be right and that the documention is a hint of what is to come...either that > or it was functionality lost in the CTP. > > "Orrin" wrote: Quote: > > On Dec 5, 11:56 am, berkej <ber...@xxxxxx> wrote: Quote: > > > I am trying to run the following command Quote: Quote: > > > get-service -computername localhost Quote: Quote: > > > The help files indicate I should be able to do this however I get the > > > following error: Quote: Quote: > > > Get-Service : A parameter cannot be found that matches parameter name > > > 'computername'. > > > At line:1 char:26 > > > + get-service -computername <<<< localhost Quote: Quote: > > > Am I doing something wrong? Quote: > > According to the get-help for get-service it is for the local > > computer. Also according to the Windows PowerShell Week Question & > > Answer log (http://www.microsoft.com/technet/scriptcenter/webcasts/ > > psweek/day1qanda.mspx): Quote: > > "Ideally any Cmdlet/command you can run locally you'll also be able to > > run against remote computers. That isn't the case today: Get-Service > > will tell you info about the services installed on the local computer, > > but can't connect to a remote computer." Quote: > > I know of no way to do it without connecting to the Powershell on the > > remote machine (RDP, or SSH like the article mentions). Quote: > > Orrin |
My System Specs![]() |
| | #6 (permalink) |
| | Re: Get-Service -computerName in CTP issue? No problem happens to us all;-) Thanks! "Orrin" wrote: Quote: > I missed that this was for a CTP, I'm using 1.0 and it only goes to > Example 5. My mistake. > > Orrin > > > On Dec 5, 1:13 pm, berkej <ber...@xxxxxx> wrote: Quote: > > Orrin run get-help get-service -detailed. Look at example 6 it indicates: > > > > C:\PS>get-service -computername Comp01, Server02, Server03 | sort -property > > machinename | format-table -property machinename, status servicename > > > > This command gets the services on the local computer (Comp01) and two remote > > computers (Server02 and Server03), sorts them by the name of the computer (in > > the MachineName property of the service) > > and displays them in a table that shows the MachineName, status, and > > service name. > > > > MachineName is just one of the properties of a service object. To see all of > > the properties and methods of a service object, pipe the results of a > > Get-Service command to the Get-Member cmdlet (ty > > pe "get-service | get-member"). > > > > Based on this help document it looks like the command should work. Jon might > > be right and that the documention is a hint of what is to come...either that > > or it was functionality lost in the CTP. > > > > "Orrin" wrote: Quote: > > > On Dec 5, 11:56 am, berkej <ber...@xxxxxx> wrote: > > > > I am trying to run the following command Quote: > > > > get-service -computername localhost Quote: > > > > The help files indicate I should be able to do this however I get the > > > > following error: Quote: > > > > Get-Service : A parameter cannot be found that matches parameter name > > > > 'computername'. > > > > At line:1 char:26 > > > > + get-service -computername <<<< localhost Quote: > > > > Am I doing something wrong? Quote: > > > According to the get-help for get-service it is for the local > > > computer. Also according to the Windows PowerShell Week Question & > > > Answer log (http://www.microsoft.com/technet/scriptcenter/webcasts/ > > > psweek/day1qanda.mspx): Quote: > > > "Ideally any Cmdlet/command you can run locally you'll also be able to > > > run against remote computers. That isn't the case today: Get-Service > > > will tell you info about the services installed on the local computer, > > > but can't connect to a remote computer." Quote: > > > I know of no way to do it without connecting to the Powershell on the > > > remote machine (RDP, or SSH like the article mentions). Quote: > > > Orrin |
My System Specs![]() |
| | #7 (permalink) |
| | Re: Get-Service -computerName in CTP issue? Clearly the help file shows the parameter and its usage in example #6, but tabcompletion doesn't complete it. Thats what CTP versions are for :-) ----- Shay Levi $cript Fanatic http://scriptolog.blogspot.com Hebrew weblog: http://blogs.microsoft.co.il/blogs/scriptfanatic Quote: > I am trying to run the following command > > get-service -computername localhost > > The help files indicate I should be able to do this however I get the > following error: > > Get-Service : A parameter cannot be found that matches parameter name > 'computername'. > At line:1 char:26 > + get-service -computername <<<< localhost > Am I doing something wrong? > |
My System Specs![]() |
| | #8 (permalink) |
| | Re: Get-Service -computerName in CTP issue? [PoSH]> (get-help Get-Service).SYNTAX Get-Service [[-name] <string[]>] [-include <string[]>] [-exclude <string[]>] [-computerName <string[]>] [<CommonParamet ers>] Get-Service -displayName <string[]> [-include <string[]>] [-exclude <string[]>] [-computerName <string[]>] [<CommonPara meters>] Get-Service [-include <string[]>] [-exclude <string[]>] [-inputObject <ServiceController[]>] [<CommonParameters>] [PoSH]> (gcm get-service).Definition Get-Service [[-Name] <String[]>] [-Include <String[]>] [-Exclude <String[]>] [-Verbose] [-Debug] [-ErrorAction <ActionP reference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>] Get-Service -DisplayName <String[]> [-Include <String[]>] [-Exclude <String[]>] [-Verbose] [-Debug] [-ErrorAction <Acti onPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>] Get-Service [-Include <String[]>] [-Exclude <String[]>] [-InputObject <ServiceController[]>] [-Verbose] [-Debug] [-Erro rAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>] Also Get-Member (Used by Tabcompletion ) will not show the computerName parameter. Lets hope the Help will be correct later and that it's only not yet implemented ;-) Greetings /\/\o\/\/ "Shay Levi" wrote: Quote: > Clearly the help file shows the parameter and its usage in example #6, but > tabcompletion doesn't complete it. > Thats what CTP versions are for :-) > > > ----- > Shay Levi > $cript Fanatic > http://scriptolog.blogspot.com > Hebrew weblog: http://blogs.microsoft.co.il/blogs/scriptfanatic > > > Quote: > > I am trying to run the following command > > > > get-service -computername localhost > > > > The help files indicate I should be able to do this however I get the > > following error: > > > > Get-Service : A parameter cannot be found that matches parameter name > > 'computername'. > > At line:1 char:26 > > + get-service -computername <<<< localhost > > Am I doing something wrong? > > > > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Service troubleshooting issue | Vista General | |||
| Service Pack 1 Issue | Vista General | |||
| Computername | .NET General | |||
| wds + computername | Vista installation & setup | |||
| computername | Vista account administration | |||