Skip to content

Instantly share code, notes, and snippets.

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

DXPetti

🏠
Working from home
View GitHub Profile
# Import list of Users From CSV into $Userlist
$UserList=IMPORT-CSV driveletter:\pathtofile.csv
# Step through Each Item in the List
FOREACH ($Person in $UserList) {
# Build Username
<#
.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
<#
.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