Skip to content

Commit

Permalink
commit-2022-09-11 14:59
Browse files Browse the repository at this point in the history
  • Loading branch information
PrettyBoyCosmo committed Sep 11, 2022
2 parents 64614fc + e944c33 commit 4136486
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .obsidian/graph.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
"repelStrength": 10,
"linkStrength": 1,
"linkDistance": 250,
<<<<<<< HEAD
"scale": 1.0000000000000009,
=======
"scale": 0.7761451769739336,
>>>>>>> origin/main
"close": false
}
13 changes: 13 additions & 0 deletions .obsidian/workspace
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
},
"active": "7b08e31842a41fe1",
"lastOpenFiles": [
<<<<<<< HEAD
"ROADMAP.md",
"README.md",
"Nmmi_Cadet.md",
Expand All @@ -140,5 +141,17 @@
"redro.md",
"user3.md",
"user2.md"
=======
"README.md",
"redro.md",
"user1.md",
"burgerking-wifi.md",
"guest-wifi.md",
"user3.md",
"user2.md",
"ROADMAP.md",
"file.md",
"curl.md"
>>>>>>> origin/main
]
}
5 changes: 2 additions & 3 deletions main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function Get-fullName {

}

# If no name is detected function will return $env:UserName
# If no name is detected function will return NA

# Write Error is just for troubleshooting
catch {Write-Error "No name was detected"
Expand Down Expand Up @@ -118,14 +118,13 @@ function wireless_markdown {
}
return $wifi_json
}

# mark user information
function user_markdown {

# general values
$full_name = Get-fullName
$email = Get-email
$is_admin = ($currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
$is_admin = (Get-LocalGroupMember 'Administrators').Name -contains "$env:COMPUTERNAME\$env:USERNAME"

# geolocation values
$GL = (Get-GeoLocation) -split " "
Expand Down

0 comments on commit 4136486

Please sign in to comment.