Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by TheKidd

  1. TheKidd

    Response to close thread

    thread1619-1715904 You can use $myEmailExt="@efaxsend.com" $myFiles=Split-Path "C:\staging\*.pdf" -Leaf -Resolve foreach ($myFile in $myFiles) { $myFile=$myFile.Remove(10) $myEmailAddr="$myFile$myEmailExt" $myEmailAddr }
  2. TheKidd

    Problem with running PowerShell script as a Schedule Task

    Thanks ehaze. I'll give that a try.
  3. TheKidd

    Problem with running PowerShell script as a Schedule Task

    Hello all, I have a quick question. I have a PowerShell script that runs daily at 4AM. Although the job shows completed, it doesn't really run. The script runs with the following command: powershell.exe -file "path_to_script.ps1" Any help or suggestions would be greatly appreciated. Thanks.
  4. TheKidd

    how to find domain user first, last name by his network i

    No idea. I've never seen that error before. I did google it and came up with this link http://www.computerperformance.co.uk/Logon/code/code_8000500D.htm
  5. TheKidd

    VBS MoveFile results in error

    Not sure. It works for me as a share just fine. You could try mapping to the share first with MapNetworkDrive.
  6. TheKidd

    VBS MoveFile results in error

    I'm not sure I understand exactly what you're asking for but you can try this: Dim Folder Dim File 'MainPath = "\\cpo\shares\common\daily reports" MainPath = "C:\_Temp_Delete\Daily Reports" Set FSO = CreateObject("Scripting.FileSystemObject") Set Folder = FSO.GetFolder(MainPath) For Each...
  7. TheKidd

    how to find domain user first, last name by his network i

    This should at least get you started: Const ADS_SCOPE_SUBTREE = 2 Set objConnection = CreateObject("ADODB.Connection") Set objCommand = CreateObject("ADODB.Command") objConnection.Provider = "ADsDSOObject" objConnection.Open "Active Directory Provider" Set objCommand.ActiveConnection =...
  8. TheKidd

    GPO not running logon vbscript

    I am having issues with some XP machines not running a logon script via a GPO. When I run gpresult I get the following error: An error has occurred while collecting data for Scripts. The following errors were encountered: An unknown error occurred while data was gathered for this extension...
  9. TheKidd

    VBScript Help: If Computername = ctx

    My apologies, I missread the original issue. I thought you WANTED to run the login script if it was Citrix
  10. TheKidd

    VBScript Help: If Computername = ctx

    I had issues with %CLIENTNAME% not being set at login. It seems my login script was running before %CLIENTNAME% was set. So I changed the GPO from running the login script to “Run these Programs at user logon” located in the Computer Container at <Administrative Templates>-<System>-<Logon>. For...
  11. TheKidd

    vbscript/%computername%

    You can use a function like the snippet below: Function sendMail (mailSubject,mailBody) Set objEmail = CreateObject("CDO.Message") Set objFSO = CreateObject("Scripting.FileSystemObject") Set objShell = WScript.CreateObject ("WScript.Shell") computerName =...
  12. TheKidd

    Please help with VBSCRIPT doing a simple LDAPquery enumerating members

    I agree with markdmac and tsuji, but if you do want to output directly to excel, here's a snippet that might help you: set xapp = WScript.CreateObject("Excel.Application") xapp.Visible = True set workbook = xapp.Workbooks.Add set worksheet = workbook.Worksheets("sheet1") i = 0 Do Until...
  13. TheKidd

    Please help with VBSCRIPT doing a simple LDAPquery enumerating members

    Welcome to the Windows world dniz0r. You might want to start learning Powershell as well. It has a slight perl feel to it.
  14. TheKidd

    Help with markdmac's Enterprise Ready Login Scripts

    Did you try gpupdate? Also, what do you get from GPResults?
  15. TheKidd

    Help with markdmac's Enterprise Ready Login Scripts

    You can also try using gpresult to see what's going on with your GPO's. You can use the command line or Group Policy Management for gp results.

Part and Inventory Search

Back
Top