Skip to content

Instantly share code, notes, and snippets.

@JohnL4
Last active April 18, 2024 21:02
Show Gist options
  • Save JohnL4/f6b4073d29da22e58222540092000746 to your computer and use it in GitHub Desktop.
Save JohnL4/f6b4073d29da22e58222540092000746 to your computer and use it in GitHub Desktop.
Check on certain windows processes & services
get-service sisense* | select Status,Name,StartType | ft -au -wr
Get-CimInstance -ComputerName p8SisMnWeb01s,p8SisMnWeb02s,p8SisMnWeb03s -ClassName Win32_Service `
| ? {$_.Name -match 'sisense.*'} `
| select PSComputerName,State,ProcessID,Name,StartMode,StartName `
| sort PSComputerName,Name `
| ft -au -wr
ps *Sisense*,*Elasticube* | select ProcessName,StartTime,Path,Description | sort StartTime -desc | ft -au -wr
get-service sisense.configuration, sisense.housekeeper, sisense.discovery | restart-service -pass
#----------------------------------------------------------------------------------
$machs = @("p8SisMnBld01s","p8SisMnWeb01s","p8SisMnWeb02s","p8SisMnWeb03s")
$machs = @("p8SisBld01t","p8SisWeb01t","p8SisWeb02t","p8SisWeb03t")
get-service sis* -computer $machs `
| ? {($_.StartType -ne "Disabled") -and ($_.Status -ne "Running")} `
| select MachineName,StartType,Status,Name `
| ft -au -wr
get-service *sisense* | ? {($_.StartType -ne "Disabled") -and ($_.Status -ne "Running")} | select StartType,Status,Name,MachineName | ft -au -wr
#----------------------------------------------------------------------------------
ps *Sisense*repository* -computername p8sismnweb02s,p8sismnweb01s,p8sismnweb03s,p8sismnbld01s | sort workingset64 -desc | sel workingset64,machinename,processname
get-service *sisense*repository* -computername p8sismnbld01s | restart-service
get-service Sisense.ECMS | restart-service -pass | select Name,StartType,Status,Description
$svcs = @("Sisense.Configuration", "Sisense.HouseKeeper", "Sisense.Discovery", "Sisense.Repository")
get-service $svcs | select Name,StartType,Status,Description | ft -au -wr
$svcs = @("Sisense.Configuration", "Sisense.HouseKeeper", "Sisense.Discovery", "Sisense.Repository", "Sisense.JVMConnectorsContainer", "Sisense.ECMS", "Sisense.ECMServer")
get-service $svcs | ? {$_.StartType -eq 'Automatic'} | restart-service -pass -vb | ft -au -wr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment