'Run As' box popping up when program runs on Windows XP - windows-xp

I have a program that was written in house years ago by someone who has now left. The program should run (minimized in the task bar) when I login which it does but before it can run I see the 'Run As' window below. The program isn't signed which may be the problem. I'm logged on as an administrator. Can anyone tell me why I see the 'Run As' box? It runs fine on Windows 7 but I need to add it to a Windows XP PC.
The program is set to run from the registry via HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run.
Many thanks
James

If you don't have any other need for the RunAs feature then you could first try stopping the service. open the run command and type services.msc then scroll down to "Secondary Logon" and disable this service.

Related

Powershell is always opening "As Administrator"

Whenever I open Powershell or Powershell ISE it is defaulting to open as administrator. I'm not using a shortcut icon on my desktop, but simply the default apps from the start menu. As a test I went straight to the C:\Windows\SysWOW64\WindowsPowerShell\v1.0 folder and opened powershell.exe from there and it is doing the same thing.
Any idea how this would be defaulting so that it is always launching this way? Its nice sometimes to not have to remember but ideally its only running with elevated privileges if I specify that.
If it helps I'm running Windows 10 release 1809

How to build AHK scripts automatically on startup?

Each time I restart my computer, I have to rebuild all my AHK Scripts so the keyboard shortcuts will work.
For instance, I have a script that assigns Ctrl+j to set up an instance of the MEAN stack and open my web site. After restarting my computer, pressing ^j does nothing until I go into Sublime and ^b (Build). I could build from AHK, but I do a lot of work in Sublime, so it's easier to build there.
How can my AHK Scripts automatically build on startup?
What I've tried so far:
Looking to build a post startup, startup script: This Is concerned with using an AHK script to start many programs on starup. I use Windows' Task Manager > Startup to do this, thus has nothing to do with making. I want to not have to rebuild all my scripts after every restart.
Windows 10 - run script on windows startup problem: This assumes the start script is already written and implemented. However, it doesn't appear to give the script.
AutoHotKey FAQ: I eventually found a solution here, but it took a long time to dig through the questions so I figured I'd post a question anyway to help others who run into this.
Simply add a shortcut (don't need to be the actual file) of your script in the Windows 'Startup' folder.
Three ways to get there:
1- In Windows Explorer, go to %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup (for current user startup list) or %ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Startup (for every user startup list)
or
2- Open Windows' Run application (Windows + r) write shell:startup (current user) or shell:common startup (every user) in the edit field and click on the 'ok' button.
or
3- Start > Programs > Startup (old Windows versions)
In AutoHotKey you can access this folder with the Built-in Variables %A_Startup% (current user) or %A_StartupCommon% (every user)
To create the (current user) shortcut automatically from your script, use the following line:
FileCreateShortcut, %A_ScriptFullPath%, %A_Startup%\shortcutname.lnk
To do the same for all users, use this line instead:
FileCreateShortcut, %A_ScriptFullPath%, %A_StartupCommon%\shortcutname.lnk
(in the case of having a file with the same name in the folder, the file would be overwritten)
ps: Win10 blocks scripts in startup with AHK running as admin... read the comments of this post for extra info.
Run at startup in Windows 10:
Compile the script to *.exe
Put the shortcut of that exe in startup folder "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup"
That's all. Do NOT set it to run as admin. Programs in Win10 don't run at startup which are marked as run as admin.
Run Script as admin at Startup in Windows 10:
Go to ahk script and mark it run as admin.
Create the VBScript using a text editor
'put it in startup folder to run the mentioned ahk script at startup
Set WshShell = CreateObject("WScript.Shell" )
WshShell.Run """C:\Users\jerry\Downloads\scripts\some_script.ahk""", 0 'Must quote command if it has spaces; must escape quotes
Set WshShell = Nothing
Replace C:\Users\jerry\Downloads\scripts\some_script.ahk with the path to your script with extension and save it as .vbs.
Place this .vbs script at startup folder %appdata%\Microsoft\Windows\Start Menu\Programs\Startup
PS: My fav AHK scripts: https://gourav.io/blog/autohotkey-scripts-windows
Open note pad or any other text editor
write Start "" "C:\ahk\yourdirectory\yourahk.ahk"
press save as
navigate to %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup
name the filename anything.bat
As a Windows 7 user, I have limited experience with Windows 10. I have heard that W10 can be finicky with regard to running programs underground administratie or limited user. In W7, you just add the .AHK file link to the startup dir.
A simple solution without writing any code, using the Windows Task Scheduler, set the script to start when the user logs on. If it is set to system startup it will error because it is too early.
To allow the script to automate administrative programs without running as admin, here're the required steps:
When installing AHK, check the "Add 'Run with UI Access' to context menus" option.
After installation, find AutoHotkeyU64_UIA.exe on your disk.
Open the .ahk script's properties, change the "Open with" option to the AutoHotkeyU64_UIA.exe you just found.
Create a shortcut to this script.
Open %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup in the file explorer.
Move that shortcut to this folder.
And you're done.
How does it work?
The "Add 'Run with UI Access' to context menus" option provides a workaround for common UAC-related issues by allowing the script to automate administrative programs without running as admin.
Reference: Run with UI Access.
Open windows run (win+r) and type “shelll:startup”
Copy paste the ahk file into there
Close the folder
And that‘s all!

AutoHotKey stop working after I started PowerShell as administrator

I use the AutoHotKey script to map some the keys under Windows 10 OS . It works very well except that I started Powershell as administrator. All the key mappings does not work after that as if autohotkey has been shut down. However things are all fine when I run PowerShell without administrator. Anyone knows how to fix that?
As Bluecakes said, just running the AutoHotKey as administrator will fix my problem.
You can either set the AutoHotKey to run always as administrator by right-click on AutoHotKey.exe and select property, in the compatiblity Tab , check the run this programme as administrator, or you can add a 'run as administrator' entry in the right-click menu of ahk scripts by editting the registry. Following this link:

wrapper | OpenSCManager failed - Access is denied. (0x5)

I am trying to install Archiva on windows 8.1 pro (64 bit) and I am continuously getting the same error as below
wrapper | OpenSCManager failed - Access is denied. (0x5).
I logged in as administrator only. But still I am getting the same error. Most of the answers for the same problem I am seeing it for VISTA and 7 etc.. But not for Windows8.1 Pro (64 bit)
You need to run that command as an administrator.
Right-click on the command prompt entry in the start menu / task bar
Select "Run as Administrator"
Navigate to the Archiva installation directory
Then run:
bin\archiva install
net start archiva
Click on Start
Click All Programs
Click on Accessories
Right click on Command Prompt icon
Click Properties
Click on the Shortcut tab on the top
Click the Advanced button at the bottom
Click on the check box that says:
Run as Administrator
Click OK
Go to the folder having the batch file
Enter the command which was giving
Access denied
error
It will execute successfully.
I'm not sure this is supported by the wrapper.
Maybe the way to go for you is to use the war within a servlet container.
Have a look here: http://archiva.apache.org/docs/2.1.0/adminguide/webapp.html
HTH
pleas open Command Prompt run as administrator mode and then go to
{tinydms-home}/bin
then
tinydms install
to installing
Type cmd as shown below:
Run as administrator as shown below:
Sometimes, reopening the console or restarting the computer solves this problem for me. I hope it works

Windows developer license (permissions)

I tried to set up a Windows Developer license on my computer, but it fails.
I am running Visual Studio 2012.
When I click Project -> Store -> "Acquire Developer License" It gives me an info dialog and says, "If you agree to these terms and want to install a developer license, click 'I agree'. The 'I agree' button has a Windows admin shield.
When I click that 'I agree' button and wait nothing happens.
My next attempt was to do this from the command line, so I brought up PowerShell and typed:
Show-WindowsDeveloperLicenseRegistration
And I get:
Show-WindowsDeveloperLicenseRegistration : You need administrator
privileges to acquire or remove a developer license.
So I right click Windows PowerShell and click "Run As Administrator" and wait ... and wait ... nothing happens.
I'm getting the feeling the Windows Store is not ready for prime time.
Apparently I don't restart Windows 8 frequently enough, which #Ken helped me figure out.
Restarting fixed it.
Getting the license from VS was easy once I was able to run it as administrator.