Jump to content

Martin Zugec

  • Posts

  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Czech Republic

Everything posted by Martin Zugec

  1. You could use WSUS... Hope so the test will be successful
  2. Hello, sorry for later response, I didnt have time till now You have Broadcom NIC, right? And the driver for this NIC is your problem (b57). Try to replace it, if it wont help, send me more dmp files. Martin
  3. Did you have a look at MS Shared Computers Toolkit? I am not sure if this is exactly what you are looking for...
  4. XML writers request!!! Come on guys, I think Winstaller will be really useful when it will contain every possible settings.
  5. BTW maybe you found interesting my series of "tricks" for batches... I so, check my blog
  6. Added post about common problems during deployment projects Check my blog Martin
  7. 2itibd: I love to try&learn, however this specific task (search&replace) is really hard-to-achieve with internal commands (I mean it is not worth trying)... As you can see on Iceman example, it can be performed, however I thing using external utility for this task is much better and error-prone. I know this is not related to your problem, however this is the method I am something implementing search&replace operations= In batches you can implement this syntax: Set var=%var:searchfor=replace% Like for example Set test=1,2,3 Set test=%test:3=1% The variable %test% will now have values 1,2,1... Maybe you find it useful sometime. If you are interested in advanced batch scripting, check my blog
  8. BTW I changed blog address to http://msmvps.com/martinzugec... I promise next entry will be about common mistakes during deployment phase
  9. Hmmm, I can see the problem The Win32_ScheduledJob class doesnt support that kind of job I would like to see Looks like we will need to find some workaround... Dman, what do you think, could you create it using C++? I would like to use as less as possible of .NET, because it require runtime
  10. And if you remove that entry? BTW it is classical mistake during deployment, I spoke about it yesterday at presentation Include only necessary settings, dont define settings that you dont need to..
  11. 2Dman: No prob, this is hobby project 2GSM: Nope, that is not good The problem is any error during script will block whole execution, whether batch services are independent on each other + you can create threaded execution... If it is really big problem, I could write it in .NET...
  12. Go for WMIC! I bet you will be surprised what can be done using this "little" command... And when you will think you know, well, almost everything about it, you will find out there is chance to use "full" mode that have much more oportunities...
  13. Try to not run shutdown directly - use cmd instead (put the shutdown command to batch and add pause to last line)
  14. The problem as I see it is not with network share, but with application... Check %windir%\MiniDump, if you can see any files inside...
  15. Maybe someone might help me... I need to import configuration files for batches to GUI... Inside these files are variables, dont any of you have function for parsing these variables? I am working in VB.NET, however code written in C# will be fine for me.
  16. Hmmm, didnt you forget to deselect Reboot at BSOD?
  17. Just have a look to registry structure... There are keys, that are independent on each other, so I dont see a reason why this shouldnt work.
  18. Hmmm, dont understand - ROE is based on components, every component is removed from registry when it is processing (not entry, just target)... So if you create one looong ROE with internal restarts, it should continue after the place where restart occured.
  19. OOps, sorry, not Set, but Call method... Call SetMTU etc...
  20. Simple - no need for identificators etc... And the main reason is that when you know syntax of WMIC, you can access ANYTHING (really )
  21. Ah, sorry, now I see what you mean. Here is the code I am using in my environment: 'PC type based actions 'Martin Zugec '29.6.2005 strComputer = "." Set objShell = WScript.CreateObject("WScript.Shell") Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set arrayChassis = objWMIService.ExecQuery _ ("Select * from Win32_SystemEnclosure") Set objFSO = CreateObject("Scripting.FileSystemObject") For Each objChassis in arrayChassis For Each strChassisType in objChassis.ChassisTypes Select Case strChassisType 'Case 3 - Desktop Case 8 ' Notebooky ' Nastavenie klavesnice na ENG ako default strSwitchKeyboardRegFirst = "HKEY_USERS\.DEFAULT\Keyboard Layout\Preload\1" strSwitchKeyboardRegSecond = "HKEY_USERS\.DEFAULT\Keyboard Layout\Preload\2" objShell.RegWrite strSwitchKeyboardRegFirst, "00000409", "REG_SZ" objShell.RegWrite strSwitchKeyboardRegSecond, "00000405", "REG_SZ" End Select Next Next Right now I am using three different codes - this one is based on pc type (desktop, notebook etc.), second is based on computer model (gx270, gx280 etc.) and the last one (my favourite ) is based on PnP identifiers...
  22. Study WMIC, it is really awesome command... You can use "where", so you can select only one NIC... For example WMIC NicConfig Where Description="Broadcom NetXtreme" Set SetMTU = 1500 The "HowTo" is simple. Run command Wmic NicConfig list full Find your NIC and find unique settings that it contains... Thats all.
  23. So guys (Dman and GSM), how are you doin? I presented SDS yesterday on one presentation and administrators were VERY interested in it

  • Create New...