to require admin privileges add into your app.manifest this line
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
to check for privileges:
if not My.User.IsInRole(ApplicationServices.BuiltInRole.Administrator) then
msgbox "Sorry you have to be an administrator"
end if
Reputation Points: 208
Solved Threads: 168
Practically a Master Poster
Offline 692 posts
since Jun 2009