The Get-SmWindowsService cmdlet gives information about the Simply Migrate Batch Service(s) you have deployed.
- /
- /
- /
Get-SmWindowsService
Detailed Description
Syntax
Get-SmWindowsService [<CommonParameters>] Get-SmWindowsService [[-ServiceId] ] [<CommonParameters>] Get-SmWindowsService [[-MachineName] ] [<CommonParameters>] Get-SmWindowsService [[-BatchId] ] [<CommonParameters>]
Parameters
-BatchId <int> Specify Batch Id Required? false Position? 2 Accept pipeline input? false Parameter set name ByBatchId Aliases None Dynamic? false -MachineName <string> Specify Machine Name Required? false Position? 1 Accept pipeline input? false Parameter set name ByMachine Aliases None Dynamic? false -ServiceId <string> Specify Service Id Required? false Position? 0 Accept pipeline input? false Parameter set name ById Aliases None Dynamic? false <CommonParameters> This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Examples
Get-SmWindowsService can be used with no parameters to return all Batch services you have installed.
Get-SmWindowsService
Id : 5f80db2d-9eeb-410c-a8e0-129182f554f6
BatchId : 1
MachineName : Server1
ServiceName : SimplyMigrateBatchService$Batchid1
IsInteractive : False
Status : Running
Id : bcfd0c31-cb0f-404a-9fb5-fa65aaeeb4cd
BatchId : 2
MachineName : Server2
ServiceName : SimplyMigrateBatchService
IsInteractive : False
Status : Stopped