Exclude specific Windows Settings and registry Keys without creating a custom XML
Hi, I want to exclude specific Windows Settings like the power Options, RAS Connections, Virtual Network Adapters, VPN Settings, L2TP Settings, registry Key and 3G Connection. I don't want to create a Custom XML File, I would like to integrate it directly into the Powershell Script.
How can I do this??
Inclusions and exclusions are all done through custom XML. The script is basically a front end for creating that custom XML file. You'll have to do research on your own to find what specific settings you need to modify to meet your needs and then if it seems like something common maybe we can add it to the script for everyone to benefit from. Here is info from Microsoft on exclusions and inclusions using USMT: https://technet.microsoft.com/en-us/library/cc722303(v=ws.10).aspx
But if i Use Custom XML the Settings like
$DefaultIncludeAppData = $true $DefaultIncludeLocalAppData = $false $DefaultIncludePrinters = $true $DefaultIncludeRecycleBin = $false $DefaultIncludeMyDocuments = $true $DefaultIncludeWallpapers = $true $DefaultIncludeDesktop = $true $DefaultIncludeFavorites = $true $DefaultIncludeMyMusic = $true $DefaultIncludeMyPictures = $true $DefaultIncludeMyVideo = $true
will be disable. ?!?
What you could do is copy the XML that is generated by those options and include it in your custom XML.
But a similar Problem with exclusions is your function RecycleBin. It set it in the config.ps1 to $false and i don't check the box. On the Destination PC I get in the load log the following Response: [0x080000] Exclude pattern skipped because enumeration root is not present: %CSIDL_BITBUCKET%* [*]
Therefore it is not excluded
So you're saying that even though RecycleBin is set to false and you aren't checking the box, it's still trying to copy the items? Is it doing that with other components as well?
Out of curiosity, why do you wish to not create a custom XML It would give you the most control over granular settings such as these?
On Wed, Jun 21, 2017 at 7:35 AM, Si-Mi [email protected] wrote:
Hi, I want to exclude specific Windows Settings like the power Options, RAS Connections, Virtual Network Adapters, VPN Settings, L2TP Settings, registry Key and 3G Connection. I don't want to create a Custom XML File, I would like to integrate it directly into the Powershell Script.
How can I do this??
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nickrod518/Migrate-WindowsUserProfile/issues/18, or mute the thread https://github.com/notifications/unsubscribe-auth/AYaeXBN5soqVosDtbKUReO5kVoDB_I7aks5sGSofgaJpZM4OBDeG .
-- William Myers,
Computing Technology Specialist HT Bldg Room 16 Portland Community College Sylvania Campus 12000 SW 49th Ave, Portland, OR 97219 (971)722-6257
First of all we include in the scanstate Arguments the following
XMLComponetConfigPath ="""$USMTPath\componentconfig.xml""" $XMLComponetConfig = "/config:$XMLComponetConfigPath" Update-Log $XMLComponetConfig
The XML File is generated via console scanstate.exe /genconfigxml You can't use this XML with /i:
If you exclude for example a reg key with include Settings from the energysettings in your custom XML with unconditionalExclude and you dont use the xml for /config: the key gets migrated because all componets are included in the Migration
I think you have to include a button that you can use a CustomConfigXML for /config: