Skip to content

Instantly share code, notes, and snippets.

View eguyd's full-sized avatar
🏠
Working from home

GuyD008 eguyd

🏠
Working from home
  • Tollgate
  • San Diego
View GitHub Profile
@eguyd
eguyd / binarytodecimal.py
Created June 22, 2019 21:19
Convert binary to decimal
"""
File: binarytodecimal.py
Converts a string of bits to a decimal
"""
bitString = input("ENTER A STRING OF BITS: ")
decimal = 0
exponent = len(bitString) - 1
for digit in bitString:
decimal = decimal + int(digit) * 2 ** exponent
exponent = exponent - 1
@eguyd
eguyd / configDHCP.ps1
Created June 17, 2019 16:48
Configure DHCP with PowerShell. Include scope and routing.
# Author: Guy Derenoncourt
# Program: DHCP Configuration with PowerShell
# Date Modified: 6/17/19
# Disclaimer: This script is provided "AS IS" with no warranties
#>
# CONFIGURATION
DNSServerIP="10.0.0.10"
DHCPServerIP="10.0.0.10"
StartRange="10.0.0.50"
EndRange="10.0.0.254"
@eguyd
eguyd / AD_addUser.ps1
Created June 16, 2019 03:21
Addd users to AD using CSV bulk upload.
#
#AUTHOR: Guy Derenoncourt
#PROGRAM: MANAGE AD USER WIN SERVER 2016
#
#This Sample Code is provided for the purpose of illustration "AS IS" WITHOUT WARRANTY OF ANY KIND.
#
#
###########################################################################
#
#
@eguyd
eguyd / NLB_Cluster_Deployment.ps1
Created June 16, 2019 01:18
Implement Windows Server 2016 Load Balancing.
#
#AUTHOR: Guy Derenoncourt
#PROGRAM: Script to create a NLB-cluster.
#
#This Sample Code is provided for the purpose of illustration "AS IS" WITHOUT WARRANTY OF ANY KIND.
#
#
###########################################################################
#Set IP for NLB | YOU can change the IP to your desired CLASS
Write-Host "Set NLB IP and change Network adapter" -ForegroundColor yellow
@eguyd
eguyd / VM_DEPLOYMENT.ps1
Created June 11, 2019 15:56
VM Deployement using HyperV
$vSwitch = "Deployment Test"
$VHDXPath = "D:\Hyper-V\Virtual hard disks\VHDXPath\"
$SubMaskBit = "24"
#DOMAIN CONTROLLER SETTINGS
$DCVMName = "TEST-DC01"
$DCIP = "10.0.0.50"
$DomainMode = "WinThreshold"
$ForestMode = "WinThreshold"
$DomainName = "TestDomain.local"