w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Restarting firefox using the developer console (shift+F2) makes every restarted window have the developer console open
The Developer Toolbar is a global thing, just like any other toolbar (e.g. Nav Bar or Bookmarks Bar). Firefox will remember the visiblity state and will restore it when opening new windows, either the usual way, or after a restart.

Categories : Firefox

Can one apply iOS Developer Program ($99/year) and iOS Developer Enterprise Program ($299/year) at the same time?
Nope. Its not possible. If you are already registered for iOS Developer program then you want to go for the Enterprise program then you have to contact Apple for that. Contact Apple If you are already registered for the iOS Enterprise program then you must have to setup new account for iOS developer program. Q : I am already enrolled in the iOS Developer Enterprise Program. Can I add the iOS Developer Program to my existing account? A : No. If you would like to distribute apps on the App Store, you must set up a new Apple ID to enroll in the iOS Developer Program. For more info refer Program Enrollment

Categories : IOS

How to run vbs as administrator from vbs?
If UAC is enabled on the computer, something like this should work: If Not WScript.Arguments.Named.Exists("elevate") Then CreateObject("Shell.Application").ShellExecute WScript.FullName _ , WScript.ScriptFullName & " /elevate", "", "runas", 1 WScript.Quit End If 'actual code

Categories : Windows

Need to run as administrator in C# App
Add an application manifest file from project-->Add File-->Manifest and change this line as <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />

Categories : C#

Run exe using Java as administrator
Please read the help of runas command. NOTE: Enter user's password only when prompted. NOTE: /profile is not compatible with /netonly. NOTE: /savecred is not compatible with /smartcard.

Categories : Java

how to run a command as Administrator mode
I tried this code. Its working if i directly run the batch file i.e test.exe but if i configure this file into Advanced installer and run through .exe file its going into indefinite loop of terminals opening. Just add these codes at the starting of your batch file: @ECHO OFF :: BatchGotAdmin :------------------------------------- REM --> Check for permissions >nul 2>&1 "%SYSTEMROOT%system32cacls.exe" "%SYSTEMROOT%system32configsystem" REM --> If error flag set, we do not have admin. if '%errorlevel%' NEQ '0' ( echo Requesting administrative privileges... goto UACPrompt ) else ( goto gotAdmin ) :UACPrompt echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%getadmin.vbs" echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%getadmin.vbs" "%temp%get

Categories : Postgresql

CakePHP administrator routing
admin=true in a route means your url is prefixed with /admin. So in your example, your /admin route actually connects to: /admin/pages/index, and is serviced by the admin_index() action in your pages controller (as opposed to the non-prefixed index() action). You can either ensure all links to logout are created with admin=false so they map to the standard Users::logout() action, or create a new action admin_logout() which handles admin logouts. Adding manager=true to a url (along with the associated prefix setting) means the url with begin with /manager, and will map to manager_...() functions in the controller. You can use both (or more!) prefixes, but not in the same url. /pages/index maps to: PagesController:index(); /admin/pages/index maps to: PagesController:admin_index(); /ma

Categories : Cakephp

Administrator permission for certain programs
The culprit is User Account Control (UAC). UAC doesn't allow white listing a particular application. You have to disable it to get rid of these messages. To know more about UAC or to diable it see http://www.petri.co.il/disable-uac-in-windows-7.htm

Categories : Misc

Control two websites from a Administrator
I think you should change conception of application: Seems it should be one cakephp application, Application should use cakephp themes in beforeFilter of AppController.php you should check $_SERVER['HTTP_HOST'] and use one or another theme in AppModel you can use right database config. for admin panel ( cms) seems you should use admin routing check it here

Categories : PHP

Using Xcode without Administrator access?
So is there any way I can still use Xcode ? Basically, you need to go find the administrator for the machine and ask them to allow debugging. The reason that Xcode is asking for the administrator password is that the debugger, by its very nature, needs to be able to take control of another process. That's potentially a dangerous thing to allow -- if you can debug another process, you can make it do all sorts of things. An administrator should be able to grant you access to the debugger by adding you to the _developer group. They can use this command: sudo dscl . append /Groups/_developer GroupMembership <username> where <username> is, of course, your userid. That prevents you from having to get the admin to come type their password every time you want to start using th

Categories : Xcode

Wix Burn Bundle - Must be Administrator
You can use the bundle equivalent of launch conditions using Burn's built-in variables and WixBalExtension's Condition element: <bal:Condition Message="You can't elevate."> <![CDATA[Privileged <> 0]]> </bal:Condition> <bal:Condition Message="You're not elevated."> WixBundleElevated = 1 </bal:Condition>

Categories : Wix

C# - cmd run as administrator but cannot execute CHKDSK
Try this: Open your Application "Manifest File". Change the element requestedExecutionLevel to: <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> I had a similar problem once ;-)

Categories : C#

Can't run vb.net application as administrator across network
Make sure that the other computers attempting to run your application have the correct .Net framework versions installed. If users are able to open the executable, there shouldn't be any other issues with permission. If you have verified the framework versions, see if there is anything in the error report that might point to a reason for the crash. A lot of times there may be something in there that can point you in the right direction.

Categories : Vb.Net

Administrator rights for Windows application
If you want your application to always run as administrator, you can specify this in your application's manifest file. Specifically, you will need to add something like this: <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> <security> <requestedPrivileges> <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/> </requestedPrivileges> </security> </trustInfo> More on application manifest files can be found in MSDN.

Categories : C++

How to save LocalGPO for non-administrator group
I'd like to know the answer to this as well. I recently made a Windows 7 kiosk and I'd like to export the changes I made in non-administrators for future reference. It seems that gpresult only looks at what is applied from a domain level.

Categories : Security

Start process as other user as administrator c#
Set : info.UseShellExecute = true; An example : ProcessStartInfo proc = new ProcessStartInfo(); proc.UserName = "usernamer"; proc.Domain = "dm"; proc.Password = securePasswordString; proc.LoadUserProfile = false; proc.UseShellExecute = false; proc.WorkingDirectory = Environment.CurrentDirectory; proc.FileName = Application.ExecutablePath; proc.Verb = "runas"; try { Process.Start(proc); } catch { // The user refused the elevation. // Do nothing and return directly ... return; } Application.Exit(); // Quit itself

Categories : C#

How can i start my application as "Run as Administrator" forcefully?
Add an app.manifest to your solution. In there, under trustInfo --> security --> requestedPrivileges node, uncomment this line: <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> Then you're good to go.

Categories : Wpf

Joomla administrator redirects to installation
Diagnosing The Situation Perhaps you should start with diagnosing the plugins? By removing them all and adding in one by one to see what one causes an issue. As you recently updated, a plugin perhaps is causing this issue as it is outdated and is creating conflictions between the software and the extension. The issue may be based around that the configuration cannot be found, so Joomla presumes you have not installed the software. Have you done all of these? Removed installation folder Checked if .htaccess isn't causing the issue Attempt a downgrade and upgrade?

Categories : PHP

SetAccessControl "unauthorized operation" even when run as administrator
I solved this issue by running takeown in a command shell using a System.Diagnostics.Process. Then I was able to set the access control without error. Strange that takeown works but the equivalent .NET libraries don't.

Categories : C#

Eclipse RCP application starts only as administrator
Double check if you have included the bundle in the feature that you are using in the product configuration of your RCP. Double check if you are using the right symbolic name and if you are requiring the right version. I had a problem like yours because the guava jar was not being copied properly to the target platform at build time. In my case I had to add the following in the feature.xml to ensure the version 0.14.1 was being copied since Eclipse Xtext and other components uses an older one: <requires> <import plugin="com.google.guava" version="0.14.1"/> .... </requires> <plugin id="com.google.guava" download-size="0" install-size="0" version="0.0.0" unpack="false"/>

Categories : Windows

Run process as administrator from a non-admin application
You must use ShellExecute. ShellExecute is the only API that knows how to launch Consent.exe in order to elevate. Sample (.NET) Source Code In C#, the way you call ShellExecute is to use Process.Start along with UseShellExecute = true: private void button1_Click(object sender, EventArgs e) { ProcessStartInfo info = new ProcessStartInfo(@"C:WindowsNotepad.exe"); info.UseShellExecute = true; info.Verb = "runas"; Process.Start(info); } If you want to be a good developer, you can catch when the user clicked No: private void button1_Click(object sender, EventArgs e) { const int ERROR_CANCELLED = 1223; //The operation was canceled by the user. ProcessStartInfo info = new ProcessStartInfo(@"C:WindowsNotepad.exe"); info.UseShellExecute = true; info.Verb = "runas";

Categories : C#

joomla add custom table in administrator
The most effective solution would be to create an administrator component. This will get you started http://docs.joomla.org/J2.5:Developing_a_MVC_Component/Developing_a_Basic_Component Then you can follow this doc for making database queries from within Joomla. Regardless of what you come up with short of writing a component, you will need the 2nd link in order to make data base queries. standard mysql/php doesnt work correctly while inside Joomla.http://docs.joomla.org/J2.5:Accessing_the_database_using_JDatabase

Categories : Joomla

Conditional Windows administrator prompt
You can relaunch your program using ShellExecuteEx with "runas" verb whenever you get E_ACCESSDENIED. Something like this wchar_t szPath[MAX_PATH]; if (GetModuleFileName(NULL, szPath, ARRAYSIZE(szPath))) {`enter code here` // Launch itself as administrator. SHELLEXECUTEINFO sei = { sizeof(sei) }; sei.lpVerb = L"runas"; sei.lpFile = szPath; sei.lpParameters=L"admin"; sei.nShow = SW_NORMAL; if (!ShellExecuteEx(&sei)) { DWORD dwError = GetLastError(); if (dwError == ERROR_CANCELLED) { ExitProcess(0); } } else { ExitProcess(0);

Categories : C++

Let MVC Website start Process as Administrator
As noone commented here I post how I solved the problem. As we host the server I just said via Registry that the console "Administrator" account should log on automatically. In the autostart folder of that User I've put my tool and changed it a bit. The tool now checks every view seconds if a "startCall.txt" file exists and if yes it starts the call. The website just deletes or creates that file. In that way I can control the tool even if it is in a totally different user context (which seemed to be the problem). I know it's a more or less cheap workaround but time wasn't my friend ;-)

Categories : C#

Allow local admins to run application without having to "Run as Administrator"
1 The attribute approach is OK. You just need to handle the security exception correctly (e.g. offer to restart the app as administrator). 2 Hide the admin interface in your app so normal user can use, except you add a "god mode" button somewhere to enable the admin interface in elevated mode. An example is Windows Task Manager requiring elevation to see processes from all users. For sample code for self-elevation, visit How to self-elevate an application to a high privilege level under UAC.

Categories : C#

Windows: Batch File: Only Run as Administrator
Two options: Provoke elevation from a WSH script, like documented in the blog post Scripting Elevation on Vista. Use an external executable that provokes the UAC prompt, such as Elevate32.exe/Elevate64.exe. For your scenario, #2 may be preferable because you can detect whether the elevation prompt was canceled (exit code 1223) and you can also wait for the launched executable to finish before continuing (-w parameter). Bill

Categories : Windows

Team foundation service - set an administrator profile
You have to be an Administrator to delete a project, either project administrator or server administrator. It is a safety feature built in TFS that prevents users deleting a project. If the project was created by mistake then you can ask your administrator to delete it. If you are the administrator, you can delete it from TSF administration console.

Categories : Tfs

Laravel FrozenNode Administrator run in maintenance mode
I've dug in the core, there's no way you can do it. Laravel checks for a file named down in app/storage/meta folder, if it's there, Laravel won't even call the routes, it'll just show the error page. This is isDownForMaintenance function from laravel: public function isDownForMaintenance() { return file_exists($this['path.storage'].'/meta/down'); } There's no configuration possible. An alternative way to the laravelish "maintenance mode" is to set a new value in config/app.php, add: 'maintenance' => true, Then add this to your before filter: App::before(function($request) { if( Config::get('app.maintenance') && Request::segment(1) != 'admin' // This will work for all admin routes // Other exception URLs ) return Response::make(Vie

Categories : Laravel

Joomla pagination is not working in back end (administrator)
Finally I sorted it out! It was a silly mistake! In the template, I didn't put the list content inside a <form> tag. getListFooter() function shows the pagination buttons, but when clicked the action is not submitted anywhere. I corrected the code as shown below and it worked. ==========TEMPLATE=PART==================== ... <div> <form action="<?php echo JRoute::_('index.php?option=com_ciie&view=orders'); ?>" method="post" name="adminForm"> <table> <?php foreach($this->items as $item){ echo "<tr><td>".$item->title."</td></tr>"; } ?> </table> <?php echo $this->pagination->getListFooter(); ?> </form> </div> Thank you all.

Categories : PHP

Symfony 2: protect login page and administrator with ip
Your login is also secured with your ip requirement, so an access denied error you get redirect to the login page, but you get an acces denied too, redirect to the same page, access denied, redirect, and so on. Remove the IP requirement from your login page.

Categories : PHP

Reg export works differently among "service" and "administrator"
That's because Administrator and service account are different accounts with different user hives. HKEY_CURRENT_USER is merely a shortcut to HKEY_USERSS-1-5-21-... where S-1-5-21-... is the SID of the current user. If you want a task running under a service account to export data from another user's hive, you need to load that hive into the registry first and unload it afterwards: reg load HKUTemp C:Usersusername tuser.dat reg export "HKUTempControl PanelDesktop" xxx.reg reg unload HKUTemp You may also need to adjust permissions on the profile folders, because by default only the profile owner (i.e. the respective user) has access to a profile.

Categories : Batch File

Prestashop: How do I change my page title as an administrator
Are you trying to change the site name? You can do this from: Backoffice > Preferences > Store Contacts > Contact details > Shop name If you need to update CMS page: Backoffice > Preferences > CMS > Click Edit on page you want to change -> Meta title

Categories : Misc

Adding custom tabs in administrator interface
Code from wordpress codex 1 . Create a function that contains the menu-building code 2 . Register the above function using the admin_menu action hook. (If you are adding an admin menu for the Network, use network_admin_menu instead). 3 .Create the HTML output for the page (screen) displayed when the menu item is clicked <?php /** Step 2 (from text above). */ add_action( 'admin_menu', 'my_plugin_menu' ); /** Step 1. */ function my_plugin_menu() { add_options_page( 'My Plugin Options', 'My Plugin', 'manage_options', 'my-unique-identifier', 'my_plugin_options' ); } /** Step 3. */ function my_plugin_options() { if ( !current_user_can( 'manage_options' ) ) { wp_die( __( 'You do not have sufficient permissions to access this page.' ) ); } echo '<div class="wrap

Categories : Wordpress

Application Architecture- Administrator Registration & Management
As you say in EDIT part, you should first add an admin account manually. After that, you can simply grant Admin role to any registered user like this: Roles.AddUserToRole(model.UserName, "Admin"); If you want that your admins be completely separated from other users, you should put a user role to ordinary users, and don't let admins to have this role. So, simply add the above code in Register action method of AccountController.cs [HttpPost] [Authorize(Roles="A, Personnels")] [ValidateAntiForgeryToken] public ActionResult Register(RegisterModel model) { if (ModelState.IsValid) { // Attempt to register the user try { WebSecurity.CreateUserAndAccount(model.UserName, model.Password);

Categories : C#

How to create basic administrator component in Joomla3.1?
You could give the Joomla Component Creator a try. http://www.component-creator.com It allows you to build both Joomla 3.1 and 2.5 components. It is free to build simple components.

Categories : Joomla

How can I run a batch command with UAC administrator privilegies at WiX config
This isn't an answer to your question but it should help you author the installer... First, a few things you should consider: RegAsm.exe is probably not licensed for distribution in the way you are doing it. Components generally should have zero or one File elements. Read about component design and "Component Rules"; start here. The registry should be changed through standard Windows Installer tables and actions, not by executables that operate outside of Windows Installer's tracking. Whenever possible, the registry changes should be in the same component as the file being registered—that way, they are sure to come and go together. WiX's heat tool will generate authoring for .NET assemblies. If you are using Visual Studio and/or MSBuild to run WiX, you can use the HarvestFile or Har

Categories : Wix

How to implement captcha on joomla administrator panel?
A third-party extenion jSecure Authentication allows you to add extra security layer to Joomla! administration area. You can download the plugin from http://www.joomlaserviceprovider.com/component/ambrasubs/file/view/5/7.html. Once installed the plugin, follow the steps below: From Joomla! administration panel, click Extensions | Plugin Manager. That shows Plugin Manager screen listing all installed plugins. From the list, click on System – jSecure Authentication link. That shows Plugin:[Edit] screen for the plugin. Select Yes in Enabled field. In Plugin Parameters section, type a secret key in Key field. Check Redirect to index page in Redirect Options field. Click Save button in the toolbar. Now preview the site by clicking on Preview button. Type admin panel’s URL in the address

Categories : PHP

How to ask for administrator privileges in a Windows Batch script?
Two options: Provoke elevation from a WSH script, like documented in the blog post Scripting Elevation on Vista. Use an external executable that provokes the UAC prompt, such as Elevate32.exe/Elevate64.exe. For your scenario, #2 may be preferable because you can detect whether the elevation prompt was canceled (exit code 1223) and you can also wait for the launched executable to finish before continuing (-w parameter). Bill

Categories : Batch File

If you know the windows administrator password is there any way to get past UAC programmatically?
Pretty sure the only way to bypass UAC is to create a Windows Service. This will not ask for credentials when elevating to administrative priveleges.

Categories : Security

Joomla change administrator start page
Edit the administrator template index.php file in administrator/template_name/index.php. Note: to avoid any update problems, you better clone the template if you're looking for a deep customization. Also note that you can add/delete/update/publish/unpublish modules to the administrator template in www.yoursite.com/administrator/index.php?option=com_modules&filter_client_id=1

Categories : Joomla



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.