I'm having issues running jobs as the console user on 2008 servers running on physical HP BL 465 G5 and DL 585 G5's.
The reason I am running jobs as the console user is the post domain jobs run multiple vbs scripts. I was having a lot of issues pushing vbs/calling cmd files so I started running the jobs as the console user.
Before a server joins the domain and reboots, I added the following script:
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1 /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /t REG_SZ /d username /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /t REG_SZ /d password /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /t REG_SZ /d domain /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v ForceAutoLogon /t REG_SZ /d 1 /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 3 /f
This works great on 2008/DAgent/Virtual, all the jobs run successfully. On the physical machines, I get an error saying "No Console User Logged In" for the first job that runs as the console user. I've verified the domain user is logged into the console when the error appears. If I retry the task, the job will start and run successfully.
I'm wondering if this is due to the physical machines taking longer to log in than a VM? The phyical machines are HP BL465's and HP DL 585's.
The only work around I can think is to add a failure code to select the same job again to ensure it runs. I'd prefer to find a fix though.
The DAgent on HP RDP is 6.9.355 which I do not believe is the latest and greatest.
Cheers
cp