Skip to content

Instantly share code, notes, and snippets.

@SadProcessor
Last active May 16, 2017 10:23
Show Gist options
  • Save SadProcessor/09eb05531c96874b5b7154da64dca261 to your computer and use it in GitHub Desktop.
Save SadProcessor/09eb05531c96874b5b7154da64dca261 to your computer and use it in GitHub Desktop.
TimeStamp Object
Function Get-Stamp{$Props = @{'Box'=$env:COMPUTERNAME;'MAC'= (Get-NetAdapter -Physical)[0].macaddress;'Stamp'=(Get-Date).DateTime};$Obj = New-Object PSCustomObject -Prop $Props | select MAC,Stamp,Box;Return $Obj};Get-Stamp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment