This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'############################################################################# | |
'# Procedure: WUA_SearchDownloadInstall.vbs | |
'# Author: Microsoft/Scott Vintinner | |
'# Last Edit: 07/14/2014 | |
'# Purpose: This script will trigger a Windows Update on this computer | |
'# Notes: Must be run as administrator | |
'# Source: http://msdn.microsoft.com/en-us/library/aa387102%28VS.85%29.aspx | |
'############################################################################# | |
Option Explicit | |
Dim scriptShell, fs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param($global:RestartRequired=0, | |
$global:MoreUpdates=0, | |
$global:MaxCycles=10) | |
function Check-ContinueRestartOrEnd() { | |
$RegistryKey = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" | |
$RegistryEntry = "InstallWindowsUpdates" | |
switch ($global:RestartRequired) { | |
0 { | |
$prop = (Get-ItemProperty $RegistryKey).$RegistryEntry |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'tempfile' | |
require 'fileutils' | |
COPYRIGHT=%Q( | |
## | |
# Author: AUTHOR NAME | |
# Copyright: Copy right message | |
# | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV["RAILS_ENV"] ||= 'test' | |
# begin | |
# require 'rubygems' | |
# require 'spork' | |
# rescue LoadError => e | |
# end | |
def load_all(*patterns) | |
patterns.each { |pattern| Dir[pattern].sort.each { |path| load File.expand_path(path) } } |