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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
D

dougstratton

@dougstratton
About
Posts
5
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • WMI call from VB6 locking HKCU
    D dougstratton

    To bad. To set objreg to nothing is this what I would do: Set objReg= or set objReg="" or set objReg=null Thanks

    Visual Basic sysadmin question tools help

  • WMI call from VB6 locking HKCU
    D dougstratton

    :((We have a bunch of terminal servers using roaming profiles (copies user setting to network share, includes contents of HKCU). Problem is our logon script is locking the HKCU hive and it is not unloading to be copied. I installed a tool that is now telling us this is what is locking it. wmiprvse.exe (1428) HKCU (0x1dc) Then I found out that if a certain part of our logon script does not run the profile unloads We don't really have any WMI experts here. I think we just copied this from somewhere. But what I think is going on is we are not "cleaning up" correctly after doing our calls and this is resulting in the profile being locked. This is one section that we do some calls. Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv") ' determine the logon server objReg.GetStringValue HKEY_CURRENT_USER, "Volatile Environment", "logonserver", strLogonServer ' "\\" prefix needs to be removed Anyone know what we should do after this to free up the HCKU hive?

    Visual Basic sysadmin question tools help

  • VB6 Simple Question I think
    D dougstratton

    Also wanted to ask if there is an easier way to do this in vb.net?

    Visual Basic question tutorial

  • VB6 Simple Question I think
    D dougstratton

    Thanks I will take a look at the samples. Do you happen to know how I pass a error level code back after terminating the code? I want to check in the batch file for errors in the code. Thanks I found one thing but I put it in the code and tested it and it booted me out of VB and I lost it :) Forgot to save.

    Visual Basic question tutorial

  • VB6 Simple Question I think
    D dougstratton

    I have a vb6 app with no forms that is run in dos window. How do I output to the window if I want to send a message. No Msgbox (I don't want things popping up) so I want something like this c:\ingroup c:\You must provide a parameter with ingroupc c:\Example ingroup /i Something like that if possible? thanks

    Visual Basic question tutorial
  • Login

  • Don't have an account? Register

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