Jump to content


Thomas M

Established Members
  • Posts

    23
  • Joined

  • Last visited

Posts posted by Thomas M

  1. I have this program in the same place as Lucid in the Task Sequence.

     

    I've done this with Batch scripting and a registry file though. Bit of a manual job setting up the reg file, but it's working fine so far.

    I've got two files:

     

    Norway.cmd

    REG LOAD HKU\DU c:\Users\Default\NTUSER.DAT
    REG IMPORT %~dp0Norway.reg
    REG UNLOAD HKU\DU

     

    Norway.reg

    Windows Registry Editor Version 5.00
    
    ;Control Panel\Region and Language\Formats.
    [HKEY_USERS\DU\Control Panel\International]
    "Locale"="00000414"
    "LocaleName"="nb-NO"
    "s1159"=""
    "s2359"=""
    "sCountry"="Norge"
    "sCurrency"="kr"
    "sDate"="."
    "sDecimal"=","
    "sGrouping"="3;0"
    "sLanguage"="NOR"
    "sList"=";"
    "sLongDate"="d. MMMM yyyy"
    "sMonDecimalSep"=","
    "sMonGrouping"="3;0"
    "sMonThousandSep"=" "
    "sNativeDigits"="0123456789"
    "sNegativeSign"="-"
    "sPositiveSign"=""
    "sShortDate"="yyyy-MM-dd"
    "sThousand"="."
    "sTime"=":"
    "sTimeFormat"="HH:mm:ss"
    "sShortTime"="HH:mm"
    "sYearMonth"="MMMM yyyy"
    "iCalendarType"="1"
    "iCountry"="47"
    "iCurrDigits"="2"
    "iCurrency"="2"
    "iDate"="1"
    "iDigits"="2"
    "NumShape"="1"
    "iFirstDayOfWeek"="0"
    "iFirstWeekOfYear"="2"
    "iLZero"="1"
    "iMeasure"="0"
    "iNegCurr"="12"
    "iNegNumber"="1"
    "iPaperSize"="9"
    "iTime"="1"
    "iTimePrefix"="0"
    "iTLZero"="1"
    
    ;Control Panel\Region and Language\Location\Current location.
    [HKEY_USERS\DU\Control Panel\International\Geo]
    "Nation"="177"
    
    ;Control Panel\Region and Language\Keyboards and Languages\Change Keyboards.
    ;Comment_Removing secondary keyboard to prevent users from mistakenly changing it with the keyboard shortcut.
    [HKEY_USERS\DU\Keyboard Layout\Preload]
    "1"="00000414"
    "2"=-
    
    ;Control Panel\All Control Panel Items\Notification Area Icons
    ;Always show all icons and notifications on the taskbar
    [HKEY_USERS\DU\Software\Microsoft\Windows\CurrentVersion\Explorer]
    "EnableAutoTray"=dword:00000000
    
    ;My Computer\Folder Options
    ;Show extensions for known file types
    ;Show all folders in navigation pane
    [HKEY_USERS\DU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
    "HideFileExt"=dword:00000000
    "NavPaneShowAllFolders"=dword:00000001
    
    ;Internet Explorer 8 disable first run dialogue.
    [HKEY_USERS\DU\Software\Microsoft\Internet Explorer\Main]
    "IE8RunOnceLastShown"=dword:00000001
    "IE8RunOncePerInstallCompleted"=dword:00000001
    "IE8RunOnceCompletionTime"=hex:
    "IE8TourShown"=dword:00000001
    "IE8TourShownTime"=hex:
    "IE8RunOnceLastShown_TIMESTAMP"=hex:
    
    ;Internet Explorer 8 Default search engine is Google, and allow searchbar updates.
    [HKEY_USERS\DU\Software\Microsoft\Internet Explorer\SearchScopes]
    "DefaultScope"="{6A8AC388-E60D-4E72-9552-AFBDAEF1E9BD}"
    "DownloadRetries"=dword:00000000
    "DownloadUpdates"=dword:00000001
    "Version"=dword:00000002
    "UpgradeTime"=hex:
    
    ;Internet Explorer: Add Google as search engine
    [HKEY_USERS\DU\Software\Microsoft\Internet Explorer\SearchScopes\{6A8AC388-E60D-4E72-9552-AFBDAEF1E9BD}]
    "DisplayName"="Google"
    "URL"="http://www.google.co.uk/search?hl=en&q={searchTerms}&meta="
    "ShowSearchSuggestions"=dword:00000001
    "SuggestionsURL"="http://clients5.google.com/complete/search?hl={language}&q={searchTerms}&client=ie8&inputencoding={inputEncoding}&outputencoding={outputEncoding}"
    "OSDFileURL"="http://download.microsoft.com/download/9/f/4/9f4d1caf-3622-4dbd-872f-90a8a7e9fd52/Google_UK.xml"
    "FaviconURL"="http://www.google.co.uk/favicon.ico"
    
    ;Internet Explorer: Disable the Accelerator button popup when selecting text on a website
    [HKEY_USERS\DU\Software\Microsoft\Internet Explorer\Services]
    "SelectionActivityButtonDisable"=dword:00000001
    
    ;Turn off messages about Windows Backup in the Action Center
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsBackup]
    "DisableMonitoring"=dword:00000001

     

    I've done it this way as it was the first way that popped into my head.

    Don't know if it's a good enough method, or if perhaps Lucid's way is better?

    Stuff works in my environment though, but would appreciate a comment if anyone has some input.

  2. I install all software using task sequences myself, but I guess it's a bit slower than bundling it together with the image.

    However, I do not have to update my base image at all, and only make changes to the application packages.

    That saved me from having to create a new image when I deployed Office 2010.

  3. Ps. If anyone has a good solution to format the InstallDate string I'd be very happy.

    InstallDate=20100728133244.000000+120

     

    Would prefer it to be in a readable format (2010-07-28 13:32:44)

    I know this can be done easily in PowerShell, but as we've still got some XP clients without the Powershell client I don't think that can be done.

    This is why I've decided to use a simple batch script to be run using the logon script.

     

    -Thomas

  4. I pull this info out in order to have a complete register of all our computer systems in case of theft or insurance issues.

     

    DNSHostName=XXX10001

    Manufacturer=LENOVO

    Version=ThinkCentre A57

    Model=970273G

    SerialNumber=LMXXXXX

    UserName=Domain\Username

    FullName=Lastname, Firstname Middlename

    Caption=Microsoft Windows 7 Enterprise

    Version=6.1.7600

    OSArchitecture=64-bit

    InstallDate=20100728133244.000000+120

    IPAddress={"10.0.0.2","fe80::19da:933c:93c4:51a1"}

    MACAddress=00:11:22:33:44:AA

     

    Here's the script

     

     

    @echo off

    WMIC PATH Win32_ComputerSystem Get DNSHostName /Value | FIND "="

    WMIC PATH Win32_BIOS Get Manufacturer /Value | FIND "="

    WMIC PATH Win32_ComputerSystemProduct Get Version /Value | FIND "="

    WMIC PATH Win32_ComputerSystem Get Model /Value | FIND "="

    WMIC PATH Win32_BIOS Get SerialNumber /Value | FIND "="

    WMIC PATH Win32_ComputerSystem Get UserName /Value | FIND "="

    WMIC PATH Win32_UserAccount where name="%username%" get FullName /value | FIND "="

    WMIC PATH Win32_OperatingSystem Get Caption /Value | FIND "="

    WMIC PATH Win32_OperatingSystem Get Version /Value | FIND "="

    WMIC PATH Win32_OperatingSystem Get OSArchitecture /Value | FIND "="

    WMIC PATH Win32_OperatingSystem Get InstallDate /Value | FIND "="

    WMIC PATH Win32_NetworkAdapterConfiguration where "IPEnabled=true" Get IPAddress /Value | FIND "="

    WMIC PATH Win32_NetworkAdapterConfiguration where "IPEnabled=true" Get MACAddress /Value | FIND "="

  5. Your problem is: Failed to resolve package source "SKS00005".

    This seems to be the package of your SCCM CLient. Make sure the package excists on the DP and that it is accesible for the client machine.

     

    Not sure if this helps, but I'll post it anyway.

    When I first setup the sccm site here, I reran the configuration wizard multiple times.

    I noticed that every time I did so, the share permissions for the SCCM client disappeared.

    So I put the SCCM files on a different server in order to avoid that problem.

     

    You might want to check the share permissions.

  6. Try to add the test pc to the collection you have advertised the TS to again.

    What I usually see with my test PC is that I need to add it again every time I successfully run a OS install on it, as there's suddenly multiple objects in SCCM.

  7. Thanks for the replies.

    This would imply me either changing how the All Systems collection works, or create a new collection and change the advertisement.

     

    So lets say I do the latter, create a new collection and edit my advertisement.

    How will this affect the computers who have already run the advertisement?

     

    What I want to avoid is all the computers running the advertisement twice :)

  8. Does anyone know of a good step-by-step guide from setting up a server for Microsoft Forefront Client Security to deploying the client and updating definitions?

    Not that I don't know how to google, but I would like a place to also discuss the guide and improvements.

    Much like this place, forums with guides and active people trying to achieve the same things.

  9. Hi,

     

    before i try this please ensure the following:

     

    1. I install the reference Computer and customize it.

    2. I create and place a unattend.xml file into the sysprep folder of my reference PC. I start running sysprep with generalzize switch and shutdown the PC.

    3. I boot the PC and SCCM start the Task Sequence once it has been detected by PXE Boot

    4. SCCM will capture the Image and i save it.

    5. I use the captured image and install it onto a new PC. Once the new PC starts it should have my customized settings?

     

    1: Yes

    2: I put the Unattend.xml into the c:\windows\system32\sysprep folder. I didnt run the sysprep COMMAND, a task sequence ran that command for me.

    If you create a "Build and Capture" TS, then remove the top part called Build.

    That should leave you with a capture sequence you can run from Windows after you're done customizing and you have placed your unattend.xml file.

    3: answer above

    4: Capture sequence will automatically put the image on the network location you have specified. You'll know when it's done when the computer starts asking for language settings etc.

    5: It did have my customized settings, but it did not have settings for networklocation as I had hoped.

    Also windows update was not set like I wanted.

     

     

    My next attempt was this:

    I created an unattend file to specify network location and windows update.

    integrated it to my deployment TS, but when I did that suddenly all my premade customizations on the image disappeared.

     

    I suspect the image customization is where I need to place these settings aswell.

    Will test more.

  10. I have a software advertised to the "All Computers" collection.

    I want to make a temporary exception for one computer that will used for imaging.

    I imagine it's not possible to remove a computer from that collection.

     

    If I stop an advertisement and start it later, how will this affect the computers that have already installed this package?

    Will they need to run it again or will they recognize the advertisement and know they already have it installed?

     

    Perhaps I should modify my installation to check for the application before installing it.

    That way I wouldn't have to worry about these things.

     

    I'd like some best practice advice here :)

  11. Update:

    It worked! Kinda... ;)

    Well, my regional settings are now applied correctly:

    Formats (for time and currency), Location, Keyboard layout(both default and additional) and Timezone has turned out exactly like I customized my desktop prior to the capture TS.

     

    What's weird is my desktop background is Microsoft System Center Configuration Manager 2007... This may be due to a bug or due to me clicking something wrong.

     

    I'll also need to set my network location to "Work" automatically. I know this can be done using unattend.xml but I will have to look into where this unattend.xml needs to be placed.

    I suspect it is during the deployment after the capture TS has run.

     

    I will redo everything tomorrow and write down a step-by-step guide with pictures.

     

    At least it's possible to do this.

  12. I just read this:

    http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/Windows_7/Q_24871141.html

     

    Scroll to the bottom to find this post.

    This is a solution I just came up with I have tested it several times and it works....

     

    Do on your PC

    This answer file can be reused as long as the NEW PC is created from the same Windows 7 DVD.

     

    1. Install the AIK on your PC.

    2. Copy install.wim and install_Windows 7 ENTERPRISE.clg to your temp directory from the sources folder on the Windows 7 DVD you used.

    3. Run AIK and open install.wim as the windows image file.

    4. Create a new answer file.

    5. In bottom let pane right click on the Microsoft-Windows-Shell_Setup and add setting to pass 4 specialize.

    6. Open 4 specialize in Middle Pane.

    7. Click on the Microsoft-Windows-Shell_Setup and in far right pane choose true for CopyProfile and enter ProductKey.

    8. Save Answer File to your temp directory as unattend.xml

     

     

    Do on the NEW PC

     

    1. Install Windows 7 on the New PC and sign on as the administrator and set up pc the way you want it (Programs, Start Menu, Power Settings, Home Page&).

    2. Copy the unattend.xml to the NEW PC to the windows\system32\sysprep directory

    3. Run sysprep /generalize /unattend:unattend.xml from the sysprep directory while signed on as administrator. Choose Generalize and Shut Down.

    4. Write Ghost up to server.

     

     

    This will produce a system independent image. Meaning you should be able to use it on any hardware, pc or laptop.

    [/Quote]

     

    This is NOT intended for SCCM, but for Ghost.

    I'm trying to make a few adjustments to make it work with SCCM.

    My testing will involve this:

    1: Create one Build TS and one Capture TS. (If you followed Anyweb's guides you will know how to do this)

    2: Log on to the local administrator account and make all changes I need to apply to the OS image. (The local administrator because once I run the capture TS I will have to run the sysprep from the local account and not a domain account because the first step in my capture TS is to join a workgroup.)

    3: Copy the unattend.xml file into the sysprep directory.

    4: Log on to the domain and run the Capture TS.

     

     

    I will post back with my results once this has been tested.

     

    Ps. my unattend.xml file contains this:

    <?xml version="1.0" encoding="utf-8"?>

    <unattend xmlns="urn:schemas-microsoft-com:unattend">

    <settings pass="specialize">

    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <CopyProfile>true</CopyProfile>

    </component>

    </settings>

    <cpi:offlineImage cpi:source="wim:g:/windows%207%20deployment/7x86ent.wim#1" xmlns:cpi="urn:schemas-microsoft-com:cpi" />

    </unattend>

    [/Quote]

    Pps. I don't recommend using my unattend.xml file in case it contains information specific to my configuration.

  13. You read this right?

     

    How to customize default user profiles in Windows 7

    http://support.microsoft.com/?id=973289

     

    Perhaps the problem is your capture task sequence also includes a sysprep command, which may or may not reset your copyprofile settings?

    I am not sure, but I think you need to create a custom capture task sequence that uses your sysprep command with the unattend.xml file.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.