-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore Certs From USMT Transfer #45
Comments
I was able to figure this out. The current tool just pass XML files using the /I flag. I needed to generate a xml file using "Scanstate /genconfig" edit these 3 lines to say migrate="no"
And then pass the new config to scanstate with the /config flag. https://docs.microsoft.com/en-us/windows/deployment/usmt/usmt-customize-xml-files I am not sure if I will submit a patch to the project, becuase my solution is hardcoded and not dynamic. The generated XML has hundreds of lines and options and I don't know what the all do. There even seem to be some redundant parts of the xml for what the project already does. I am attaching my generated XML. I had to modify the Invoke-USMTGUI script in the following sections Line 789
I am not sure if I needed to modify the loadstate commands also but I did.
Edit I doesnt' seem like changing the load sate command matters. You just need to specifiy the config.xml in the scanstate |
If you load that xml file into the tool using the custom XML button, does
that not do the trick? I'm not sure I understand why there would need to be
a change to the tool itself if the options you want changed are on the
import/export side.
…On Mon, Apr 8, 2019 at 1:08 PM Nathan ***@***.***> wrote:
I was able to figure this out. The current tool just pass XML files using
the /I flag. I needed to generate a xml file using "Scanstate /genconfig"
edit these 3 lines to say migrate="no"
<component displayname="Microsoft-Windows-dpapi-keys" migrate="no" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-dpapi-keys/microsoft-windows-dpapi-keys/settings"/>
<component displayname="Microsoft-Windows-Crypto-keys" migrate="no" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-crypto-keys/microsoft-windows-crypto-keys/settings"/>
<component displayname="Microsoft-Windows-CAPI2-certs" migrate="no" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-capi2-certs/microsoft-windows-capi2-certs/settings"/>
And then pass the new config to scanstate with the /config flag.
https://docs.microsoft.com/en-us/windows/deployment/usmt/usmt-customize-xml-files
I am not sure I will be able to submit a patch to the project because
currently, my solution is hardcoded and not dynamic. The generated XML has
hundreds of lines and options and I don't know what the all do. There even
seem to be some redundant parts of the xml. I am attaching my generated
XML. I had to modify the Invoke-USMTGUI script in the following sections
Line 789
# Create config syntax for scanstate for custom XMLs.
IF ($SelectedXMLS) {
#Create the scanstate syntax line for the config files.
foreach ($ConfigXML in $SelectedXMLS) {
$ConfigXMLPath = """$Script:USMTPath\$ConfigXML"""
$ConfigXMLConfigPath = """$Script:USMTPath\ConfigSettings.xml""" #https://docs.microsoft.com/en-us/windows/deployment/usmt/usmt-customize-xml-files
$ScanstateConfig = "/i:$ConfigXMLPath /config:$ConfigXMLConfigPath"
}
}
# Create config syntax for scanstate for generated XML.
IF (!($SelectedXMLS)) {
# Create the scan configuration
Update-Log 'Generating configuration file...'
$Config = Set-Config
$GeneratedConfig = """$Config"""
$ConfigXMLConfigPath = """$Script:USMTPath\ConfigSettings.xml""" #https://docs.microsoft.com/en-us/windows/deployment/usmt/usmt-customize-xml-files
$ScanstateConfig = "/i:$GeneratedConfig /config:$ConfigXMLConfigPath"
}
I am not sure if I needed to modify the loadstate commands also but I did.
Line 979
# Set the value for the Config file if one exists.
if (Test-Path "$Destination\Config.xml") {
$LoadStateConfigFile = """$Destination\Config.xml"""
$LoadStateSettingConfigFile = """$Script:USMTPath\ConfigSettings.xml""" #https://docs.microsoft.com/en-us/windows/deployment/usmt/usmt-customize-xml-files
$LoadStateConfig = "/i:$LoadStateConfigFile /config:$LoadStateSettingConfigFile"
}
ConfigSettings.xml.txt
<https://github.com/nickrod518/Migrate-WindowsUserProfile/files/3055482/ConfigSettings.xml.txt>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#45 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACFW-0eGsU1Eb0bi8t1T1LcOYxWmuSk1ks5ve3d7gaJpZM4aNsqW>
.
|
No, because the custom XML button loads each file with the /i flag, I need to run this file with the /config flag.
From the Scan.log
|
I would like to add to be able to ignore certificates during the USMT transfer. I have found this article but I am not sure if it will do what I want. Here is the xml they are recommending to add.
The certs I am trying to ignore can be seen in the below screenshot
The text was updated successfully, but these errors were encountered: