Body
NOTE: Please first request this access from the IT Help Desk at IT.Help@skagit.edu
IT Policy is to restrict Local Admin access as it exposes our systems to security vulnerabilities; please include your business justification that requires this access above and beyond IT support technicians supplying it on a case by case basis.
Admin Elevation
This elevation procedure provides just in time authorization while logging all access requests for security auditing and reporting.
-
Navigate to https://myaccount.microsoft.com
-
Expand the "My Access" heading in the left hand navigation page and select the "Roles" option.
-
Click the "Groups" tab on the Roles page.
-
Click the "⚡Activate" button for the local admin access you need activate.
-
Enter the business justification for enabling local admin access; detail any software requesting local admin and any processes you will follow with those admin rights enabled.
-
You can click the customize button if you want to shorten the duration of this activation.
-
Click the Activate button to continue.
-
Continue below at Local Admin Group Membership Sync
Local Admin Group Membership Sync
Elevating your rights in the prior steps is only half of the puzzle for granting local admin rights. Microsoft has designed their cloud infrastructure to only synchronize these settings to the computer every few hours. So now we need to manually sync your machine with the cloud.
To synchronize your machine, first save and close all applications, then double click the SyncEntra.cmd script on your desktop.
If you have not yet created the SyncEntra.cmd script on your desktop, you can do so following the steps below.
-
Open notepad on your computer
-
Paste the code contents of the below yellow script box into notepad
-
Select File and "Save As" from within the Notepad menu
-
Change the "Save as type" from Text documents (*.txt) to All files (*.*)
-
Note: Skipping this step will save the file as a text file rather than a script.
-
Name the file
EntraSync.cmd
-
Navigate to your desktop within the Save dialog box and then click the Save button
-
You can now double the EntraSync.cmd script on your desktop to synchronize your computer with Entra to receive your elevated admin rights.
@echo off & title SVC Information Technology & echo Checking for local administrator rights... & echo.
whoami /groups | findstr "S-1-5-32-544" >nul
if %errorlevel% equ 0 (
echo SUCCESS: Your account is a member of the local Administrators group. & echo No additional action is required.
echo. & pause & exit /b 0
)
echo Administrator rights were not detected. & echo Refreshing Entra authentication token... & echo.
REM Wait a bit in case PIM was only just elevated. & echo. & echo ...
PowerShell.exe -command start-sleep 5
echo. & echo ... & echo.
dsregcmd /refreshprt
echo. & echo Refresh completed.
echo. & echo You now need to sign out and back in for the admin rights to take effect.
echo Close all other windows and save all documents. & echo Then press enter to sign out.
echo. & pause & logoff