Jump to content

kev_147

Member
  • Posts

    99
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by kev_147

  1. I have changed my structure so that all my apps are now $OEM$\WPI\Install, but for future reference is there a variable available for the root of the CD drive letter? e.g. %CDDRIVE% or %CDROM%
  2. Me again I have a greyed condition of: WshShell.regRead("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Corporate Screen Saver\DisplayName") == "Corporate Screen Saver" If the software is already installed it greys out the selection as I would expect, but if the software isn't installed I get an error which I have attached. Can someone tell me what I am doing wrong please
  3. Sorry to keep asking silly questions, but do you have to have the timer enabled for WPI to start automatically installing apps or can you just type WPI.HTA Home for it to automatically install all the apps within the Home configuration instantly? Also I take it with the timer option on you don't need to press begin install button, but what if the timer option was disabled?
  4. Does anyone know why this command is only pulling through the SID of the group and not the actual name? I am running this script at the same time as joining the PC to the domain and before a reboot. Don't worry guys, I think I have worked it out. It is because I am joining the PC to the root domain. Am just about to test joining the PC to the normal domain name instead to see if that works.
  5. Can someone tell me exactly what variables are available in the latest version of WPI (version 5.0.1 I think)? I am going to take the plunge and change my automated DVD from using WPI Lite 1.2 to WPI v5.0.1, but am having problems with my config.js My current config.js is attached I am using the %CDROM% variable which worked for me in WPI Lite 1.2, but not in WPI 5.0.1. I also want WPI to grey out the checkbox if program is already installed and to not even list it as an option if the software isn't on the disk. config.js
  6. I don't know if this has been bought up before, it probably has and if so I am sorry. What I am wanting WPI to do is to be able to run WPI with some sort of parsed parameter that will tell it to automatically install a configuration called standard build or default apps or ICT Build, without the need to click on the Begin Install button. With this functionallity it will greatly enhance an automated installation of Windows XP with WPI. I am running WPI Lite 1.2 as my automated DVD is in a corporate environment and this suits our needs. And I haven't had a chance to look at WPI 5 yet as I am under pressure to get our automated DVD released and documented for use.
  7. I done it like this in the end. Thanks for pointing me in the right direction gsh. '--------------------------------------------------------------------- Dim Act, strDomain, strDomainGroup On Error Resume Next Set Act = CreateObject("Wscript.Shell") strDomain = Chr(34) & "COS.Sunderland.Local" strDomainGroup = "\ICT-Desktop Support" & Chr(34) Act.Run("%Comspec% /c net localgroup administrators " & strDomain & strDomainGroup & " /add"), 0, True '---------------------------------------------------------------------
  8. If that works logged on as just a local administrator and not being authenticated into the domain at all then great. Could someone assist in getting that command to work in vbscript please. I have this so far, but it isn't working. The reason I want it in vbscript is because this is only a small part of something that is embedded in a hta file using vbscript. Set WshShell = WScript.CreateObject("WScript.Shell") net1 = "net localgroup administrators " net2 = "cos.sunderland.local\ICT-Desktop Support" net3 = " /add" wscript.echo net1 wscript.echo net2 wscript.echo net3 wscript.echo net1 & net2 & net3 WshShell.Run(net1 & net2 & net3) Thanks in advance guys
  9. Guys, Can anyone help me with a script. This is the scenario: I am logged into a PC as local administrator and need to run a script that will go out to the domain and get a domain group called "ICT-Desktop Support" and add this group to the local administrators group. I think I have to use some of the following code to authenticate on the domain: Const ADS_SCOPE_SUBTREE = 2 Set objConnection = CreateObject("ADODB.Connection") Set objCommand = CreateObject("ADODB.Command") objConnection.Provider = "ADsDSOObject" objConnection.Properties("User ID") = "fabrikam\kenmyer" ;change accordingly objConnection.Properties("Password") = "A2sXrco1Fq1#om!" ;change accordingly objConnection.Properties("Encrypt Password") = TRUE objConnection.Properties("ADSI Flag") = 3 objConnection.Open "Active Directory Provider" Set objCommand.ActiveConnection = objConnection objCommand.Properties("Page Size") = 1000 objCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE And some of the following code to add the group: strComputer = "." strLocalGroup = "Administrators" strDomainGroup = "ICT-Desktop Support" 'Look up local group. Set objLocalGroup = GetObject("WinNT://" & strComputer & "/" & strLocalGroup & ",group") ' Look up Domain group to be checked against local group. Set objDomainGroup = GetObject( "WinNT://" & strDomain & "/" & strDomainGroup & ",group") 'Check if domain group already a member. If not objLocalGroup.IsMember(objDomainGroup.AdsPath) Then 'Add domain group to local group. objLocalGroup.Add(objDomainGroup.AdsPath) Else End If But I am not sure howto put them together. Can anyone help me please???
  10. Hope everyone is ok. Its gone very quiet in this post. It would be a shame to leave this project unfinished as I am sure it would be so popular. I will contribute wherever I can. I will just need some pointers or some time to read through the hta file. I would suggest that most people would want to have an inventory of hardware and software thats is installed and a few other bits and pieces, such as compname, serial number, system model, tcp/ip settings. If this solution could be made automated/silent then I think it would be a great addition to anyones automated build cd if they wanted to include an asset solution into it. I.E. you could have a scheduled task that runs the script once a month and it creates a file called %computername%.txt /hta /xml /csv and then it will also attempt to copy this file upto a network share that everyone has permission to write to. I would suggest that it would also be useful to append this information to any exisiting files, so you can build up an history of the pcs inventory. (ie you can see if any software has been installed since the last inventory) The script, would be ideal if the variables for the computername and save location of the logs were clearly marked, at the moment Ihaven't been able to work it out.
  11. Can I just congratulate GSM and all the other peole that have contributed to this thread. I have just read through it and I have just realised how basic my knowledge is. What you guys have done is amazing!! I have just designed an automated build of windows xp and am going to invstigate implementing this into it so that my company can start to audit pc's. Even if its all the new ones going out from now, that btter than nothing. I feel that this would be even better if there was 2 options. 1 being an automated option so that it runs against %computername% without the need to press any buttons. Then the vbs can be added to the runonceprocess and will automatically generate a hta file in the name of the computername, which can then be copied upto a shared area on the network for inventory results. The 2nd option would be to run this say from my machine, but be prompted to enter an ip range, ie 10.1.50-10.1.50.255 so that it would then go off and attempt to run this against each machine (might need to prompt for admin credintials if unable to connect under my current logged in credintials) and to then generate a hta file for each computer to \\server\Inventory Results I am in work tomorrow and will try and report back any findings if I get a chance, but if now will crack on again next week when I am back at work. Respect to GSM and Yzöwl you have both taught me a lot in the last hour or so and you don't even know m from Adam.
  12. Is there any chance of network configuration being added? For example 2 radio buttons: DHCP and Static If Static is selected, end user types in ip address, subnet, default gateway, WINS, DNS, Primary DNS and DNS Search list. If DHCP is selected, end user just has to type in DNS Search List. Also the option of setting the computername and joining to a domain. It would be quality if WPI could ask the engineer all of this along with what apps to install and then PC restarts and does all the neccesary network changes before automatically installing the apps. WPI is quality already, but this would be the icing on the cake. And the cheery would be able to customise a drop down list with all your WINS, DNS, and Domains on the network. I will probably be told I am being stupid for asking for such a thing, but if you don't ask you don't get. Probably taking the mickey now, but would also be good to have all of this in a lite version.
  13. another option maybe to use the PE Network Configurator from BartsPE. Although if this method is used it is probably better to run this before WPI. Any comments guys? I tried attaching the file, but got an error saying that it xeeded my per post or global limit.
  14. I have found the following webpage that may be useful in configuring network settings, what do people reckon? http://www.microsoft.com/technet/scriptcen...atnc_ipadd.mspx I am thinking that these scripts could run in the background and modify them so instead of typing the ip, subnet, gateway, wins or dns settings in the script, they actually get parsed the variable from what the engineer types within WPI. Is this possible?
  15. thanks the the reply m8. I already have a method via a batch file, but to be honest it looks crap an i am not 100% sure on its reliability. for some reason it doesn't always apply the ip settings, which is weird cos all i am doing is using the dos command netsh. I think it would be sweet for wpi to ask all these questions and then just sit back and watch it do its thing.
  16. I agree it needs simplyfying thats why I want to change it. Are you saying that th existing procedu or what I want to achive is weird or both? :-) I have done as you have suggsted with rgards to having 3 entries for the same program, an once one is selected the other 2 is greyed out. My Process is now: RunOnceEx (1st Boot) Copies the relevant drivers from the CD to %SYSTEMDRIVE%\Drivers Rescans for new devices using devcon RunOnceEx (2nd Boot) Installs Windows POST SP2 Hotfixes RUNS HKLM Registry Tweaks RunOnceEx (3rd Boot) Prompts Engineer to configure network settings, using a basic .cmd script. (ie asks whether DHCP or Static and computername, if static sets registry keys according to what engineer types in). RunOnceEx (4th Boot) Prompts engineer if PC is to be joined to a domain or not and configures accordingly. Makes the %systemdrive% dirty so that disk is checked on next restart. RunOnceEx (5th Boot) Runs WPI which then: Install Corporate Applications (Apps that can be installed on any PC on the network) Prompts engineer to install the Anti Virus software depending the location of the PC (when 1 is selected, the other 2 are automatically greyed out) Now what I want to do is get rid of the 3rd and 4th boot before WPI and get this working from the WPI screen so that the engineer puts all the information in at the end of the build and then 10 minutes later comes back and everything is done. Whereas at the moment the engineer has to enter computername and network settings, WAIT FOR RESTART :-(, enter domain information, WAIT FOR RESTART :-( and thn select the apps to install before pc has finished build. Hope it makes sense what I am trying to achieve. Is there noone that has integrated network configuration into WPI?
  17. Is anyone aware of any network configuration wizard that can be either integrated into WPI or launched?
  18. Thanks for that, I guess I really need to read up on what each section does. That worked a treat though. :-) I just need to work out howto run a batch/vbs file and wait for it to finish before it continues the runonceprocess now and I will have a really good solution for my company and me :-)
  19. Is it possible to have an option say for example Anti Virus software and then underneath have 3 options, for example: Anti Virus Software: McAfee Trend Symantec and then only allow one of the above to be selected? I was originally going to do the above by running a .cmd file, but was unable to get it to wait before it continued the runonce process. I got an error saying "unable to find Start". I think the.cmd option is toilet, but any way would do the job for me.
  20. I have just gone through all the java scripts and even though my knowledge is very limited and is more batch and WSH, the code doesn't seem to do anything malicious (not that I thought it would). The only thing I am going to change is the undo.reg file in the fact that I am going to put back the default windows xp settings. Thanks for all your help guys
  21. I currently have an automated build cd which does the following: At T13 Stage: Runs HKCU Registry Tweaks (To affect Default User Profile) Installs Recovery Console and sets timeout to 3 seconds Installs Windows Media Player 10 Runs cleanup.cmd (deletes *.bmp, *.jpg etc) RunOnceEx (1st Boot) Copies the relevant drivers from the CD to %SYSTEMDRIVE%\Drivers RunOnceEx (2nd Boot) Removes any unknown devices using devcon Rescans for new devices using devcon RunOnceEx (3nd Boot) Installs Windows POST SP2 Hotfixes RUNS HKLM Registry Tweaks RunOnceEx (4th Boot) Install Corporate Applications (Apps that can be installed on any PC on the network) Prompts Engineer to configure network settings, using a basic .cmd script. (ie asks whether DHCP or Static and computername, if static sets registry keys according to what engineer types in). RunOnceEx (5th Boot) Prompts engineer if PC is to be joined to a domain or not and configures accordingly. Makes the %systemdrive% dirty so that disk is checked on next restart. RunOnceEx (6th Boot) Prompts engineer to install the Anti Virus software depending the location of the PC What I want to do is have the WPI.HTA (WPI Lite) loaded at the end of the above runonce process, but I would like the WPI.HTA to take the place of some of the above. Namely configuring network settings (comp name & dhcp/static). To also have an drop down list for all the available domains on the corporate network. To have a text field for username and password (masked if possible). Then a choice of departmental apps and anti virus software. So once the engineer enters all the information and presses "begin install", the full process of the WPI.HTM would ideally be something like this: 1. Sets computername based on answer to computername textbox. 2. Sets DHCP or Static. If Static aks for IP, Subnet Mask, Default Gateway, Primary & Secondary WINS, Primary & Secondary DNS, DNS Suffix and DNS Search Order. 3. Adds all other settings to the registry by using REG ADD 4. Reboots PC 5. Processes RunUnceEX which will run the following tasks in order: Runs Netdom JOIN If engineer said that PC is to be joined to a domain, else don't run Reboots PC Continues RunOnceEx process to install all the other applications that the engineer selected. Is this possible (I think it is), but if so, can anyone give me some ideas where to start? I know my build cd at the moment isn't the tidiest, but I have been limited to the fact that my company doesn't want any 3rd party apps, only microsoft or our custom code.
  22. Sorry for posted such an obvious post before. I thought I had downloaded WPI Lite before, but I have just downloaded it again and it looks more suitable to our needs. Thanks for pointing me in the right direction. Is there any documentation on what all of the js files actually do? I need to check that the source code is acceptable for our use within the corporate LAN. Also do I need to have the following line in the wpi.hta file? <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  23. Hi guys, I know this sort of defeats the object of the WPI Project in the fact that the development and additions are continuos, but I am currently creating an automated CD for the company that I work for and one of the main concerns is security. What I mean by that is that if possible at all times, the company wants the cd to use microsoft created technologies or our own code to complete any tasks. We have achieved this on everything from installing the os, installing hotfixes, installing corporate apps, tweaks etc, but the last thing we need to do we are having problems with. What we want is something that gives the engineer the choice to install the departmental software (ie not the standard corporate software that can be installed on any pc on the lan). We think that WPI is the solution and the best way forward, but we do not require any of the fancy stuff, ie sound, media player etc. All we want is a form/gui (theme) that asks the enginer what they want to install and press a button. Is it possible to let me know what javascript code I need to amend to do this please. I think it is amazing what can be done via WPI, but am afraid in this instance it is too good for our needs if that makes sense. Any assistance would help me greatly as my javascript knowledge is cr@p
×
×
  • Create New...