This file contains 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
<# | |
.Synopsis | |
Search DHCP for the specified MAC address | |
.DESCRIPTION | |
This function enumerates through each scope in either a defined site or the current site and displays any DHCP lease or reservation that matches the MAC address specified | |
.EXAMPLE | |
Get-Mac -Mac 000000000000 | |
.EXAMPLE | |
Get-Mac -Mac 0000 -DhcpSite CONTOSO | |
.EXAMPLE |
This file contains 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
<# | |
.DESCRIPTION | |
Powershell script that prompts user to accept license followed by installation of font and license files | |
.PARAMETERS | |
None - execute directly from Powershell | |
.Version | |
1.3 | |
.Author | |
James Pettigrove | |
.Compatibility |
This file contains 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
<# | |
.DESCRIPTION | |
Powershell script to add DHCP vendor class and policies to allow Legacy BIOS based network booting (PXE) based upon information sent by client detailed in RFC 4578 (https://tools.ietf.org/html/rfc4578) | |
.PARAMETERS | |
None - execute directly from Powershell | |
.VERSION | |
1.0 | |
.AUTHOR | |
James Pettigrove | |
.COMPATIBILITY |
This file contains 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
<# | |
.DESCRIPTION | |
Powershell script to remove DHCP policies that allows Legacy BIOS based network booting (PXE) based upon information sent by client detailed in RFC 4578 (https://tools.ietf.org/html/rfc4578) | |
.PARAMETERS | |
None - execute directly from Powershell | |
.VERSION | |
1.0 | |
.AUTHOR | |
James Pettigrove | |
.COMPATIBILITY |
This file contains 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
<# | |
.Synopsis | |
Install MiniKube + Kubectl | |
.DESCRIPTION | |
This script downloads the executables for MiniKube, Kubectl, configures Hyper-V as the hypervisor (if not configured already) | |
together with configuring a specific network adapter for use with the Minikube virtual machine | |
.EXAMPLE | |
Install-MiniKube | |
.NOTES | |
Version: 1.0 |
This file contains 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
# As per https://portal.msrc.microsoft.com/en-us/security-guidance/advisory/ADV200001 | |
takeown /f $ENV:windir\syswow64\jscript.dll | |
cacls $ENV:windir\syswow64\jscript.dll /E /P everyone:N | |
takeown /f $ENV:windir\system32\jscript.dll | |
cacls $ENV:windir\system32\jscript.dll /E /P everyone:N |
This file contains 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
# As per https://portal.msrc.microsoft.com/en-us/security-guidance/advisory/ADV200001 | |
cacls $ENV:windir\system32\jscript.dll /E /R everyone | |
cacls $ENV:windir\syswow64\jscript.dll /E /R everyone |
This file contains 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
<# | |
.Synopsis | |
Restore select Ad Attributes from a mounted AD DS database | |
.DESCRIPTION | |
This cmdlet will take a OU path as input, takes a backup of the attributes of all users | |
in said OU, import the attributes from a currently mounted AD DS database into a | |
hashtable, loop through each user in the OU and apply said attributes. Finally, a export | |
of the users current attributes is saved in the same path as the backup for before/after | |
comparisons | |
.EXAMPLE |
OlderNewer