Last active
May 16, 2017 10:23
-
-
Save SadProcessor/09eb05531c96874b5b7154da64dca261 to your computer and use it in GitHub Desktop.
TimeStamp Object
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
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