Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. Localsystem privileges in windows 2003

Localsystem privileges in windows 2003

Scheduled Pinned Locked Moved System Admin
comhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rana74
    wrote on last edited by
    #1

    We launch a IE browser from within a windows service and cause the browser to navigate to a particular site using the IWebBrowser2 interface. The code is as fllows: hr=CoCreateInstance(CLSID_InternetExplorer,NULL,CLSCTX_LOCAL_SERVER,IID_IWebBrowser2,(void**)&psIE); if(SUCCEEDED(hr)) { hr=psIE->put_Visible(VARIANT_TRUE); CComVariant ve; CComVariant vurl(_T("www.experts-exhange.com")); hr = psIE->Navigate2(&vurl, &ve, &ve, &ve, &ve); if(FAILED(hr)) { return hr; } //Wait thill the page is ready READYSTATE isReady; do{ hr=psIE->get_ReadyState(&isReady); }while( isReady != READYSTATE_COMPLETE); This works fine in W2K and XP - but in Windows 2003 ,the browser does not navigate to the site. We just get a blank page-there is no error either. Does the localsystem account in 2003 have to given additional privileges - the service runs under localsystem account with 'Interact with desktop' setting.

    M 1 Reply Last reply
    0
    • R rana74

      We launch a IE browser from within a windows service and cause the browser to navigate to a particular site using the IWebBrowser2 interface. The code is as fllows: hr=CoCreateInstance(CLSID_InternetExplorer,NULL,CLSCTX_LOCAL_SERVER,IID_IWebBrowser2,(void**)&psIE); if(SUCCEEDED(hr)) { hr=psIE->put_Visible(VARIANT_TRUE); CComVariant ve; CComVariant vurl(_T("www.experts-exhange.com")); hr = psIE->Navigate2(&vurl, &ve, &ve, &ve, &ve); if(FAILED(hr)) { return hr; } //Wait thill the page is ready READYSTATE isReady; do{ hr=psIE->get_ReadyState(&isReady); }while( isReady != READYSTATE_COMPLETE); This works fine in W2K and XP - but in Windows 2003 ,the browser does not navigate to the site. We just get a blank page-there is no error either. Does the localsystem account in 2003 have to given additional privileges - the service runs under localsystem account with 'Interact with desktop' setting.

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      Interactive services have some pretty serious limitations and they become more limited in Windows Vista. See my blog post "Avoid Interactive Services"[^] for the reasoning.

      Stability. What an interesting concept. -- Chris Maunder

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups