Jump to content
Sign in to follow this  
caramen

Is there a way to detect admin ?

Recommended Posts

caramen

I am explaining :

I got my migration's script working fine now BUT... :) for one command i need to lunch the script in admin

and for others command i need to be user cause i am using @user parameters

i got that system in place :

Migration not done = Red color GUI

Migration done = Green color GUI

I whant to do :

Migration script runed with double click = no change

Migration script runed as = gui blue color or something like that

who can give me a way to work about that i realy dont got idea about how i can do that

how to say in my script something like that

if processexist Migration profil.EXE runed as LocalAdminUsername then Guibkground color = xx

hope i am clear enouth xD


IUIAutomation From Junkew || WebDriver From Danp2 || And Water's UDF in the Quote|| >>HIt The Thanks Button.<<

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
caramen

IsAdmin

Checks if the current user has full administrator privileges.

the thing i want is check if the script got administrator privileges in user session.

because i am running the script as admin in user session

so to be clear it s not what i need :)

exept is you say me that function can support something like that:

just a logic exemple

$script = if _processexist (script.exe) then

if $script isadmin then 
GuiCtrtSetBkColor ($GUI1)
Edited by caramen

IUIAutomation From Junkew || WebDriver From Danp2 || And Water's UDF in the Quote|| >>HIt The Thanks Button.<<

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
caramen

ahhh yep !

I gonna try and resolve the topic if that work

Thx.


IUIAutomation From Junkew || WebDriver From Danp2 || And Water's UDF in the Quote|| >>HIt The Thanks Button.<<

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×