Jump to content


thadkew

Established Members
  • Posts

    139
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by thadkew

  1. thadkew

    USMT XP question

    I get no loadstate.log file. This is from the web report: A failure exit code of 3 was returned. User context: NT AUTHORITY\SYSTEM Possible cause: Systems Management Server (SMS) determines status for each program it executes. If SMS cannot find or correlate any installation status Management Information Format (MIF) files for the program, it uses the program's exit code to determine status. An exit code of 3 is considered a failure. Solution: For more information on the exit code, refer to the documentation for the program you are distributing. the task sequence is very simple: Request State Restore Restore User State Release State Store The Restore is set to the proper User State migration tool package and it's not restoring anything out of the ordinary. Verbose logging is enabled.
  2. thadkew

    USMT XP question

    Created a USMT task sequence for computer association. The task will capture the user state on a WinXP box and will put on SMP and hold it for 5 days. Another task sequence is set to restore the data on a PC based on association. The capture task sequence will work fine. But then the restore task sequence fails. Is there a way to manually run the restore?
  3. Wow! That was it. Thanks a bunch! I'll try my task with the query computer model variable and see what happens
  4. Select * just shows the name (minit-jr134dQR or something like that) Select model shows the <no key>
  5. Booting from the boot media created. Press F8 to start cmd prompt type wbemtest press connect and type root\cimv2 and press connect again press Query button and then type Select model from Win32_ComputerSystem and press Apply
  6. Is there any way to update the license key for Office 2010 via a package or within the task sequence? Or is the easiest way just to uninstall O2k10 and then have a package reinstall it with the proper key?
  7. Is it possible to see what it shows while in the WinPE environment? What would I be looking for in the smsts.log file?
  8. True enough. Essentially, the drivers are called based on the collection variable ComputerType, which the technician has to input during the PXE task sequence. However, the drivers are downloaded and applied and downloaded again and applied again and downloaded again and applied again. These are dell drivers that have been imported to the driver store. I'm not sure if it's because the task is just applying the drivers one by one and has to redownload them over and over... These are machines just out of the box. Never been added to domain, never been collected by SCCM. I'm not smart enough to figure out how to make add the machine into SCCM with the proper model without actually installing the client first. And I don't want to manually do that for the hundreds of machines we are soon getting. During the PXE, the collection variable is called on (OSDComputerName and ComputerType) and the technician puts the info in the box.
  9. No, the collection is All Unknown. Because they are unknown systems, they don't have the model in the WMI so that's why i have the collection variable and the task sequence with ComputerType. I don't think that this has much to do with the drivers taking a long time, though.
  10. Is there a way to suppress the OSD notification icon that shows up in the task bar down at the bottom when a OSD Task sequence is advertised? I'm trying to advertise a task sequence that is also available for bootable media. I don't want folks to randomly start running an OSD on their own. The advert isn't mandatory. I've tried setting it so that it only works on VISTA (this is for XP machines), but when booting from media, the TS isn't available. Any help? NEVER MIND. FIGURED IT OUT. Realized i had selected the "disable where advertised" box Thanks!
  11. They are variables that were placed on the collection (Modify Collection Settings/ Collection Variables tab)
  12. Attached you'll find my task sequence for deploying Windows XP The main problem I'm having is that the sequence will redo the drivers install at least three times before it will continue the task. The way the drivers is called is by model name (it's a variable at the beginning). Is there any way to speed up the driver install or at least stop it from installing them three times (or more)? Windows XP deploy.xml
  13. Ok. I've got an OSD task sequence that my supervisor would like me to change to allow for the installation of software based on what the client PC had on prior to imaging. in other words: Mary Smith had Office 2007 with Visio and had Roxio, iTunes and Winzip. However, the base image only puts Office 2007 standard and Winzip on the machine. Is it possible for the task sequence to do a check against a report that shows what software is installed and then add that software? Keep in mind that this task sequence would be run as Mandatory and has no user interaction at all. Please help. Thanks!
  14. Is it possible to create a report to see if a particular folder exists on a client PC? We're trying to find out if the PC has a folder called "Software 1" Then we'll match that to a report that checks to see if it has a folder called "Software 2" and eventually flag the ones that have both. Possible?
  15. Answer: Write a script to delete the Trusted Root Key on the clients. Deploy via SCCM Then the key will be replaced later on next heartbeat Simple. Brilliant.
  16. I found an HTA that will create a computer association within SCCM and it works great. What I'd like now is to figure out a way to add these PCs to the collections (ie. ComputerA is associated to ComputerB and I'd like ComputerA to be placed in the USMT Capture group and ComputerB to be added to the Restore group). Is it possible? Attached is the hta that I used... <html> <head> <title>User State Migration Tool</title> <HTA:APPLICATION ID="objAutoRefresh" APPLICATIONNAME="User State Migration Tool" SCROLL="auto" SINGLEINSTANCE="yes" > </head> <body STYLE="font:14pt arial; color:black; filter:progid:DXImageTransform.Microsoft.Gradient (GradientType=0, StartColorStr='#800000', EndColorStr='#DB7093')"> <center><b>Using this interface we prepare to take a source computer and a destination computer and copy the OS and Application files from the source to the destination</b></center> <p></p><b>The source computer is the user's old computer<br> and the destination computer would be the user's new computer</b> <p></body> <script LANGUAGE="VBScript"> 'Set Variables: Site Server, Username and Password Server = "server" userName = "flerm\SCCM" userPassword = "blerm" Sub TestSub Dim computera, computerb, ResIDA, ResIDB strcomputera = document.getElementById("computera").value strcomputerb = document.getElementById("computerb").value Set connection = Connect(Server, userName, userPassword) Set connection1 = Connect(Server, userName, userPassword) ResIDA = GetResourceIDFromName (connection, strcomputera) ResIDB = GetResourceIDFromNameB (Connection, strcomputerb) AssociateComputer Connection, ResIDA, ResIDB', ResIDA, ResIDB End Sub Sub AssociateComputer(connection, referenceComputerResourceId, destinationComputerResourceId) Dim stateMigrationClass Dim inParams Dim outParams 'On Error Resume Next ' Get the state migration class. Set stateMigrationClass = connection.Get("SMS_StateMigration") ' Set up the parameters. Set inParams = _ stateMigrationClass.Methods_("AddAssociation").InParameters.SpawnInstance_ inParams.SourceClientResourceID = referenceComputerResourceId inParams.RestoreClientResourceID = destinationComputerResourceId 'inParams.MigrationType = "1" 'MsgBox inParams.SourceClientResourceID 'msgbox inParams.RestoreClientResourceID ' Call the method. Set outParams = connection.ExecMethod( "SMS_StateMigration","AddAssociation",inParams) 'connection.ExecMethod stateMigrationClass.AddAssociation,inParams ' MsgBox Err if Err.number <> 0 Then MsgBox "Failed to create a Computer Association, please try again or contact the GOC" Exit Sub Else General_OnClick() End If End Sub ' Utility function to search for the site code Function Connect(server, userName, userPassword) 'On Error Resume Next Dim net Dim localConnection Dim swbemLocator Dim swbemServices Dim providerLoc Dim location Set swbemLocator = CreateObject("WbemScripting.SWbemLocator")' swbemLocator.Security_.AuthenticationLevel = 6 'Packet Privacy. ' If the server is local, don't supply credentials. Set net = CreateObject("WScript.NetWork") If UCase(net.ComputerName) = UCase(server) Then localConnection = True userName = "" userPassword = "" server = "." End If ' Connect to the server. Set swbemServices= swbemLocator.ConnectServer _ (server, "root\sms",userName,userPassword) If Err.Number<>0 Then ' Wscript.Echo "Couldn't connect: " + Err.Description Connect = Null Exit Function End If ' Determine where the provider is and connect. Set providerLoc = swbemServices.InstancesOf("SMS_ProviderLocation") For Each location In providerLoc If location.ProviderForLocalSite = True Then Set swbemServices = swbemLocator.ConnectServer _ (location.Machine, "root\sms\site_" + _ location.SiteCode,userName,userPassword) If Err.Number<>0 Then ' Wscript.Echo "Couldn't connect:" + Err.Description Connect = Null Exit Function Else 'Wscript.Echo "Yay, we connected!!" End If Set Connect = swbemServices Exit Function End If Next Set Connect = null ' Failed to connect. End Function Function GetResourceIDFromName(connection, strcomputera) 'On Error Resume Next ' Build Query string. query = "SELECT ResourceId FROM SMS_R_System WHERE NetbiosName = """ & strcomputera & """" ' Execute the query Set result = connection.ExecQuery(query) If Err then CheckError 'MsgBox "error on a" Exit Function End If ' Walk through the elements of the enumerator. ' Assume there will only be 1 computer with the requested name, if any. resourceID = 0 ' Assume the worst For each r in result GetResourceIDFromName = r.ResourceID 'MsgBox r.resourceID Next End Function Function GetResourceIDFromNameB(connection, strcomputerb) On Error Resume Next ' Build Query string. query = "SELECT ResourceId FROM SMS_R_System WHERE NetbiosName = """ & strComputerB & """" ' Execute the query Set result = connection.ExecQuery(query) If Err then CheckError Exit Function End If ' Walk through the elements of the enumerator. ' Assume there will only be 1 computer with the requested name, if any. resourceID = 0 ' Assume the worst For each b in result GetResourceIDFromNameB = b.ResourceID 'MsgBox b.resourceID Next End Function Sub General_OnClick() strHtm = "<table class=""tbl"">" strHtm = strHtm & "<tr><td>_________________________</td><td>_____________</td></tr>" strHtm = strHtm & "<tr><td>Source Computer </td><td>" & document.getElementById("computera").value & "</td></tr><tr></tr>" strHtm = strHtm & "<tr><td>_________________________</td><td>_____________</td></tr>" strHtm = strHtm & "<tr><td>Destination Computer </td><td>" & document.getElementById("computerb").value & "</td></tr>" strHtm = strHtm & "</table>" 'Next dataarea.innerhtml = strHtm End Sub </SCRIPT> <body> This is the Source Computer = <input type="text" id="ComputerA" size="30"> <p>This is the Destination Compouter = <input type="text" id="ComputerB" size="30"><P> <input id=runbutton type="button" value="Create Computer Association" name="run_button" onClick="TestSub"> <input type="button" value="Create A New Association" onClick="window.location.reload()"> <div style="margin: 200px 0px 0px 0px; background-color: transparent; padding: 10px;"> <div id="dataarea"></div> </div> </body>
  17. From the Locationservices.log: "Failed to refresh trusted key information while refreshing mp list."
  18. So here's my situation: I have SCCM server running mixed mode. Our network environment does not have any certificates at all. I set up an SMP on one of the DPs, created the folder and gave Everyone full rights. Created a task sequence to collect data. SMTS log shows this: Failed to verify certificate signature for '<MyServer>' (0X80090006) ClientKeyRequestToSMP failed (0X80090006) ClientRequestToSMP::DoRequest failed. error=(0X80090006) I have reinstalled the client on the target machine, but it seems to make no difference. Question: Do i need to create some kind of certificate on my server? I mean, there is no chance of getting any certificates created from the DC in our environment. I have checked the certificate store on both the SCCM server and the DP. I've found certs in the SMS folder, and copied them to the Trusted folder. No luck. Please help!
  19. Anyone have any luck with getting a USMT 3.0.1 working with this update installed? Our IT security team is convinced that this update is more important than migrating data. Any ideas how to get around it? I haven't tried a win7 migration with usmt4 and this update. Plus, we're not pushing machines to 7 yet...
  20. SUCCESS! I just went back from the beginning and now it seems to be working. In a limited manner...
  21. Here's a stranger item. On the machine I was testing, I installed USMT 3.0.1 and ran this command from the command prompt: scanstate /i:miguser.xml /i:migapp.xml \\fileserver\migration\mystore /nocompress Capture was sucessful. Logs show success. This isn't a solution that will work over 4000 machines, however.
  22. I do have verbose logging enabled. and I have searched for *.log. Nothing.
  23. That's the problem. I get no scanstate logs at all on this machine... it's bizzare. task just fails... grr
  24. I'm trying to put together a USMT sequence to capture the User State on our SMP It's a windows XP machine. Like it or not, the government doesn't want to do a mass exodus to Win7, so we need to capture XP data. I have a four line task sequence. I have advertised it. I run it and my logs are like this: Initiailization succeeded OSDUSMT 8/20/2010 1:02:26 PM 1436 (0x059C) 'OSDStateStorePath' TS environment variable is empty OSDUSMT 8/20/2010 1:02:26 PM 1436 (0x059C) Failed to construct USMT commandline (0x80004005) OSDUSMT 8/20/2010 1:02:26 PM 1436 (0x059C) Invoking ReleaseSource on USMTPackagePath C:\_SMSTaskSequence\Packages\LKY00101 OSDUSMT 8/20/2010 1:02:26 PM 1436 (0x059C) OSDMigrateUserState finished: 0x80004005 OSDUSMT 8/20/2010 1:02:27 PM 1436 (0x059C) Process completed with exit code 2147500037 TSManager 8/20/2010 1:02:27 PM 2260 (0x08D4) !--------------------------------------------------------------------------------------------! TSManager 8/20/2010 1:02:27 PM 2260 (0x08D4) Failed to run the action: Capture User State. Unspecified error (Error: 80004005; Source: Windows) TSManager 8/20/2010 1:02:27 PM 2260 (0x08D4) Sending status message . . . TSManager 8/20/2010 1:02:27 PM 2260 (0x08D4) Send a task execution status message SMS_TSExecution_ActionFailError TSManager 8/20/2010 1:02:27 PM 2260 (0x08D4) Formatted header: TSManager 8/20/2010 1:02:27 PM 2260 (0x08D4) <Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>GUID:C45C4CEB-9309-40F4-8E1F-DFD01FC76390</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2010-08-20T17:02:27Z</SentTime><Protocol>http</Protocol><Body Type="ByteRange" Offset="0" Length="4200"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg> TSManager 8/20/2010 1:02:27 PM 2260 (0x08D4) Set a global environment variable _SMSTSLastActionRetCode=-2147467259 TSManager 8/20/2010 1:02:27 PM 2260 (0x08D4) Set a global environment variable _SMSTSLastActionSucceeded=false TSManager 8/20/2010 1:02:27 PM 2260 (0x08D4) Clear local default environment TSManager 8/20/2010 1:02:27 PM 2260 (0x08D4) Failed to run the action: Capture User State. Execution has been aborted TSManager 8/20/2010 1:02:27 PM 2260 (0x08D4) Sending status message . . . TSManager 8/20/2010 1:02:27 PM 2260 (0x08D4) Send a task execution status message SMS_TSExecution_ActionAbortExecutionError TSManager 8/20/2010 1:02:27 PM 2260 (0x08D4) Formatted header: TSManager 8/20/2010 1:02:27 PM 2260 (0x08D4) <Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>GUID:C45C4CEB-9309-40F4-8E1F-DFD01FC76390</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2010-08-20T17:02:27Z</SentTime><Protocol>http</Protocol><Body Type="ByteRange" Offset="0" Length="2160"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg> TSManager 8/20/2010 1:02:27 PM 2260 (0x08D4) Failed to run the last action: Capture User State. Execution of task sequence failed. Unspecified error (Error: 80004005; Source: Windows) TSManager 8/20/2010 1:02:27 PM 2260 (0x08D4) Sending status message . . . TSManager 8/20/2010 1:02:27 PM 2260 (0x08D4) Send a task execution status message SMS_TSExecution_TaskSequenceFailError TSManager 8/20/2010 1:02:27 PM 2260 (0x08D4) Formatted header: TSManager 8/20/2010 1:02:27 PM 2260 (0x08D4) <Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>GUID:C45C4CEB-9309-40F4-8E1F-DFD01FC76390</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2010-08-20T17:02:27Z</SentTime><Protocol>http</Protocol><Body Type="ByteRange" Offset="0" Length="2136"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg> TSManager 8/20/2010 1:02:27 PM 2260 (0x08D4) Task Sequence Engine failed! Code: enExecutionFail TSManager 8/20/2010 1:02:28 PM 2260 (0x08D4) **************************************************************************** TSManager 8/20/2010 1:02:28 PM 2260 (0x08D4) Task sequence execution failed with error code 80004005 TSManager 8/20/2010 1:02:28 PM 2260 (0x08D4) Cleaning Up. Removing Authenticator TSManager 8/20/2010 1:02:28 PM 2260 (0x08D4) Cleaning up task sequence folder TSManager 8/20/2010 1:02:28 PM 2260 (0x08D4) File "C:\_SMSTaskSequence\TSEnv.dat" does not exist. (Code 0x80070002) TSManager 8/20/2010 1:02:28 PM 2260 (0x08D4) Successfully unregistered Task Sequencing Environment COM Interface. TSManager 8/20/2010 1:02:28 PM 2260 (0x08D4) Executing command line: "C:\WINDOWS\system32\CCM\TsProgressUI.exe" /Unregister TSManager 8/20/2010 1:02:28 PM 2260 (0x08D4) ==========[ TsProgressUI started in process 3468 ]========== TsProgressUI 8/20/2010 1:02:28 PM 2052 (0x0804) Unregistering COM classes TsProgressUI 8/20/2010 1:02:28 PM 2052 (0x0804) Shutdown complete. TsProgressUI 8/20/2010 1:02:28 PM 2052 (0x0804) Process completed with exit code 0 TSManager 8/20/2010 1:02:28 PM 2260 (0x08D4) Successfully unregistered TS Progress UI. TSManager 8/20/2010 1:02:28 PM 2260 (0x08D4) Start to cleanup TS policy TSManager 8/20/2010 1:02:28 PM 2260 (0x08D4) End TS policy cleanup TSManager 8/20/2010 1:02:28 PM 2260 (0x08D4) Error executing Task Sequence Manager service. Code 0x80004005 TSManager 8/20/2010 1:02:28 PM 2260 (0x08D4) Sending error status message TSManager 8/20/2010 1:02:28 PM 2260 (0x08D4) Formatted header: TSManager 8/20/2010 1:02:28 PM 2260 (0x08D4) <Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>GUID:C45C4CEB-9309-40F4-8E1F-DFD01FC76390</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2010-08-20T17:02:28Z</SentTime><Protocol>http</Protocol><Body Type="ByteRange" Offset="0" Length="1174"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg> TSManager 8/20/2010 1:02:28 PM 2260 (0x08D4) Yet the state store path is there. I've run it a few times, and once it actually created the folder on the SMP... But left nothing in it. My head has been bruised and bloodied by this desk i've been hitting it on. What am I doing wrong? USMT Capture State.xml
×
×
  • Create New...