How to start apache2.4 service as administrator - windows

I am trying make ODBC connection using Xampp.
When i run apache2.4 as service it runs with local user credentials and it shows access denied error. But when i run Xampp as admin and start it manually it works fine. So my question is how do i run apache2.4 service as administrator. P.S. I am using Windows 7.

Bring up the Services (services.msc) application. Find the Apache service and double click it.
Click "Log On" tab and click "This account:" and enter the credentials for your Administrator account.
Alternatively
Do the above but rather than the "Log On" tab, grab the Path to the executable: and navigate to its folder using Windows Explorer and right-click on the executable and click Properties and click Compatibility.
Make sure "Run this program as an administrator" is ticked and click OK.
You should be good to go!

Related

How to Run a Windows store app at startup if "open file location" option is not available?

While tryng to get the app "Maister Task" to run at startup I ran into the issue that, if the app is not already displayed in the startup manager, the method shown by the Windows 10 documentation to run apps at startup states that "If there isn't an option for Open file location, it means the app can't run at startup."
Is there a workarround?
One possible workarround:
open "Run" (Windows key + R)
Type: shell:AppsFolder
Locate the app that you want to run at startup.
Right click on app icon and select "Create shortcut"
Select destination of the shortcut.
Open "Run" again and type shell:startup
Add the shortcut that you created in step 4 to this folder.
Now the program will be launched when Windows is started.

How to start tomcat service automatically on windows server?

I want to start the tomcat service automatically before user login,but I can not modify the settings in the services.msc. what can I do ?
If you've installed Tomcat as a service, you can configure it to start automatically when the computer boots:
Start > Settings > Control Panel > Administrative Tools > Services (for open service)
then right Click "Apache Tomcat" > Properties
then Set "Startup Type" to Automatic
Now click Start or restart your pc
You must login as administrator to change items in services.msc . This is a tutorial about this: How to Log in as an Administrator on Windows 7

windows remote desktop can't connect even if the firewall is off

I am trying to let my pc, which run at win7, accessible remotely, but I am able to. I did the following:
checking "Allow Remote assistance connection to this computer.
a set a password for my account.
I setup the port forwarding on my router.
set my remote desktop communction program feild in my firewall,
ZonAlarm, to allow for everything.
yet it does not connect to my laptop remotely.
I even tried to see if I can connect to the same laptop from itself - usually it connects and try to load the windows but then fail loading. however even this test fail -
I have no other idea.
Any tips?
Running Windows 7 / Service pack 1
Make sure account has a password and you can ping the host
Start Button → (Right Click Computer) → Properties
Select Remote Settings on left of window
(if not selected) Select Remote tab
Select Option "Allow connections… running any version…"
Select OK
Restart Host (Sometime not necessary but to be sure)
Try to connect
If above fails Start Task Mgr (Start Button → cmd → TaskMgr) or (ctrl-alt-del)
Select Services Tab
Look for "TermService"
Right Click TermService and select start
If Access Denied Error
On Services Window Select Services Button (Bottom Right)
Find "Remote Desktop Services" Right Click select Properties
Set Startup type to "Automatic"
Right Click "Remote Desktop Services" select Start
I think you are forgetting something,
1.Set password for the account.
2.Check "Allow Remote assistance connection to this computer.
3.System properties>Remote>Remote Desktop>Select "Allow connections from computer running any version of remote Desktop"
4.open port 3389(default RDP port)
If you changed username of the account be aware that only name that's being displayed in windows changed.
run netplwiz and just change account name in there - it should work fine.
Posting it here in case someone runs in same problem in the future.
I fixed it by adding a user to the 'Select Users' list in Remote in system properties

BGInfo error occurred opening the Default Desktop registry key

Running the very nice BGInfo tool to uniquely identify various computers. However, in trying to run on Windows 2008 Server R2, I am getting following error:
"An error occured opening the Default Desktop registry key. Please ensure the current user has rights to change the Logon Desktop settings: Access is denied."
The program is started via a shortcut placed in "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup", and that shortcut is specifying a .BGI configuration file (versus reading settings from the Registry). Thoughts on why the error happens for user other than the Administrator?
On a more in-depth level, I am curious if anyone knows why BGInfo must open the "default desktop registry key" and what it is updating in the "logon desktop settings" (phrase in quotes taken from the original error message)?
BGInfo needs to update the registry to set a default login desktop for all RDP users.
You need to run BGInfo with elevated privileges initially. That can be done as described by creed929 or by right-clicking on bginfo.exe and running as administrator. Once the settings are saved, subsequent user logins will not need the elevated privilege to see the BGInfo background.
From an administrator account. I was able to right click on bginfo.exe. Go to Compatibility tab and check the Run this program as an administrator. This seemed to then allow me to apply the settings without the Default Desktop registry key error.

Can't add new Redirected Port in Windows 7 after installing RedMon

My operating system is Windows 7 32bit. I installed RedMon1.7, Ghostscript 8.71 and GSview 4.9; installations were successful.
I went to Add New Local Printer in Windows Devices and Printers, clicked on Create A New Port, and selected Redirected Port from the Type of Port list. Clicked Next and in the Add New Port window I named RPT1: and clicked OK but it says Specified port cannot be added. Operation could not be completed (error 0x00000001)
I tried giving different names to the port, RPT2:, RPT4:, VPport: etc but all gave same result. Disabled Windows Firewall and tried but it continues to give same error, Disabled the Antivirus (Avira) but no change.
What can be preventing windows 7 from adding redirected port?
BTW I was following instructions in this tutorial in order to create a postscript printer.
http://www.stat.tamu.edu/~henrik/GSPSprinter/GSPSprinter.html
Appreciate any ideas or suggestions. Thanks
Run cmd.exe as Administrator and then run:
rundll32 printui.dll,PrintUIEntry /il
from the elevated cmd.
Go to your Start Menu,
Type Print,
Right-Click "Print Management",
Select "Run as administrator",
In Print Management; Expand "Print Servers" and Select "Ports".
Right-Click in the "Ports" pane (on the right hand side) and Select "Add Port...".
I'd also recommend configuring a Port from Print Management, as opposed to trying to do it in a Printers Properties. ;)
Adam Reed describes a workaround in his blog:
http://borntoidentify.blogspot.com/2010/09/configuring-virtual-printer-using.html
Not very comfortable, but works for me ...
EDIT: This link appears broken, but here's the content:
https://web.archive.org/web/20120628120209/http://borntoidentify.blogspot.com/2010/09/configuring-virtual-printer-using.html
The gist is that under Win7, you need to run explorer with elevated rights. This can be done using another browser, or, as mentioned in the comments on the original post:
Open a CMD window by right clicking and running as administrator
Kill the process explorer.exe from the task manager
Run explorer.exe from the command prompt window, now as an administrator.
Be very careful when running explorer as an administrator.
You need to enable Admin mode OR log with the Admin account!
This is cause by the new Vista/Win 7 security system.
Try reseting the firewall (Windows 7)
(be warned tho, the firewall will reset to the default setting)
*go to Control Panel
*go to Windows Firewall
*on the left choice pick "Restore Defaults"
It works for me, i hope it works for you.
F3lix's rundll32 method works but after you've created the port you most probably would need to configure its settings. Elsewhere in the net there are instructions to open Port management as Administrator, but in Windows 7 Home that seems to be very much impossible. One can only view the virtual port settings. The only workaround I found is to edit registry directly with the Registry editor at
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Redirected Port\Ports\RPT1:
(Replace your port name in the end.)
It seams to be tricky. In my case it only works, after creating an new User account with the name "admin" / group " Administratoren" (de).
Before with my real Nickname User "Nick.." / group "Administratoren" (de) it dosent work´.
Takes several hours to discover ...
Accepted solution did not work for me...I found an other command line that worked well (I'm on windows 10):
%systemroot%\system32\printmanagement.msc
It opens the print management in administrator mode, and I was able to create the port with no problems.

Resources