Jump to content

Recommended Posts

Posted

Hello,
 

So as the tittle says i want my script to run when cpu starts up.
I have never done this before so i dont know much about this.
I tried these two:

RegWrite("HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun", @ScriptName, "REG_SZ", @DesktopDir & "myScript.exe")
RegWrite("HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionGroup PolicyScriptsStartup", @ScriptName, "REG_SZ", @DesktopDir & "myScript.exe")

but none works.
 

I have never used RegWrite before. So some good tips would be greatly appreciated.

Cheers.

 

Posted

Hi,

Run gpedit.msc

Browse to Windows Settings and then Scripts (Logon/Logoff).

You can start from there and investigate where it store to the registry exactly.

If you found it, let me know, I would like to know that also :)

Posted

Hi,

Run gpedit.msc

Browse to Windows Settings and then Scripts (Logon/Logoff).

You can start from there and investigate where it store to the registry exactly.

If you found it, let me know, I would like to know that also :)

I found it, it is the second regwrite

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
×
×
  • Create New...