
PramodR
Active Members-
Posts
33 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
PramodR's Achievements

Seeker (1/7)
0
Reputation
-
Thankyou very much ..
-
PramodR reacted to a post in a topic: #include specific module
-
I see couple of ways to import module , one with specifying absolute path of the file to get imported, by this logic i believe to import a specific module will be like #include <c:\modulepath\duplicatemodule.au3> but i see some registry changes also made in this link , can someone explain why that registry change is really required.
-
PramodR reacted to a post in a topic: Executing EXE in Elevated Previllage
-
PramodR reacted to a post in a topic: Executing EXE in Elevated Previllage
-
Executing EXE in Elevated Previllage
PramodR replied to PramodR's topic in AutoIt General Help and Support
Thanks Guys for Help. . This Forum Rocks -
Executing EXE in Elevated Previllage
PramodR replied to PramodR's topic in AutoIt General Help and Support
Removing Screenshot as its revealing few info -
Executing EXE in Elevated Previllage
PramodR replied to PramodR's topic in AutoIt General Help and Support
@Subz THankyou very much for your help . Scripts working with below command after adding requireadmin.i i still see error in console as errorstd out why that error is coming? RunWait(@WindowsDir & "C:\automation\TestScripts\Writefilter.exe", @WindowsDir, @SW_MAXIMIZE) -
PramodR reacted to a post in a topic: Executing EXE in Elevated Previllage
-
PramodR reacted to a post in a topic: Executing EXE in Elevated Previllage
-
Executing EXE in Elevated Previllage
PramodR replied to PramodR's topic in AutoIt General Help and Support
i am really sotrry for that silly mistake , i was trying different files and accidentally mistypes... is it okay if i replace it with complete path to my exec instead of notepad ? below command i replaced and i get the error again as errorstd out.. Thanks Subs in advance.. Local $iPID = RunAs($sUserName, @ComputerName, $sPassword, 0, "C:\executeauto\Testfilter.exe", "", @SW_SHOWMAXIMIZED) -
Executing EXE in Elevated Previllage
PramodR replied to PramodR's topic in AutoIt General Help and Support
added used code above and getting error message as std out with notepad itself, i think i m doing something wrong. -
I am trying to execute a exe file in auto it as elevated previlage , but not successful till now . below are the methods i tried till now. Disabled UAC access from windows and selected run only as administrator from executable properties. i logged in as administrator but still exe needs to launch as run as administrator. Used Below methods from forum still no luck. anything i missing? i tried to use powershell.ps1 intead of exe as well. 1. Local $iPID = RunAs($sUserName, @ComputerName, $sPassword, $RUN_LOGON_NOPROFILE, "c:\Exec.exe", "", @SW_SHOWMAXIMIZED) 2. RunWait("C:\Automation\TestScripts\Writefilter.exe", @WindowsDir, @SW_MAXIMIZE) - Std out error This command gives out put as running with admin rights #include <MsgBoxConstants.au3> #include <AutoItConstants.au3> #include <MsgBoxConstants.au3> #RequireAdmin Example() Func Example() ; Change the username and password to the appropriate values for your system. Local $sUserName = "Admin" Local $sPassword = "PASSWORD" Local $iPID = RunAs($sUserName, @ComputerName, $sPassword, 0, "noetpad.exe", "", @SW_SHOWMAXIMIZED) ; Run Notepad with the window maximized. Notepad is run under the user previously specified. ;~ RunWait(@WindowsDir & "C:\automation\TestScripts\Writefilter.exe", @WindowsDir, @SW_MAXIMIZE) EndFunc
-
Error Handling in Code - (Moved)
PramodR replied to PramodR's topic in AutoIt General Help and Support
Thankyou IsObj helped Me . -
PramodR reacted to a post in a topic: Error Handling in Code - (Moved)
-
Hello, I have below code which execute well when all prerequisite met, when window pop up is not available its throwing an error. i want to capture error instead of error out. error handling added in the code to capture it but it does not work still giving me error saying Variable must be of type "Object". $oCurWin.FindAll($treescope_subtree, $oCondition, $pElements) $oCurWin^ ERROR How to catch error properly .
-
Auto IT Read Value from windows Pop UP - (Moved)
PramodR replied to PramodR's topic in AutoIt General Help and Support
any sample script to read value from windows will help... -
Hello, i am new to AUTO IT development , I would like one help to read value from a POP up. i am able to read below values using inspect tool , information given below, I tried to create a script to read value but that does not help. any help is appreciated. Available Controls POPUP window Controls Auto Id = "UpdateNow_Btn" Name = Update Now Invoke - Button Control Below Controls i get when i move inspector tool to the text which i need to read. i need to read the text Name . Currently with my code i get only blank text Auto Id = timeOutLb ClassName = TextBlock LegacyIAccess = GetName Name = Read Value for Name My code.
-
Run WMIC command in elevated previlage
PramodR replied to PramodR's topic in AutoIt General Help and Support
@Everyone However i could not elevate powershell window automatically but I am able to solve this problem by reducing only security level for specific WMI Class. By manual you can navigate to wmimgmt.msc and add your user.. if you have to add by automation use script available in the below link, after this you no longer needs to elevate power shell console. https://live.paloaltonetworks.com/t5/Management-Articles/PowerShell-Script-for-setting-WMI-Permissions-for-User-ID/ta-p/53646 Thanks everyone for your effort. Regards Pramod R- 34 replies
-
Run WMIC command in elevated previlage
PramodR replied to PramodR's topic in AutoIt General Help and Support
@Subz I am looking to get Current Values set in BIOS for each BIOS tokens, Eg: enable or Disable numlock.- 34 replies
-
Run WMIC command in elevated previlage
PramodR replied to PramodR's topic in AutoIt General Help and Support
Hope you mean below settings. Navigate to the following path using the sidebar folder structure: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System ConsentPromptBehaviorAdmin 0: A value of 0 allows administrators to perform operations that require elevation without consent (meaning prompts) or credentials (meaning authentication). Note:- This Registry is basically keeping your UI UAC settings to lower, means when you change from UAC UI also this registry will get changed to 0. @TheXman Thanks for All your suggestions.- 34 replies