Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Startup Script Before Login not on domain and no gpedit

Posted on 2011-10-13
Medium Priority
Last Modified: 2012-08-13
Is there a way to have a bat file to run at startup before user logon?
The server is not in a domain rather workgroup and unable to use gpedit.msc due to the way I am copying the file to the turned off VM server.

Windows 2008 R2

Please help!! Thanks a bunch!

Question by:Phase2
  • 4
  • 3

Expert Comment

by:Christopher Raymond Mendoza
ID: 36960876
We include it in the registry:


Accepted Solution

Christopher Raymond Mendoza earned 2000 total points
ID: 36960886
And you can also use task scheduler. You can run it during startup, logon etc.

Author Comment

ID: 36960896
I will not be able to change the registry when the server is off.

Let me explain further but I think this will confuse you as is not very important.

I am copying over the bat file via vmware APIs

I can create the bat file with what ever I want inside and copy to the HD of the turned off server,
but I cannot do this while the server is on.

Is there no other way?

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.


Author Comment

ID: 36960993
How about this:

Create a task in task sheduler to run a file called changeWallpaper.bat

inside changeWallpaper.bat its an empty file.

I use my API to copy and overrght the blank file with the real bat file and then start the server?

Could work.....

Please let me know if there is an easier way

Expert Comment

by:Christopher Raymond Mendoza
ID: 36961307
Theoretically it should.

The problem with startup scripts is that there are only a limited number of ways to run them, two of which was posted above. Those in the Startup folder in the Programs Menu, on the other hand, will not run unless the user logs on.

Thing is, you will still need to log in and plug in the settings at least once before doing the adjustments via the server.

Expert Comment

by:Christopher Raymond Mendoza
ID: 36961336
By the way, all my computers, and that of my parents and sisters run a batch file during startup.

The batch file checks for updated version of itself scripts from a site I own before continuing.

But for it to work I still need to manually add it albeit only once.

Author Closing Comment

ID: 36961727
You lead me in the right direction on this. Thanks!

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background Still having to process all these year-end "csv" files received from all these sources (including Government entities), sometimes we have the need to examine the contents due to data error, etc... As a "Unix" shop, our only readily …
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question