pbowden-msft / RegMAU

Microsoft Office 365/2019/2016 Register AutoUpdate
10 stars 3 forks source link

Update RegMAU (proposed 1.2 changes) #2

Closed neilmartin83 closed 5 years ago

neilmartin83 commented 5 years ago

Suggested changes from me to make the script a bit more idempotent:

Get the logged in username using this method: http://erikberglund.github.io/2018/Get-the-currently-logged-in-user,-in-Bash/ and always use that instead of $USER

Have left the detection of $1 to / so the script will continue to work with Jamf without the --Register parameter present.

This should solve Issue #1

pbowden-msft commented 5 years ago

Thanks!