+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 18
How do you do....it? Thread, Active Desktop in Technical; I would like to put some information in the active desktop HTML page for pupils and staff I've got the ...
  1. #1
    wesleyw's Avatar
    Join Date
    Dec 2005
    Location
    Kingswinford
    Posts
    2,218
    Thank Post
    230
    Thanked 50 Times in 44 Posts
    Blog Entries
    1
    Rep Power
    31

    Active Desktop

    I would like to put some information in the active desktop HTML page for pupils and staff I've got the usual shortcuts on it for helpdeskm room and resource booking but I'd like to display the username and computername as well does anyone know how this is done? I used to have some code somewhere but I can't find it now and it's been so long I can't remember what I did lol I know for a fact I couldn't get rid of the activex control ok cancel dialogs that came up does anyone else know how?

    Thanks

    Wes

  2. #2
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,419
    Thank Post
    196
    Thanked 249 Times in 122 Posts
    Rep Power
    63

    Re: Active Desktop

    You could use BGInfo.

    I use it for this exact purpose and it is really easy to setup.

    First create a shared folder which the students have read and execute permissions on and put the BGInfo executable into it.

    Next and the following to the logon script you have for the students:

    [script]
    net use y: \\SERVER\BGInfo

    y:\bginfo.exe \\DOMAIN\SYSVOL\DOMAIN\scripts\students.bgi /timer:0

    net use y: /del
    [/script]

    What this will do is is map a drive at logon execute BGInfo.exe and then remove the mapped drive.

    All you need to do then is configure the desktop to display what you want, I have named mine students.bgi and place it in the path above.

    NOTE: you need to replace SERVER and DOMAIN with your own

    See attached screen cap of our desktop

    BGInfo can be found here http://www.sysinternals.com/Utilities/BgInfo.html
    Last edited by ICTNUT; 24th July 2008 at 03:08 PM.

  3. #3
    wesleyw's Avatar
    Join Date
    Dec 2005
    Location
    Kingswinford
    Posts
    2,218
    Thank Post
    230
    Thanked 50 Times in 44 Posts
    Blog Entries
    1
    Rep Power
    31

    Re: Active Desktop

    I do like that! I'll have a play around and see what I can do. I think the only downside is the fact I can't have HTML shortcuts on the page.

    Thanks

    Wes

  4. #4
    ICTNUT's Avatar
    Join Date
    Jul 2005
    Location
    Hereford
    Posts
    1,419
    Thank Post
    196
    Thanked 249 Times in 122 Posts
    Rep Power
    63

    Re: Active Desktop

    When you say HTML shortcuts you mean standard web based html links if this is the case then you can as the page itself renders as a html page.

    Have a play with the BGInfo GUI there are a lot of settings you can use, the actual desktop background is pushed out via bginfo as well.

  5. #5
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,987
    Thank Post
    275
    Thanked 52 Times in 46 Posts
    Blog Entries
    2
    Rep Power
    48

    Re: Active Desktop

    What's that 'check my quota' shortcut Ozan?

  6. #6
    edie209's Avatar
    Join Date
    Mar 2006
    Location
    Kernow
    Posts
    705
    Thank Post
    42
    Thanked 19 Times in 18 Posts
    Rep Power
    22

    Re: Active Desktop

    Thanks for pointing this out ICTNUT I think I will be using this very soon, it looks very good. Would it be possible to show temp of the processor etc with this?

  7. #7
    wesleyw's Avatar
    Join Date
    Dec 2005
    Location
    Kingswinford
    Posts
    2,218
    Thank Post
    230
    Thanked 50 Times in 44 Posts
    Blog Entries
    1
    Rep Power
    31

    Re: Active Desktop

    Would i just run that on top of my own HTML background then?

    Wes

  8. #8
    buzzard's Avatar
    Join Date
    May 2006
    Location
    North West
    Posts
    312
    Thank Post
    106
    Thanked 28 Times in 24 Posts
    Rep Power
    25

    Re: Active Desktop

    Would like to know more about the "check my Quota"

  9. #9

    Join Date
    Mar 2006
    Location
    Greater Manchester
    Posts
    218
    Thank Post
    5
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Active Desktop

    Quote Originally Posted by wesleyw
    Would i just run that on top of my own HTML background then?

    Wes
    Tried that, doesn't seem to work?

    Great app btw!

  10. #10
    wesleyw's Avatar
    Join Date
    Dec 2005
    Location
    Kingswinford
    Posts
    2,218
    Thank Post
    230
    Thanked 50 Times in 44 Posts
    Blog Entries
    1
    Rep Power
    31

    Re: Active Desktop

    Nope tired it too just replaces the entire screen does anyone have any html/asp/java or vbscript that will work?

    Wes

  11. #11

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    10,053
    Thank Post
    3,585
    Thanked 1,123 Times in 1,025 Posts
    Rep Power
    377

    Re: Active Desktop

    2 sites I would recomend are :

    http://www.codeproject.com/vbscript/...&select=515867

    Obviously you would replace the msgbox with document write as per this article on w3schools :

    http://www.w3schools.com/vbscript/vbscript_howto.asp

    so it would be something like the following ( obviously with all of your other a href links or shortcuts ( or whatever you want to call them )

    Code:
    <html>
    <head>
    </head>
    <body><script type="text/vbscript">
    document.write("Hello from VBScript!")
    
    Dim objNet
    On Error Resume Next 
    
    'In case we fail to create object then display our custom error
    
    Set objNet = CreateObject("WScript.NetWork") 
    If  Err.Number <> 0 Then                'If error occured then display notice
    	MsgBox "Don't be Shy." & vbCRLF &_
                   "Do not press ""No"" If your browser warns you."
    	Document.Location = "UserInfo.html"	  
                                            'Place the Name of the document. 
    	                                'It will display again
    End if
    	
    Dim strInfo
    strInfo = "User Name is     " & objNet.UserName & vbCRLF & _
              "Computer Name is " & objNet.ComputerName & vbCRLF & _
              "Domain Name is   " & objNet.UserDomain
    Document.Write(strInfo)
    	
    Set objNet = Nothing                    'Destroy the Object to free the Memory
    
    </script></body>
    </html>
    let me know how that goes

  12. #12
    wesleyw's Avatar
    Join Date
    Dec 2005
    Location
    Kingswinford
    Posts
    2,218
    Thank Post
    230
    Thanked 50 Times in 44 Posts
    Blog Entries
    1
    Rep Power
    31

    Re: Active Desktop

    That does work extremely well although it does ask to allow and activex control to run and I don't think there is any way round this
    But it is a nice piece of code I may have to look at another way round it though.


    Wes

  13. #13
    wesleyw's Avatar
    Join Date
    Dec 2005
    Location
    Kingswinford
    Posts
    2,218
    Thank Post
    230
    Thanked 50 Times in 44 Posts
    Blog Entries
    1
    Rep Power
    31

    Re: Active Desktop

    Okay found this over at: http://www.osnn.net/articles.php?act...#programlaunch


    ------------------------------------------------------------------------------------------
    Please note that if you are running any antivirus program, such as Norton AntiVirus ("NAV"), you may encounter a "Malicious script detected" alert. The reason you will see this warning is because antivirus software, such as NAV, flags such files as a possible virus. You will receive this warning for each and every shortcut you setup. If you are running NAV, you can simply select "Authorize this script" from the drop down box and select "OK" and you will not be flagged again for this link.

    This next tweak is a big one. You may notice an ActiveX warning. Well, let's get rid of that annoying warning. First we need to add the "My Computer" security zone to your Internet Options: Security tab.
    - Run regedit
    - Navigate to: HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Curre ntVersion\Internet Settings\Zones\0
    - Set "FLAGS" dword value to 47
    - Close regedit
    - Launch Internet Explorer
    - Select the "Tools" menu
    - Select "Internet Options"
    - Select the "Security" tab

    You will notice that you have a "My Computer" security zone (if not, reboot and try relaunching Internet Explorer). Now configure your "My Computer" security zone.
    - Highlight the "My Computer" zone icon
    - Click "Custom Level"
    - Under "ActiveX controls and plug-ins", change "Download signed ActiveX controls" to "Enable"
    - Change "Download unsigned ActiveX controls" to "Enable"
    - Change "Initialize and script ActiveX controls not marked as safe" to "Enable"
    - Change "Run ActiveX controls and plug-ins" to "Enable"
    - Chnage "Script ActiveX controls marked safe for scripting" to "Enable"
    - Click "OK"
    - Click "Apply"
    - Click "OK"

    After doing so, you will not receive any ActiveX control warnings for local files. Please note that making the above changes will not affect files located on the web (such as files on the OSNN.net website). All websites on the Internet use the "Internet Security Zone", not the "My Computer Security Zone".

    ------------------------------------------------------------------------------------------


    Wes

  14. #14

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    10,053
    Thank Post
    3,585
    Thanked 1,123 Times in 1,025 Posts
    Rep Power
    377

    Re: Active Desktop

    There is this way as well :

    strComputer = "."
    Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
    Set colComputer = objWMIService.ExecQuery _
    ("Select * from Win32_ComputerSystem")
    For Each objComputer in colComputer
    x = split(objComputer.UserName,"\")
    Wscript.Echo x(1)
    Wscript.Echo objComputer.Name
    Next

    Which uses WMI as apposed to wsh. The other way I can think of would be to read the registry and get the values from the registry, obviously you would need to find out where the relevant registry keys are.

  15. #15
    wesleyw's Avatar
    Join Date
    Dec 2005
    Location
    Kingswinford
    Posts
    2,218
    Thank Post
    230
    Thanked 50 Times in 44 Posts
    Blog Entries
    1
    Rep Power
    31

    Re: Active Desktop

    I've found another nice way of implementing it too without the registry edits
    If you use GPO you can add and item to the desktop if you create a page on your local intranet page displaying all the info you want it will work quite well just need to work out a few things such as how to get it across the entire screen but there are quite a few ways round this thankfully!

    Thanks Everyone!!!!

    Wes



SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. IE7 Active Desktop Problem
    By mseaney in forum Windows
    Replies: 11
    Last Post: 28th November 2007, 04:04 PM
  2. Active Desktop - HELP!
    By wesleyw in forum Windows
    Replies: 2
    Last Post: 6th September 2006, 08:56 PM
  3. Active Desktop - Problems
    By wesleyw in forum Windows
    Replies: 3
    Last Post: 5th September 2006, 03:56 PM
  4. Using VB to set Active Desktop/IE Wallpaper
    By BKGarry in forum Scripts
    Replies: 3
    Last Post: 30th June 2006, 04:28 PM
  5. Active desktop not displaying fully..........?
    By tosca925 in forum Windows
    Replies: 7
    Last Post: 18th November 2005, 01:09 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •