Powershell Automatic Script Based on UI Parameters
It would be awesome if you had a function in the UI that allowed me to set up a migration, and then generate the corresponding PowerShell (save me the time of figuring how to encode all of my options).

This is not in our plan as this would be a massive amount of work. We also fear that the results would be supbar compared to an hand-crafted script.
We understand that PowerShell can be intimidating but our documentation is there to help (and so is our incredible support team).
13 comments
-
Anonymous commented
Hello, how can I save a task to a powershell script so I can use that script as a starting point to copy other sites with the same settings? Thanks, MvB.
-
Anonymous commented
Would be nice if we could setup the migration settings within the UI and then export the process into PowerShell version to run on another location if needed.
I am doing some migration into my test farm proving no issues and then doing the same actions to migrate to my production farm. Would be much easier if I could just export the PS and update the destination and run.
-
Anonymous commented
What would be great is if we could build a migration through the GUI and then export the job to powershell so we could make minor modifications and understand all the components of the migration job.
-
Victor commented
We use ShareGate to migrate content from an old SP2010 site to the new SPO site. While in parallel testing we need to migrate changes daily. Being able to script this in Powershell from the UI would be fantastic. This type of feature would help us automate a number of these tasks.
-
Anonymous commented
Add the ability to export a configuration for migration from the ShareGate UI out to powershell. It would make the work of automating a mass migration easier if all the actions selected in a migration could be exported to a set of powershell functions that would serve as the starting point of automated migration.
-
Alexei commented
Our group needs to adjust some parameters after an SPList or SPSite has been moved based on new/old location (rename groups, adjust list filters, add new groups if the object with broken inheritance is moved between site collections). Would be great if developers could provide post migration script(s) and end users could take care of the Site Collection housekeeping.
-
Jess Wong commented
Hi there
I'm no powershell expert. But I want to schedule migrations out of hours because I'm getting the throttling message a lot.
I'm following your guide but the powershell options for site migration options are a bit light on. I don't know the codes to just migrate the content of a library and ensure the appropriate content types are assigned during migration etc.
It would be awesome if I create the migration and configure all the components (eg, Migrate Content, Metadata configured, options (untick permissions or web parts etc). Then a button to "Export a powershell command to schedule this migration task" which contains all the code necessary to use following your guide here https://en.share-gate.com/blog/schedule-sharepoint-migration-with-powershell.
Might be pie in the sky stuff... but wanted to ask! ;)
Cheers
Jess
Feedback sent from the Migration Report view. -
Kent Del Castillo commented
Other products have this ability, it would be nice if it were included.
-
Anonymous commented
I think it would be interesting when running a report/migration in ShareGate to see the underlying script being ran in Powershell. As someone who isn't savvy when it comes to PowerShell in SharePoint, but attempting to learn it be useful to see the exact scripts that are being ran and how they're formatted for my environment. I know from my Cisco days, when modifying an ASA using the GUI, there was an extra window you could have open that would show you the exact commands being ran, as you made modifications via the GUI. Hope this makes sense?
-
Borhan Zadeh commented
Hi Nathalie,
Just checking where this is at, still really keen on this idea.
Thanks.
-
Borhan Zadeh commented
Thanks Nathalie!
Yes this would be great as setting up a migration is easier to do visually than via the Powershell commands.
-
Victor commented
Add a button to generate PowerShell scripts from the current UI settings. Connected to and from, property template, mapping, etc.
-
Caroline Vongkoth commented
Sharegate cmdlet for a Audit report