MDT Harlink USMT

Hi,
I want to use harlink USMT to Migrate Windows XP to Windows 8.1 through MDT 2013.
for this i made some changes in CustomSettings.ini , i just want to how the USMT will  be work completely.
ScanStateArgs=/v:13 /o /c
LoadStateArgs=/v:13 /c /lac
SkipUserData=YES
UserDataLocation=AUTO
UDShare=\\192.168.1.10\Data Backup
UDDir=%OSDComputerName%
I just want to know the
1. where USMT will take the user data to restore in case of Hardlink USMT in Local machines ( i mean extact path)?
2. In case of failure of USMT restore, where can i found the all user data in local machines?
3. what would be hppens if the USMT scanstate will fail?
Shailendra Dev

hardlink migrations should store the user data in Minint\StateStore.
You have to be really careful with the data if the machine fails to build. It will probably be a case of manually copying the data to a network location and then point the restore to that location.

Similar Messages

  • MDT 2013 USMT customization to exclude specific file types

    Hi,
    I have a need to exclude a specific file type from migration with USMT within MDT 2013.
    So far, I think I know the following:
    I have to create a custom XML file.
    I have to place the custom XML file in the deployment share's Tools\x86|x64\USMT5 folder.
    I have to reference the custom XML file customsettings.ini using USMTMigFiles003 (1 and 2 are used by the default files).
    I think I'll need to use unconditionalExclude.
    However, I am having trouble finding a proper example of a custom XML file. I can find the reference documentation, but actually having a single example isn't as easy to find.
    Specifically, I want to exclude all VMDK (VMware virtual hard disks) from being migrated, regardless of where on the machine they are.
    Thanks for any assistance,
    SA.

    You need something like the below. You can find it in the provided link:
    <unconditionalExclude>
    If you want to exclude a file type from the migration, regardless of the other <include> or <exclude> rules, you can use the <unconditionalExclude> element. This element excludes objects globally across all components. For example, you
    should use this element if you want to exclude all .mp3 files from the computer.
    <migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/excludefiles">
    <component context="System" type="Documents">
    <displayName>Test</displayName>
    <role role="Data">
    <rules>
    <unconditionalExclude>
    <objectSet>
    <script>MigXmlHelper.GenerateDrivePatterns ("* [*.mp3]", "Fixed")</script>
    </objectSet>
    </unconditionalExclude>
    </rules>
    </role>
    </component>
    </migration>
    http://technet.microsoft.com/en-us/library/cc722303%28v=ws.10%29.aspx#Ex1
    Dustin Estes - MCP | www.dustinestes.com

  • OSD - MDT 2013 - USMT Scan/LoadState Runs Successfully but user profiles are not restored.

    I have this odd issue that I can't seem to figure out. I have an MDT Task Sequence that I created runs scanstate and loadstate without any issues using hard link. Unfortunately, the user profiles are not loaded/restored after loadstate runs. I can go to
    the StateStore folder and manually run the loadstate again or use the Windows Easy transfer to restore the users, but I want this to occur when loadstate runs. 
    Here is the loadstate log:
    2014-03-30 18:01:10, Info                  [0x000000] USMT Started at 2014/03/30:18:01:10.787
    2014-03-30 18:01:10, Info                  [0x000000] Command line: C:\_SMSTaskSequence\Packages\CMP0010E\x86\loadstate.exe C:\StateStore /c /v:5 /l:C:\WINDOWS\system32\CCM\Logs\SMSTSLog\loadstate.log /progress:C:\WINDOWS\system32\CCM\Logs\SMSTSLog\loadstateprogress.log
    /i:C:\_SMSTaskSequence\Packages\CMP0010E\x86\MigApp.xml /i:C:\_SMSTaskSequence\Packages\CMP0010E\x86\MigUser.xml /ue:*\* /ui:company.local\*
    2014-03-30 18:01:10, Status                [0x000000] Activity: 'MIGACTIVITY_COMMAND_LINE_PROCESSING'
    2014-03-30 18:01:10, Info                  [0x000000] Script file specified: C:\_SMSTaskSequence\Packages\CMP0010E\x86\MigApp.xml[gle=0x000000cb]
    2014-03-30 18:01:10, Info                  [0x000000] Script file specified: C:\_SMSTaskSequence\Packages\CMP0010E\x86\MigUser.xml[gle=0x000000cb]
    2014-03-30 18:01:10, Info                  [0x000000] Replacement Manifests are processed because this OS version has built-in component manifests
    2014-03-30 18:01:10, Info                  [0x000000] The ReplacementManifests folder used to service system component manifests is not present. OS settings migration will be done with system component manifests
    installed onto the system.
    2014-03-30 18:01:10, Info                  [0x000000] Starting the migration process[gle=0x00000006]
    2014-03-30 18:01:10, Status                [0x000000] Activity: 'MIGACTIVITY_MIGRATION_START'
    2014-03-30 18:01:10, Info                  [0x000000] Excluding path: C:\_SMSTaskSequence\Packages\CMP0010E\x86
    2014-03-30 18:01:10, Info                  [0x000000] Excluding path: C:\StateStore
    2014-03-30 18:01:10, Info                  [0x000000] Excluding path: C:\WINDOWS\system32\CCM\Logs\SMSTSLog\loadstate.log
    2014-03-30 18:01:10, Info                  [0x000000] Excluding path: C:\WINDOWS\system32\CCM\Logs\SMSTSLog\loadstateprogress.log
    2014-03-30 18:01:10, Info                  [0x000000] Excluding path: C:\_SMSTaskSequence\Packages\CMP0010E\x86\MigApp.xml
    2014-03-30 18:01:10, Info                  [0x000000] Excluding path: C:\_SMSTaskSequence\Packages\CMP0010E\x86\MigUser.xml
    2014-03-30 18:02:55, Info                  [0x000000] Leaving MigCloseCurrentStore method
    2014-03-30 18:02:55, Status                [0x000000] Activity: 'MIGACTIVITY_SUCCESS'
    2014-03-30 18:02:55, Info                  [0x000000] Success.[gle=0x00000006]
    2014-03-30 18:02:55, Info                  [0x000000] USMT Completed at 2014/03/30:18:02:55.116[gle=0x00000006]
    2014-03-30 18:02:55, Info                  [0x000000] Entering MigShutdown method
    2014-03-30 18:02:55, Info                  [0x080000] COutOfProcPluginFactory::FreeSurrogateHost: Shutdown in progress.
    2014-03-30 18:02:55, Info                  [0x0803e6] Removing mapping for HKLM
    2014-03-30 18:02:55, Info                  [0x0803e7] Successfully unmapped HKLM
    2014-03-30 18:02:55, Info                  [0x0803e6] Removing mapping for HKU
    2014-03-30 18:02:55, Info                  [0x0803e7] Successfully unmapped HKU
    2014-03-30 18:02:55, Info                  [0x080487] Destroying OS analysis service
    2014-03-30 18:02:55, Info                  [0x080488] Destroyed OS analysis service
    2014-03-30 18:02:55, Info                  [0x000000] Leaving MigShutdown method

    I've got this to work although I haven't figured out the root cause.
    My initial OSDMigrateAdditionalCaptureOptions were: /Hardlink /nocompress /uel:30 /config:%_SMSTSMDataPath%\Packages\%_OSDMigrateUsmtPackageID%\%Processor_Architecture%\config.xml"
    My OSDMigrateRestoreCaptureOptions were:  /Hardlink /nocompress /ue:*\* /ui:domain.local\*
    Since the restore was failing, I removed the domain name from the ui switch which magically caused the restore process to load the user profiles to the computer.
    My final OSDMigrateRestoreCapptureOptions which worked: /Hardlink /nocompress /ue:%computername%.
    Just to note /hardlink commands are not necessary when you are using MDT task sequence, but I put it in anyway and it seems ensure that I get consistent results.

  • Migration 50 Laptop using MS MDT and USMT for BACKUP and DATArecovery

    Dears all,
    I currently manage a migration project for 50 Laptop via Microsoft MDT2010 and I use USMT for BACKUP and data recovery.
    Obviously users have an Iphone and Itunes 10.x.
    I would like to know what are the directories under Win XP I need to setup in order to backup the complete IPhone and what are the destination directories to inject them back into Win7 x86.
    Keep me posted please .
    Serge

    Nice to see you again here in the forum ewen :) and thanks for sharing your experience with us! Marry Xmas!

  • USMT - exclude folder c:\Notes but include some specific files in it

    Hi,
    my name is Paul, I live in Belgium and I'm fairly new to MDT and USMT. We're doing some testing because we want to implement LTI deployments. Since two weeks I'm testing USMT5. I created a Capture User Data Task Sequence and it worked great. All non-windows
    folders in the C-drive were copied, all Favorites etc. Even the restore worked! So I was happy. :-) But one non-windows folder in the C:-drive is C:\Notes. This folder is almost 1GB and I only need four small files. I read all information I could find on the
    internet but I didn't find any information or examples for my case. Most examples include a folder and exclude some files in it, but I want it the other way around !
    Could you help me? So I want to exclude c:\Notes (and all the subfolders) and include c:\Notes\Data\names.nsf, c:\Notes\Data\bookmark.nsf, c:\Notes\notes.ini and c:\Notes\Data\username.id .
    This is one of the versions I tried.
    <?xml version="1.0" encoding="UTF-8"?>
    <migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/mignotes">
    <!-- This component first exludes the Notes folder but next migrates all the necessary Notes configuration files within -->
    <component type="Documents" context="System">
    <displayName>Exclude Notes</displayName>
    <role role="Data">
    <rules>
    <Exclude>
    <objectSet>
    <pattern type="File">C:\Notes\* [*]</pattern>
    </objectSet>
    </Exclude>
    <include>
    <objectSet>
    <pattern type="File">C:\Notes\Data\ [bookmark.nsf]</pattern>
    <pattern type="File">C:\Notes\Data\ [names.nsf]</pattern>
    <pattern type="File">C:\Notes\Data\ [*.id]</pattern>
    <pattern type="File">C:\Notes\ [notes.ini]</pattern>
    </objectSet>
    </include>
    </rules>
    </role>
    </migration>

    I believe the XML is case-sensitive, so try <exclude> instead of <Exclude>. Or you could try putting the exclude block after the include block.

  • USMT 4: How do I NOT migrate Favorites

    I am doing a Windows XP to Windows 7 upgrade using MDT and USMT. Although I am using MDT 2013, I have switched it to use USMT 4.0 in order to get Windows XP compatibility.
    A customer requirement is that IE Favorites are NOT migrated, but I don't seem to be able to exclude them from the migration.
    My MigUser.xml has all the IE sections commented out, i.e.
     <!-- This component migrates Favorites
        <component type="System" context="User">
            <displayName _locID="miguser.favs">Favorites</displayName>
            <paths>
                <path type="File">%CSIDL_FAVORITES%</path>
            </paths>
            <role role="Settings">
                <detects>
                    <detect>
                        <condition>MigXmlHelper.DoesObjectExist("File","%CSIDL_FAVORITES%")</condition>
                    </detect>
                </detects>
                <rules>
                    <include filter='MigXmlHelper.IgnoreIrrelevantLinks()'>
                        <objectSet>
                            <pattern type="File">%CSIDL_FAVORITES%\* [*]</pattern>
                        </objectSet>
                    </include>
                    <merge script="MigXmlHelper.DestinationPriority()">
                        <objectSet>
                            <pattern type="File">%CSIDL_FAVORITES% [desktop.ini]</pattern>
                            <pattern type="File">%CSIDL_FAVORITES%\* [*]</pattern>
                        </objectSet>
                    </merge>
                </rules>
            </role>
        </component>
    -->
        <!-- This component migrates Shared Favorites
        <component type="System" context="System">
            <displayName _locID="miguser.sharedfavs">Shared Favorites</displayName>
            <paths>
                <path type="File">%CSIDL_COMMON_FAVORITES%</path>
            </paths>
            <role role="Settings">
                <detects>
                    <detect>
                        <condition>MigXmlHelper.DoesObjectExist("File","%CSIDL_COMMON_FAVORITES%")</condition>
                    </detect>
                </detects>
                <rules>
                    <include filter='MigXmlHelper.IgnoreIrrelevantLinks()'>
                        <objectSet>
                            <pattern type="File">%CSIDL_COMMON_FAVORITES%\* [*]</pattern>
                        </objectSet>
                    </include>
                    <merge script="MigXmlHelper.DestinationPriority()">
                        <objectSet>
                            <pattern type="File">%CSIDL_COMMON_FAVORITES% [desktop.ini]</pattern>
                            <pattern type="File">%CSIDL_COMMON_FAVORITES%\* [*]</pattern>
                        </objectSet>
                    </merge>
                </rules>
            </role>
        </component> -->
    And I can't seem to find anything else in any of the config files (MigApp.xml, MigDocs.xml and my config.xml) which may be migrating them.
    My MigUser.xml is configured to migrate .lnk and .url files, as I want to migrate any such files elsewhere in the user's profile. Does this make a difference?
    What do I need to do in order to force the exclusion of IE Favorites?
    Thanks

    You will need generate and use a config.xml file. Example
    here (usmt3 but still valid).
    Edit the file and turn the YES to a NO for the favorites sections. The same for any other stuff you don't need.
    eg.
    <component displayname="Favorites" migrate="no"
    Put the file in either the USMT folder or the scripts folder.
    Add the line USMTConfigFile=Config.xml to your customsettings.ini file.
    Blog: http://scriptimus.wordpress.com

  • SCCM 2012 R2 - Migration TS Failed in Release Request Step with Error Code 0x80004005

    Hi
    I have Upgraded my lab from SCCM 2012 SP1 to SCCM 2012 R2. Now, While I am running TS for Refresh/Replace Migration, its successfully captures all the Data & settings and can also restores all Data & settings, but at release request Step TS got failed.
    In SMSTS log file error was "Release Request Failed with error code 0x80004005".
    Is there any KB released by Microsoft to fix this issue?? Due to this issue I am unable to run any other TS.

    I've seen a few weird scenarios with task sequences after an upgrade from SP1 to R2.
    In most cases I've been able to fix these "problems" by simply creating a new task sequence, and copy all the custom steps to the new task sequence.
    Also make sure to update boot images, mdt packages, usmt etc. to new versions.
    So thats what I'd try first....
    Ronni Pedersen | Microsoft MVP - ConfigMgr | Blogs:
    www.ronnipedersen.com/ and www.SCUG.dk/ | Twitter
    @ronnipedersen

  • Delete MIG after data restore

    I am using WDS/MDT with USMT to migrate user data when reformatting PC's.  Its working fine.  My question is, how can I tell my task sequence to delete the user data (.MIG) that it backed up after restoring it to the PC? These are being backed
    up to a network share on the WDS/MDT server itself.

    I am using WDS/MDT with USMT to migrate user data when reformatting PC's.  Its working fine.  My question is, how can I tell my task sequence to delete the user data (.MIG) that it backed up after restoring it to the PC? These are being backed
    up to a network share on the WDS/MDT server itself.

  • How to save the USMT logs to MDT server during OSD

    hi ,
    How can i save the USMT logs ( scanstate and loadstate) to MDT  server .
    I am using below swtiches for Scanstate and Loadstate in CS.ini. What switches i have to use to save theses logs to MDT server i.e network location.
    ScanStateArgs=/v:10 /o /c
    LoadStateArgs=/v:1 /c /lac
    Shailendra Dev

    Try setting in your customsettings.ini rule file the following: 
    SLSHARE=\\MDTServer\Logs$\%ComputerName%
    Replace MDTServer with your MDT DNS server name.
    Of course you need to create the Logs$ share and set proper permissions
    It will copy the deployment log files at the end of the deployment to that location.
    Then look in ZTIUserState.log
    If you need real-time debugging consider using the SLShareDynamicLogging
    property
    You can use both:
    [Default] 
    SLShare=\\MDTServer\Logs$\%ComputerName%
    SLShareDynamicLogging=\\MDTServer\Logs$\%ComputerName%

  • MDT 2012 - Failure 9701: Unable to find any version of USMT, unable to perform user state migration. Failed to run the action Restore User State. DNS Record does not exist. (Error: 000025E5; Source: Windows)

    I am having trouble trying to capture a new Windows 8 image with WDT 2012.
    My Setup - 
    Server 2012
    WDS
    MDT 2012
    Windows 8 ADK
    Hyper-V
    I have created a new task and I can get the image to successfully deploy the image to a VM but it seems to fail at the Restore User State task.
    Once the install Applications task has finished I added a Suspend task so I could customize the image a little. Upon resuming the task sequence is where the above failure message appears. I can see it gets to the next step (which is 'Restore User State')
    but that seems to be where is crashes.
    Does anyone have any advice on what I might be doing wrong or what I can do to resolve the above issue?

    WAIK being installed was probably your issue so I wouldn't bother disabling the restore task. It is used to migrate user data, docs, and settings on refreshes, not new builds. It doesn't affect CopyProfile, just note that data will be migrated on refreshes so
    some aspects may change, ie wallpaper, shortcuts, etc but what gets migrated with USMT can also be configured.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • MDT 2012 Refresh Scenrio, USMT to Network, only captures settings but not restoring

    Hi
    I really appreciate your help on the following scenario:
    1. MDT 2012 installed with WAIK 7 (USMT 4.0)
    2.CustomSettings.ini includes those parameters:
    UserDataLocation=NETWORK
    UDShare=\\mdt\UserData
    UDDir=%Computername%
    3.after Windows 7 migration I can see in UserData folder the migrated Computer name folder which contain USMT folder and a .mig file
    4.unfortunatly, the migration does not process the "Restore User State" Task
    note: if I'm looking at the BDD log I can see a line: "No user state to restore, exiting"
    PLEASE HELP!
    אם תשובתי סייע בפתרון לשאלה, אנא הצבע כמועיל, תודה. Best Regards, Ori Husyt - אורי הוסיט

    You could try running the script manually (needs to be run before the final summary screen):
    cscript.exe ZTIUserState.wsf /debug:true
    See if that gives you anything to go off via the command line.
    Nope didn't change a thing in the log file of any significance.  Still says that there is no user state to restore in ZTIUserState.log

  • USMT 4.0 Restore not happen while windows 7 migration through MDT 2012

    As we are using MDT 2012 Update 1 with USMT 4.0 for XP to 7 migration. Capturing process is happened and save the user data to given network but restore will not happen. I am not found any restore log or error in the migration. I am unable to access
    the Network Migstore path while the migration process, which i am getting prompt for user name and password.
    As well as I have given credentials manually and Checked the remember the password again USMT restore not happen.
    I have configure the bootstrap.ini with Domain credentials for access the network share. however i am MDT unable resolve the network path. Kindly help me to rid out of this issue.
    Thanks for you understanting and Support.

    As we are using MDT 2012 Update 1 with USMT 4.0 for XP to 7 migration. Capturing process is happened and save the user data to given network but restore will not happen. I am not found any restore log or error in the migration. I am unable to access
    the Network Migstore path while the migration process, which i am getting prompt for user name and password.
    As well as I have given credentials manually and Checked the remember the password again USMT restore not happen.
    I have configure the bootstrap.ini with Domain credentials for access the network share. however i am MDT unable resolve the network path. Kindly help me to rid out of this issue.
    Thanks for you understanting and Support.

  • MDT 2013 and USMT 5

    I've had MDT 2012 set up and working fine (with USMT 4.0), and have been utilizing the USMT via batch file to copy profiles and transfer them manually in some cases.  I'm needing to move some people to Win 8.1 and between computers with 8.1, so I updated
    to MDT 2013.  As I figured, it broke everything I had going.  After putting back the USMT files where they were, the batch files no longer work as they must be "run as administrators".  I added my domain admin account as a local admin,
    and even tried a plain local admin account.  No go.  For the life of me, I have no idea what the hang up is.  Below is the batch file, what am I missing since this used to work fine?  I also cannot simply run the scanstate.exe, and it flashes
    a cmd prompt and closes before I can see what it's doing.
    if exist "c:\usmt" then Goto SkipUSMT
    echo d | xcopy \\server\folder\deployment\usmt\amd64 c:\usmt
    cd /d c:\usmt\
    set /P Input=Computer Name?
    scanstate \\server\folder\deployment\captures\%Input% /i:migdocs.xml /i:migapp.xml /v:13 /uel:90
    :SkipUSMT

    Gives me nothing more than what I had:
    2014-11-06 15:02:05, Info                  [0x000000] SCANSTATE.EXE Version 6.3.9600.17237[gle=0x000000b7]
    2014-11-06 15:02:05, Info                  [0x000000] USMT Started at 2014/11/06:15:02:05.262
    2014-11-06 15:02:05, Info                  [0x000000] Command line: scanstate \\SERVER\folder\captures\Computer /l:Scan.log /i:migdocs.xml /i:migapp.xml /v:13 /uel:90
    2014-11-06 15:02:05, Info                  [0x000000] Failed.
    2014-11-06 15:02:05, Info                  [0x000000]   Administrator privileges are required to run this tool.
    2014-11-06 15:02:05, Info                  [0x000000] USMT Completed at 2014/11/06:15:02:05.263
    2014-11-06 15:02:05, Info                  [0x000000] Entering MigShutdown method
    2014-11-06 15:02:05, Info                  [0x000000] Leaving MigShutdown method
    2014-11-06 15:02:05, Info                  [0x000000] ----------------------------------- USMT ERROR SUMMARY -----------------------------------
    2014-11-06 15:02:05, Info                  [0x000000] * USMT error code 34: 
    2014-11-06 15:02:05, Info                  [0x000000] +-----------------------------------------------------------------------------------------
    2014-11-06 15:02:05, Info                  [0x000000] | Administrator privileges are required to run this tool.
    2014-11-06 15:02:05, Info                  [0x000000] +-----------------------------------------------------------------------------------------

  • USMT 4 Wrong version error - MDT 2012 update 1

    Hi,
    we are in process of Migrating XP to windows 7, i have prepared a media using MDT 2012 update 1 and WAIK,
    When i started deployment using the DVD i am getting the following error message
    " The USMT Files in e:\..\..\x86\USMT4 are the wrong version. failure 9701.
    When i checked in the above mentioned path i can see the USMT 4 folder with all required files inside it and i even compared the folder with USMT4 folder of c:\program files\WAIK instllation folder and i did not find any difference between them.
    When i tested the deployment from the share folder by accessing (\\itd-mig\deploymentshare$) i was able to migrate without any error.
    Can any one help me to find out what is the error about.
    Thanks in advance.
    D. Sendil Kumar

    Ugh...
    ValidateCaptureLocation is a function in the Deployment Wizard, the wscript object is *not* available from within the MSHTA environment, so be careful.
    Instead of:
    wscript.sleep 5000
    use this instead:
    outility.SafeSleep 5000
    Is your DHCP server slow?
    Keith Garner - keithga.wordpress.com

  • How to use USMT hardlink through MDT

    hi,
    how can i use the USMT hardlink though MDT ? can we hve some step by step?
    Shailendra Dev

    I don't have a walk-through but there's plenty of stuff in the manual.
    You will need to perform a standard REFRESH deployment.
    Basically, create a standard task sequence.
    Next, from the old machine connect to the deployment share and run the \\server\share$\scripts\litetouch.vbs script.
    select the standard task sequence and follow the wizards.
    select the move data and settings option in the later wizard panes.
    MDT will perform a hardlink in this scenario. To automate this, copy the settings from the summary pane at the end to the customsettings.ini.
    Hope this helps.
    Blog: http://scriptimus.wordpress.com

Maybe you are looking for

  • While runnig the job I am getting the following Oracle_Error...Plz Help Me

    Hi All, I am new to this forumm I am running a job in control m Server...While runnig the job I am getting the following error.... Please help me to sort out this issue... err_mess=old 524: record_date := to_date('&1','YYYYMMDD'); new 524: record_dat

  • What's wrong with my trackpad and serial number?

    So right before all this started going down, I had to randomly hard reset my computer (you know option-command-p-r) because I couldn't click anywhere with my track pad and it would start to randomly pick stuff up. Now I can't scroll with the two fing

  • Problem in deleting the orders under Custom category.

    Hi friends,         I am facing some problem in deleting the Orders which were created under custom category. In fact we are creating Intransits under Standard category "EI" as well as Custom Category "ZP". I am able to modify the intransits created

  • I need more information on using the App Tab feature

    The Help article on App Tabs says "Links to new websites open in a new tab so that your App Tab doesn't change." Unfortunately, mine do change the existing tab instead of opening a new one, so the next time I open Firefox all the App Tabs open at the

  • Error code = 0x20030055

    Im trying to open PDF files into Photohop cs3 but it comes up with error code = 0x20030055 and i cant find anything online to help me fix this error, thanks