Day 1
Day 1
TypeName: System.ServiceProcess.ServiceController
TypeName: System.ServiceProcess.ServiceController
PS C:\Windows\system32> Get-History
Id CommandLine
-- -----------
2 (get-count).count
3 (Get-Command).count
4 get-command service
5 get-command *service*
6 get-command *service* -CommandType cmdlet
7 get-command *service* -CommandType application
8 get-command *service* -CommandType cmdlets
9 get-command *service* -CommandType cmdlets
10 get-command *service* -CommandType cmdlets
11 get-command *service* -CommandType cmdlet
12 help get-ser
13 cls
14 help Get-Service -Examples
15 help Get-Service -full
16 cls
17 help Get-Service -Detailed
18 cls
19 help Get-Service -Examples
20 Get-Service
21 Get-Service s*
22 Get-Service s*,w*
23 cls
24 Get-Service -DisplayName *network*
25 Get-Service -name win* -Exclude winarm
26 Get-Service -name win*
27 Get-Service -name win* exclude winrm
28 Get-Service -name win* -Exclude winarm
29 Get-Service -name win* -Exclude winrm
30 Get-Service | Get-Member
31 Get-Service -name spooler
32 Get-Service -name spooler -computername localhost
33 Get-Service -name spooler -computername localhost | gm
PS C:\Windows\system32> Invoke-Command 33
Invoke-Command : Parameter set cannot be resolved using the specified named par
ameters.
At line:1 char:15
+ Invoke-Command <<<< 33
+ CategoryInfo : InvalidArgument: (:) [Invoke-Command], Parameter
BindingException
+ FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.PowerShell.Comma
nds.InvokeCommandCommand
PS C:\Windows\system32> Invoke-Command 32
Invoke-Command : Parameter set cannot be resolved using the specified named par
ameters.
At line:1 char:15
+ Invoke-Command <<<< 32
+ CategoryInfo : InvalidArgument: (:) [Invoke-Command], Parameter
BindingException
+ FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.PowerShell.Comma
nds.InvokeCommandCommand
PS C:\Windows\system32> Start-Transcript