my44186680 Posted April 22, 2011 Share Posted April 22, 2011 HelloI came accross an issue about the windows7 deployment.I set the Firstlogoncommands, but the commands are not executed everytime. It will not be exected every five times. I am crazy.Based on my understanding, if the configuration not correct, it will not be executed, if correct, it will be executed everytime.- <FirstLogonCommands>- <SynchronousCommand wcm:action="add"> <CommandLine>c:\Updater.exe /f</CommandLine> <Description>Update the System policy...</Description> <Order>1</Order> </SynchronousCommand> </FirstLogonCommands>I don't know what happened, could anybody give any clue on this, appreciatedThanks,Ethan Link to comment Share on other sites More sharing options...
Tripredacus Posted April 22, 2011 Share Posted April 22, 2011 Are you sure your program isn't executing? Or are you checking for its "run" by whatever it is supposed to change? Link to comment Share on other sites More sharing options...
my44186680 Posted April 25, 2011 Author Share Posted April 25, 2011 Thanks for the reply. I cannot see its run, I just observed the change. There is should be a log file genereated if the program run. What weird is that sometimes the log file was not generated sometimes it was generated, but it was blank. Link to comment Share on other sites More sharing options...
my44186680 Posted April 25, 2011 Author Share Posted April 25, 2011 Is there any log for the "forstlogoncommands", where we can see it? Link to comment Share on other sites More sharing options...
ricktendo Posted April 25, 2011 Share Posted April 25, 2011 Is there any log for the "forstlogoncommands", where we can see it?If you want to test if its working try running a program like regedit, msconfig, taskmgr, etc see if it opens (and manually close it) Link to comment Share on other sites More sharing options...
my44186680 Posted April 25, 2011 Author Share Posted April 25, 2011 Hi ricktendo64, thanks for you advice, I will add a command like regedit for our debug.Is there any log we can find for the first logon return code or status? Link to comment Share on other sites More sharing options...
maxXPsoft Posted April 25, 2011 Share Posted April 25, 2011 No there is no loggingYou could call a cmd file from it and use error code there. Is your exe self executing? Add cmd /c Start /wait Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now