Skip to content

Instantly share code, notes, and snippets.

View mattfromit's full-sized avatar

Matt Williams mattfromit

View GitHub Profile
@mattfromit
mattfromit / Test-RebootRequired.ps1
Created October 28, 2015 13:33 — forked from altrive/Test-RebootRequired.ps1
Check pending reboot on local computer
#Based on <http://gallery.technet.microsoft.com/scriptcenter/Get-PendingReboot-Query-bdb79542>
function Test-RebootRequired
{
$result = @{
CBSRebootPending =$false
WindowsUpdateRebootRequired = $false
FileRenamePending = $false
SCCMRebootPending = $false
}
CREATE TABLE country (
id int NOT NULL PRIMARY KEY,
iso char(2) NOT NULL,
name varchar(80) NOT NULL,
nicename varchar(80) NOT NULL,
iso3 char(3) DEFAULT NULL,
numcode smallint(6) DEFAULT NULL,
phonecode int(5) NOT NULL,
);