Skip to content

Instantly share code, notes, and snippets.

@rjt
Last active August 29, 2015 14:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjt/a98f6adba54e5b11d3b0 to your computer and use it in GitHub Desktop.
Save rjt/a98f6adba54e5b11d3b0 to your computer and use it in GitHub Desktop.
#Unexpected token '3c-0c' in expression or statement.
#You must provide a value expression following the '-' operator.
[string]$Mac3='00-16-d4-08-3c-0c';
$Mac3.GetType() #returns string.
$dhcpEntry.Item("ClientId")
#Get-DhcpS does not find the entry some of the time. If i put in the number directly, it will work.
Get-DhcpServerv4Reservation -ClientId $Mac3 -ScodeID 10.0.100.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment