Many thanks for your help Mike. Regards Rajkumar
Sent from BlackBerry® on Airtel -----Original Message----- From: "Marable, Mike" <[email protected]> Sender: [email protected] Date: Wed, 10 Dec 2014 03:20:32 To: [email protected]<[email protected]> Reply-To: [email protected] Subject: Re: [mssms] last logon information - OSD Process I did some quick tinkering to see how to get the script to work within BGInfo. It’s very basic but it demonstrates how the script results get into BGInfo. So, here is a simple 2 line script that pulls the current date and “echoes” it. oRightNow = Date Echo "" & oRightNow & “" In BGInfo you set up a custom variable and point it at this VBScript. Then, when BGInfo updates it will execute the script and take the results and display it. So, you write a VBScript that gathers some single piece of information. Assign it to a variable and then “echo” that variable. BGInfo intercepts that echo and places it on screen. Mike From: <Marable>, Mike Marable <[email protected]<mailto:[email protected]>> Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Date: Tuesday, December 9, 2014 at 9:51 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: Re: [mssms] last logon information - OSD Process I think the last logged on user might not be possible, or at least pretty difficult. Since BGInfo runs in the user’s session the script will pick up that user’s login. Essentially it would show the currently logged in user. I haven’t had to pull that sort of info before so I could be wrong. Either way, if I remember correctly BGIinfo will execute the scripts you assign when it starts up. All your script has to do is echo out the information you are looking for. Your script executes and performs what ever checks you are looking for and then Wscript.echo “your results” at the end. BGInfo takes what is written to the console and displays it on the background. Mike From: Rajkumar Bhoopathy <[email protected]<mailto:[email protected]>> Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Date: Tuesday, December 9, 2014 at 8:40 AM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: RE: [mssms] last logon information - OSD Process I'm sorry about that not mentioned in detailed. Its last logon time and last logged on user. Regards /*RJ*/ ________________________________ From: [email protected]<mailto:[email protected]> To: [email protected]<mailto:[email protected]> Subject: RE: [mssms] last logon information - OSD Process Date: Tue, 9 Dec 2014 13:13:47 +0000 What last logon info are they looking for? The login time? Who last logged in? What specifically are they wanting displayed? Mike From:[email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Rajkumar Bhoopathy Sent: Tuesday, December 09, 2014 8:00 AM To: [email protected]<mailto:[email protected]> Subject: [mssms] last logon information - OSD Process Good Morning / Evening, One of the requirement from client is to display background information on the desktop screen (IP Address, MAC address, Logon Server etc..). I was able to find bginfo.exe using which we could provide the information on desktop background. However client is looking for last logon information also to be displayed with other information. Unfortunately the bginfo.exe tool does not provide last logon information. But this tool provides a feature to include a vbs script and create a custom step. Do anybody have a vbs script which can be embedded with tool to facilitate the client requirement. Any help will appreciated. Regards Rajkumar Bhoopathy ********************************************************** Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues ********************************************************** Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues ********************************************************** Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues

