Search results for query: *

  1. P

    Question WMI queries for SMS (SCCM) information

    Fixed it... shows how rubbish i am with coding! This does the trick... Dim smsClient = GetObject("winmgmts://" & ComboBoxMachineName.Text & /root/ccm:SMS_Client") Dim result = smsClient.ExecMethod_("GetAssignedSite") LabelWMISMSSite.Text = result.sSiteCode simple when...
  2. P

    Access Active Directory

    Sorry didnt see your reply! Try renaming toolbox.tbd toolbox_reset.tbd toolboxIndex.tbd toolboxIndex_reset.tbd to .tdb.old from "%USERPROFILE%\Local Settings\Application Data\Microsoft\VisualStudio\<version number> (close VS first) If it doesnt work rename the files back (from Controls...
  3. P

    Question WMI queries for SMS (SCCM) information

    Hi All, I'm trying to get the assigned SMS site from a remote machine in VB.net I can do this in VBS, but i need it in VB.net* (using framework 4.0) the vbs looks like this: Set smsClient = GetObject("winmgmts://" & strComputer & "/root/ccm:SMS_Client") Set result =...
  4. P

    Question Split, search and append files

    Cheers for that! i did post closer to the time, but I got logged out and it was late and i needed to go to bed! I ended up cheating i guess. I read the output file to a list, separated into chunks, then as i read each chunk in from the sourcefile i updated the output list and the output file if...
  5. P

    Question Split, search and append files

    is this it? Dim byteRead(215) As Byte Dim j As Integer For j = 0 To br.BaseStream.Length() - 1 byteRead = br.ReadBytes(215) bw.Write(byteRead) Next it seems to still write the file correctly i just need to put...
  6. P

    Question Split, search and append files

    i had a look into StreamReader and found this site .NET Streams Explained - O'Reilly Media From that I mashed together the code below Imports System.IO Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim...
  7. P

    Access Active Directory

    did that help at all?
  8. P

    Question Split, search and append files

    I guess that makes sense really... each character is 1 byte
  9. P

    Question Split, search and append files

    the problem i have is that each chunk of information is not a set number of characters long and there is no common delimiter i can use to separate the datachunks. all I know is that they are 216 bytes long. how do i read the file 216 bytes at a time?
  10. P

    Question Split, search and append files

    Hi All, I have 270 files that I need to merge. These files are basically database files containing information strings. so far straight forward. the problem is that some of the information strings are duplicated so i need to be able to extract these informations strings from file2 and ensure...
  11. P

    Access Active Directory

    First remember to drag DirectoryEntry and DirectorySearcher from the toolbox onto your project and then you need to have Imports System.DirectoryServices before your class then try the code below replacing Dim username As String = ******* Dim usergroup As String = ******* for...
  12. P

    Question Resetting an AD Password?

    Hi Matt, sorry for the delayed reply! I have a look at that link before, but didn't completely understand it.. will have another look through it Cheers! PAul
  13. P

    Question Resetting an AD Password?

    Hi all, First of all please let me apologise in advance. I'm not a VB programmer (not yet anyway). I have been searching around for solutions to my problem, but the examples I find don't make sense to me, so please be patient! Basically I have a textbox with a username and on tab out I want to...
Back
Top