Jump to content

kev_147

Member
  • Posts

    99
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by kev_147

  1. looking really good gsh. Should of asked this before, but is there a way to add details of the HDD as well, then it is near enough a full hardware audit in 1 place. eg easy for an engineer to see what is installed within the PC. Might also be worth adding the info for system type. ie Laptop or Desktop. What do you reckon? Possible?
  2. can it also list the network card, but only the ethernet card? great work btw gsh
  3. I have tried that method and had no luck with it. It seemed to make the statement true is the key DatabasePath was found and din't actually look at the value and base it's true/false condition based on that. I don't really want to use autoIt as I understand that requires another scripting library to be registered and this is for a corporate build so wouldn't really be appropriate. Shame WPI don't seem to do this sucessfully or shame I am a doughnut and can't work it out.
  4. that would work, but I just thought there may of been a way within adsi itself to authenticate. Its weird that you don't have to do none of this using the crappy old dos command of net localgroup I think I will stick with this for now, but thanks anyway for all your help
  5. How can I get WPI to check the contents of a string within the registry. I have 3 different versions of anti virus software and I would like WPI to grey out the version that is installed. The only thing that I can see that is different from each of the installs is the content of the registry string located at: HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\PC-cillinNTCorp\CurrentVersion\DatabasePath The values I get for the DatabasePath String are either of the following: \\CIV-AV-01\ofcscan\FileDB \\MOR-AV-01\ofcscan\FileDB \\SSD-AV-01\ofcscan\FileDB I would like WPI to grey out the entry for CIV anti virus if the registry string = \\CIV-AV-01\ofcscan\FileDB I would like WPI to grey out the entry for MOR anti virus if the registry string = \\MOR-AV-01\ofcscan\FileDB I would like WPI to grey out the entry for SSD anti virus if the registry string = \\SSD-AV-01\ofcscan\FileDB If no registry string called DatabasePath exists, then do nothing, ie leave all options available within WPI. I have looked at various posts regarding gcond, but haven't found any that specifically check the contents of the registry key/string/dword etc. Can anyone help me?
  6. Is this post still being updated on the first page? I find it really useful. Thanks to all the work that has gone into it so far, long may it continue
  7. Have noticed today that the tools section of wpi has been updated with a new autorun.inf
  8. Thanks for the reply imric and I am sorry I have only just managed to reply. Have been off work for a week or so. Have just tried your solution and it works a treat if you are already authenticated on the domain, but it is unable to find the network object if you are not authenticated on the domain. I need the script to work with my logged in locally to the PC as administrator, ie I wont have authenticated onto the domain at all. Can ADSI authenticate onto the domain for me with the relevant encryption?
  9. Thanks for the replies guys. RogueSpear, shame you can't draw up some sample code. I really appreciate the suggestions though, will look into them. GSH, I have searched that website and some of it seems relevant, but not exacly what I am looking for I am afraid. Allen2, I may use this method as a workaround as I know it works, but I ideally want to use ADSI to tie in with the rest of my script and for a future project I also need to learn howto run ADSI under different credintials so if I can work it out, will be killing 2 birds with 1 stone. I will go off and try and learn about ADSI and will post back if I work it out.
  10. This is the scenario I have to design a script for: Am logged in as Local Administrator PC is already joined to Domain Need to add Domain\ICT-Desktop Support to Local Administrators Group. Need to remove Domain\Domain Admins from Local Administrators Group. I have tried a couple of ADSI Scripts, but get an error saying that network path cannot be found or a General Access Denied error. I think I need to try and find out how you can bind to the Active Directory and then back to the Local PC in the same script. For example bind to AD with a specific user account to GetObject on the ICT-Desktop Support Group and then to bind to the Local administrators group with the local administrators account to add the domain group to the local group. I am getting near to tearing my hair out over this problem, have spent days looking at forums, scripting sites with no joy. You guys are my last hope
  11. thanks for that m8. will give it a go how do i add that to my ua cd?
  12. That was an alternative to pinning the items to the start menu, but how can I enable the quick launch toolbar on all users or default user?
  13. U got my hopes up then GSH, cheers anyway. Will update th thread if I find a way to make this change for default user
  14. Thanks GSH. It was really starting to bug me. One question though. Will that apply to all users or just the logged on user. If it only applies to the logged on user, is there a way to get it to apply to the default user?
  15. Is there any way at all that I am able to either pin items to the start menu or place them in a custom quick launch bar. What I want to do is install windows with a UA cd. install apps using wpi. run script/command/registry tweak that will put relavant shortcuts into pinned start menu or custom quick launch, but must apply to all users. Has anyone managed to do this? I have been reading for hours and still aint no further forward, am nearly at the point where i am thinking that this can't be done. (and that aint normally m guys)
  16. Hi Guys, Has anyone come accross this before? I can't get my DVD to autorun WPI no more. I get an error stating: "D:\ is not avalid Win32 application." I have a Autorun.inf in the root of my DVD. Inside the autorun.inf, I have the following: [AutoRun] open=$oem$\wpi\wpi.hta icon=$oem$\wpi\wpi.ico both the above files are located in D:\$OEM$\WPI\ Autorun was working before I upgraded to WPI 5.0.1 from WPI Lite 1.2. I have tried downloading the autorun.inf from tools section and still no joy. Any ideas?
  17. I am stumpted. I am unable to get a few things working in RunOnceEX. I want to try and prepare a PC to take an image. Has anyone needed to do something similar and if so how did you do it? 1. Add RunOnce key to Remove PC from domain 2. Add RunOnce key Restart PC (to make sure it has removed from the domain) 3. Add RunOnce key to Shutdown PC. (Image can be taken once shutdown) 4. Add RunOnce key to run NewSid. (which will rename comp and regenerate SID's) 5. Add RunOnce key to launch AntiVirus setup. 6. Add RunOnce key to create system restore point. 7. Restart PC to launch RunOnce process and run steps 1-6. Any help or assistance would help me out greatly
  18. GSM don't worry about updating anything I have done, your scripting skills are a hell of a lot better than mine. I am sorry I can't post as much as I would like, but I am snowed under at work and the oeminfo script was a minor thing I needed. I now need to sort out some more important things with my UA install.
  19. Can someone tell me if WPI stops the standard RunOnceEx key from processing. What I want to do is to use WPI to launch a hta form that will ask the engineer a few questions, on completion of this form it will add some registry entries to HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnceEX as I need these things to happen on next login, but the problem I am having is that this key no longer seems to run its normal process. I have even tried restarting the RunOnceEx process manually using the command: %windir%\System32\rundll.exe iernonce.dll,RunOnceExProcess and nothing happens, the keys don't even delete themselves from the registry any ideas??
  20. your location of hotfixes changes everytime you post something :-)
  21. I am lost now. I don't need to do anything once the desktop has loaded.
  22. Guys, Is ResChange.exe trustworthy? What I mean is I am concerned that it might try and contact the internet or run something on my PC without me knowing. I am using WPI in a corporate environment and security is a priority. If I removed reschange.exe from WPI\Tools, would I get errors if I just set WPI to use system default settings?
  23. I will not be using #2 to then create the image. I will be creating the image after the shutdown comment in #1, so I would suggest that the shutdown command allow windows to load and then shutdown, but the restart command to restart windows before the shell loads. Your point about the 10 second delay is valid, but it shouldn't matter how long you make the delay if you get wpi to restart windows before it finishes, will it?
  24. Thanks for all the info, will definately be looking into this
×
×
  • Create New...