Skip to content

Instantly share code, notes, and snippets.

View tjmichael81's full-sized avatar

Timothy Michael tjmichael81

View GitHub Profile
@tjmichael81
tjmichael81 / QBServiceChecker.ps1
Last active October 26, 2018 12:46
Basic PowerShell script to check the status of a Windows service, and start the service if the status is 'Stopped'
#requires -version 2
<#
.SYNOPSIS
PowerShell script to check the status of a Windows service, and start the service if status is 'Stopped'
.DESCRIPTION
PowerShell script to check the status of a Windows service, and start the service if status is 'Stopped'
.PARAMETER <Parameter_Name>
None
-- Create table for PGH 311 requests
create table if not exists pgh_311_requests (
REQUEST_ID integer,
CREATED_ON varchar,
REQUEST_TYPE varchar,
REQUEST_ORIGIN varchar,
STATUS integer,
DEPARTMENT varchar,
NEIGHBORHOOD varchar,
COUNCIL_DISTRICT integer,