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
""" | |
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 |
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
# 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" |
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
# | |
#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. | |
# | |
# | |
########################################################################### | |
# | |
# |
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
# | |
#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 |
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
$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" |
NewerOlder