Alex
asked on
I'll learn this eventually and stop asking stupid questions
OK
Checking for a service on 8000 tills, I'm therefore testing it on one till at the moment :-)
Error here
Invoke-Command : Parameter set cannot be resolved using the specified named parameters.
At C:\Powershell Projects\TillSC\SCQuery.ps 1:3 char:36
+ ... mputer in $computers) {Invoke-Command "SC \\$Computers Query Browser"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-Command], ParameterBindingException
+ FullyQualifiedErrorId : AmbiguousParameterSet,Micr osoft.Powe rShell.Com mands.Invo keCommandC ommand
WHY DOESN'T THIS WORK
Cheers
Alex
Checking for a service on 8000 tills, I'm therefore testing it on one till at the moment :-)
$Computers = Get-content "C:\Powershell Projects\TillSC\till.txt"
foreach ($computer in $computers) {Invoke-Command "SC \\$Computers Query Browser"
}
Error here
Invoke-Command : Parameter set cannot be resolved using the specified named parameters.
At C:\Powershell Projects\TillSC\SCQuery.ps
+ ... mputer in $computers) {Invoke-Command "SC \\$Computers Query Browser"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-Command], ParameterBindingException
+ FullyQualifiedErrorId : AmbiguousParameterSet,Micr
WHY DOESN'T THIS WORK
Cheers
Alex
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Legend.................... .... Wait for it........................ .......... ....dary!! !!!
ASKER
That's pretty, I like that, thank you :-)