Skip to content

Instantly share code, notes, and snippets.

View john-clark's full-sized avatar
🛸
Out there

John Clark john-clark

🛸
Out there
View GitHub Profile
cscript wincomputerinfo.vbs
@for %i in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do @%i: 2>nul && set/pz=%i <nul
/*
* jQuery 1.2.3 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* $Date: 2008-02-06 00:21:25 -0500 (Wed, 06 Feb 2008) $
* $Rev: 4663 $
*/
@john-clark
john-clark / about.txt
Last active December 15, 2015 09:39
Windows 8 Startmenu
Several scripts for Windows 8 (not 8.1)
Gives a start menu button with shutdown and several other fixes.
@john-clark
john-clark / i.pxe
Last active February 27, 2023 21:46
ipxe php boot system
#!ipxe
#
# This file gets compiled into undionly.kpxe
################################################################
:vars
set next-server 192.168.2.121
cpuid --ext 29 && set arch amd64 || set arch x86
:netconfig
dhcp net0 || goto ipxeshell
:prompt
@john-clark
john-clark / about.txt
Last active September 15, 2022 15:44
some windows admin stuff
Some windows commands I find useful.
@john-clark
john-clark / SET-WDS-PXE.CMD
Last active September 15, 2022 15:40
windows deployment server
@ECHO OFF
ECHO Before using this make sure all file types are allowed
ECHO Use clear-tftfpfilter.reg @ https://gist.github.com/john-clark/5360694/
:: Command line error check:
IF "%1"=="" GOTO Syntax
:: Check default
IF "%1"=="default" GOTO ResetWDS
@john-clark
john-clark / embedme.kkpxe
Last active September 15, 2022 15:45
ipxe script for wds created by johnrclark3@gmail.com
#!ipxe
set use-cached 1
dhcp || goto dhcpfail
cpuid --ext 29 && set arch x64 || set arch x86
:prompt
prompt --key 0x02 --timeout 2000 Press Ctrl-B to break boot sequence... && goto ipxeshell ||
chain -ar http://${next-server}/boot/strap.asp && goto exit || echo ERROR: Can't chain to http://${next-server}/boot/strap.asp
echo Lets try again...
goto prompt
:dhcpfail
DISM Capture and Deploy
-----------------------
1. Create a windows install
a. Boot & install from windows media
(DVD, ISO, USB, PXE)
b. Customize
i. Run through install until customize screens
ii. Enter Audit mode
(press CTRL+SHIFT+F3 at first install screen)
iii. Configure, Update, and Install software
@john-clark
john-clark / raa.wsf
Created October 25, 2013 14:48
wip to automate remote assistance
<job id="Partially works">
'filename raa.wsf
<script language="VBScript">
'setup
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Const TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0
Set oShell = createobject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objHTTP = CreateObject("Microsoft.XMLHTTP")