How to Export Team Site Site Pages to .aspx and for subsequent upload to other Team Site and Web Part Customisation included. (Powershell)

Hi guys,
Can i please technically know how to export an .aspx file (in Site Pages library of a team site) to local file?
Basically, SharePoint Designer has this feature "Export File"
i Need exactly the same feature that can be done in Powershell
I tried the following
$web = get-spweb "MY URL"
$folder = $web.GetFolder("SitePages")
$files = $folder.files
#trying to download the first file
[System.IO.File]::WriteAllBytes("C:\\LocalPath",$files[0].OpenRead(),$true)
The file exported via this method is Clean HTML without the Web Part Customisation!
I NEED the web part customisation in the exported files.
Sample downloaded via above script
<!-- Cropping -->
<tr>
<td id="_invisibleIfEmpty" name="_invisibleIfEmpty" valign="top" height="100%"> <WebPartPages:WebPartZone runat="server" Title="loc:LeftColumn" ID="LeftColumn" FrameType="TitleBarOnly"/> </td>
<td id="_invisibleIfEmpty" name="_invisibleIfEmpty" valign="top" height="100%"> <WebPartPages:WebPartZone runat="server" Title="loc:MiddleColumn" ID="MiddleColumn" FrameType="TitleBarOnly"/> </td>
<td id="_invisibleIfEmpty" name="_invisibleIfEmpty" valign="top" height="100%"> <WebPartPages:WebPartZone runat="server" Title="loc:RightColumn" ID="RightColumn" FrameType="TitleBarOnly"/> </td>
</tr>
<!-- Cropping -->
I tried using WebRequest, it returns the  End HTML, which is not working too.
Please if anyone has done this? Or is there any SharePoint Designer Developer here and is willing to share how to perform the export in SharePoint Designer via Powershell? API available?
Much Appreciated!
Cheng

Hi,
According to your post, my understanding is that you wanted to export Team Site Site Pages to .aspx and for subsequent uploaded to other Team Site and Web Part Customisation included using Powershell.
You can export a specific file or object from the Export-SPWeb context.
Export-SPWeb -identity "http://sharepoint" -ItemUrl "/default.aspx"  -Path "c:\default.aspx"
Import-SPWeb -identity "http://sharepoint" -Path "C:\default.aspx"
Here is a similar thread for you to take a look at:
http://sharepoint.stackexchange.com/questions/56664/how-to-download-a-sharepoint-aspx-page-from-server-using-powershell
More information:
http://technet.microsoft.com/en-us/library/ee428301(v=office.14).aspx
Best Regards,
Linda Li
Linda Li
TechNet Community Support

Similar Messages

  • Exported Video is fine on Windows media player for test upload on Youtube now distorted and unfluent

    I made a "slideshow" for a product video for work those are my sequence settings
    I exported it at H264 and 1080p 29.97
    When I played it in Windows media player it ran perfectly now all of a sudden when I uploaded it to Youtube it is completely distorted and unfluent (all the animations, face in and out) look horrible.
    Does somebody know why this changes so drastically from media player to youtube or did I do the wrong settings when exporting it?
    It would be life saving if someone could help me thanks! :-)

    I tried that but that doesn't get rid of the problem.
    You are right there are no video files...
    Do you know which settings I have to chose in general if I want to have a video that can be exported onto youtube in HD?
    Because I am out of options does it have to do with the fps maybe? Because it looks so chopped of as if the video is to slow to process it smoothly?
    Thanks so much for your help btw :-)

  • How to export all the man page in mac to PDF?

    How to export all the man page in mac to PDF?
    I have tried "man -t cat | pstopdf -i -o ~/Desktop/cat.pdf" but this only output one page.
    How could I dump all the man pages to pdf with one or few command as possible?
    The other question is, I copy all the man pages form /usr/share/man, they are .gz.
    After I unzip them and open with less, texteidtor, ultraeditor, all the formate are weird.
    Is there any tool could open them with the right formate as man does?
    I know the man in linux uses the tool "less" to read man pages. How about mac???

    I use Bwana. Copy all and paste into TextEdit. Then, save it. This is the beginning for diskutil:
    diskutil(8)               BSD System Manager's Manual              diskutil(8)
    NAME
         diskutil -- Modify, verify and repair local disks.
    SYNOPSIS
         diskutil [quiet] verb [options]
    DESCRIPTION
         diskutil manipulates the volume-level structure of local disks.  It pro-
         vides information about, and allows the administration of, the partition-
         ing scheme of disks, optical discs, and AppleRAID sets.
    VERBS
         Each verb is listed with its description and individual arguments.
         list [-plist | device]
                    List disks.  If no argument is given, then all disks and all
                    of their partitions are listed.
                    If -plist is specified, then a property list will be emitted
                    instead of the normal user-readable output.  If a device is
                    specified, then instead of listing all families of whole disks
                    and their partitions, only one such family is listed.  In that
                    case, specifying either the whole disk or any of its slices
                    will work.  The -plist and device arguments may not both be
                    specified at the same time.

  • How can I find out whether I will be charged for texting somebody who lives in Canada and I live in the US?

    How can I find out whether I will be charged for texting somebody who lives in Canada and I live in the US?

    If you are on a More Everything plan, International texting is included at no additional charge.
    If you are on any other plan, there will be a charge.
    From Verizon FAQ
    If you have The MORE Everything Plan, unlimited international text and multimedia messaging is included for no additional cost.
    For all other plans, you can find pricing, dialing and coverage information for a specific country on our International Messagingpage.

  • I am wondering how to zoom into a video in iMovie '09. For example I want to  zoom into a certain part of the video. Is there any way to do this???

    I am wondering how to zoom into a video in iMovie '09. For example I want to
    zoom into a certain part of the video. Is there any way to do this???

    Yes.
    If you want to see the zoom, use the Rotate, Crop, Ken Burns Tool and select the Ken Burns effect. You can set the starting and ending rectangle for your zoom.
    If you want to go directly to the zoom, use the Rotate, Crop, KenBurns Tool and select Crop. Set the rectangle to be where you want the zoom.

  • Firefox cannot load websites but other programs can; and when I click on this link...like so many others... Firefox responds: "Sorry, we couldn't find the page you were looking for. Please, try searching our site using the form below."

    sorry, I'm not going to list any more sites...fix this program, or lose a user since Navigator v1.0

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"

  • How to export images in Acrobat Pro X v10.x for Mac?

    How to export images using Acrobat Pro X v10.1.1?
    This is a positive criticism: it was easy with Acrobat Pro X v.9.x. The new Acrobat interface without menus and submenus is awkward and utterly anti-intuitive. If it ain't broke don't fix it!!! Thanks.

    ==>  http://help.adobe.com/en_US/acrobat/pro/using/WS58a04a822e3e50102bd615109794195ff-7ee7.w.h tml

  • How to export in exact same quality file when uploding for youtube?

    Hello
    Im writing here cause im really tired of exporting dozens of files with bad quality even though im using best exporting settings.
    I tried to watch tutorial clips where people show how to make best quality but still i cant get it right.....i really dont understand where im doing wrong!!
    I would appreciate if there is some1 out there who could help me export in corrects settings.....i know its not easy to help some1 with settings by writing here as u have to know which settings i shot with which settings im using in my timeline and what im using for export....and so on.
    but i give it a try...
    So its like this ive got a camera named
    Sony HDR CX730E
    and i made my shot with setting (pic1)
    its written in swedish anyways its avchd 1920x1080 50p
    so i created a project setting as (pic 2)
    and sequence settings as (pic3)
    and when i export i have tried to export in dozens of files to see which one seems to be best like H.264 ,HD 1080p 29.97 or youtube HD 1080p 29.97 and even i tried Mxf op1a avc intra class100 1080p 25p which gives a superb HD quality when i play it in computer but the files is almost 3,5gb large but i think the larger the file is the better quality i get!?
    Anyhow when i upload the mxf file or any other file which i have exported for youtube it gives a very poor quality once u put Full HD 1080 in full screen ....its almost like u play it without HD......
    I want to achieve something like this http://www.youtube.com/watch?v=avCWzkNiXok
    and my video quality is like youtube video i just showed but unfortunately only in my computer not in youtube.......
    So if there is some1 out there who cud help me ill be so greatful of u!
    Thank you
    (im using adobe premiere pro cc)

    OK.
    First of all, I would not try to export 50fps to 29.97 fps.  I would use 25fps if I used anything other than 50fps.
    Second, there is no need to change your settings at all. YouTube says to upload at the same frame rate you shot it at.
    https://support.google.com/youtube/answer/1722171?hl=en&ref_topic=2888648
    You will also notice that 8Mb/s is the "standard" quality and you can go up to 50Mb/s for 1080p. So try exporting at around the same bitrate as your original recording. If it was 25Mb/s then try that. If 50Mb/s go ahead and try that if you are still not happy at 25Mb/s.
    Although, I generally find that I am content at about 15Mb/s for video without much action, 25Mb/s for most video and for sports I use the max of 50Mb/s.
    Having said that, I don't worry about file size anymore. I have disk space and a fast Internet connection. If either of those are a problem for you, then you may have to adjust your expectations.

  • How to export photos from iphoto'11 to portable drive for download?

    I have 2 macs in different locations and a 500gb portable drive. I am about to leave one location for the second location and want to take my photos from iPhoto with me on my portable drive.
    What is the best way to do this? I do have time capsule on the 1st iMac.
    I use Adobe Photoshop Elements 9 for editing on my iMac. I have a backup catalog Adobe Photoshop Elements 9 and the folder 'my pictures' from my PC (on way to recycle - at last) on the portable drive.
    I am not currently using organizer from Adobe Photoshop 9 -but using events from iPhoto.

    Depends on what you want
    If your want your iPhoto library then drag it to the external drive - in the new location depress the option key and launch iPhoto and use the select library command to choose the library you want - the local one or the one on the EHD
    If you want to merge them then use iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ - to merge the library on the EHD with the local library
    If you want just the photos then select them and export them to the external drive and import them into the other library
    Explain exactly what you want if none of these help
    LN

  • How do i force itunes to re-scan my library for changes i have made to metadata and artwork ?

    I have a large music library and until 3 months a go I thought it would be too hard to organise it. Thankfully there are some good programs that help with this process and I have made many changes to my files/itunes library.
    One program is supported by iTunes but it still leaves me with the old genre catagories in numbers which iTunes seems to deal with automatically ? Pity it didn't change them automatically ? Anyway I'm still not sure what to do with them as I might have a catch 22 situation ? Please read on !
    This program also doesn't make cover art changes more specific......for example less than 250kb + <1000x1000 pixels for iphone and no option for embedding & folder.jpg for my Sonos system.
    So I needed to use other programs.....Right so now I'm getting to the point!
    Now all my changes have been made, it is not so clear what is actually changed ? Some of it might only changed the info associated with the files according to my iTunes Library Database or some of it might actually of modified the actual metadata of the files on my hard drive.
    What I want is for the metadata to be correct at the source AND then of course I want iTunes to have the same information too.
    I think that whatever way I have been doing it HAS actually modified the files at source but I can't be sure.
    What I do know is that the changes I have been making for the last week are not shown in iTunes until I play the track/album.
    I have tried suggestions from forums to force a re-scan and none have worked.
    I have tried add to library an album already in the album which is supposed to not make duplicates and just update the changes, this didn't work.
    I have tried get info on my entire collection and change nothing then clicking OK but that didn't work.
    I have tried get info and entering a comment field on just an album to test and it didn't work!
    I would really like to know if there is a way to update the library & I would love to know if and how to get all my info in iTunes to be permanently reflected at the source.
    Thanks in advance and thanks for listening ;-)

    I closed Itunes, went into the Itunes folder in Music and deleted the files ending in .itdb, .itl and .xml, then I re-opened Itunes and it had a button labeled 'scan for media'. I pressed it and Itunes rescanned everything, so my problem with music which I had deleted but Itunes still marked as 'not found' is gone. Maybe this will help you.
    Btw, the thread is old, but it's the only one I found not archived and that refered to doing an Itunes library re-scan.

  • How can I get an entire page or selection to print without being cut off on sites that don't offer a workaround for lame browser printing options?

    As for the page itself, I guess I can use the preview, but why isn't the software smart enough to scale to fit the width in the first place? As for selections, why do I need the initial indentation that pushes everything over to where it would wrap (if the software were friendly enough to do that)? This is not a new issue. Many websites have created printer-friendly output to get around this lameness long before FF was even introduced.

    Maybe an extension like one of these to remove unwanted content helps:
    *Aardvark: https://addons.mozilla.org/firefox/addon/4111
    *Nuke Anything Enhanced: https://addons.mozilla.org/firefox/addon/951
    *Print Edit: https://addons.mozilla.org/firefox/addon/193270/

  • Sometimes the text on a web page is distorted or looks like it overlays other text. Some web sites the text gets totally mis-aligned. The same sites are fine when I use IE. And sometimes, when typing ... the cursor goes awry.

    Text is overlaid on text to render the page unreadable. sometimes columns are totally misaligned.

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)<br />
    See:
    * http://kb.mozillazine.org/Zoom_text_of_web_pages
    If you have increased the minimum font size then try the default setting 'none' as a high value can cause issues like you described.
    * Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    * Tools > Options > Content : Fonts & Colors > Advanced > [X] "Allow pages to choose their own fonts, instead of my selections above"
    See also [[Websites look wrong]]
    If you need to increase (or decrease) the font size on websites then look at the NoSquint or Default FullZoom Level extension.
    * Default FullZoom Level - https://addons.mozilla.org/firefox/addon/6965
    * NoSquint - https://addons.mozilla.org/firefox/addon/2592

  • How do I make sure my page width is optimized for all monitors?

    I have a portfolio-ish website, and I've noticed that on small screens there is  white space if you scroll to the right. On big screens (Such as my 27" iMac), the design doesn't fit the whole screen.
    http://treyflorkiewicz.com/
    How can I fix this?
    Thanks!

    I believe you have used rectangle frames with image fill on page as background. You may want to use full width rectangles with images as page background which would fit on all screen.
    Thanks,
    Sanjit

  • How to hide columns in each page of SSRS report for grouped tablix

    Hello all,
    I have a requirement like when SSRS report (used row grouping)is exported to EXCEL
    1)  Each report page should be exported to a separate excel sheet
    2) Each sheet will have different columns (that is some columns will hide in sheet2, sheet3...)
    3) Eg: If a country report is there with details like country name, country code, currency code. Now each country details should export to separate excel sheet and sheet 1 should show Country Name and Country code; Sheet2 should show: Country Code, Currency
    Code; Sheet3 should show: Country Name, Country Code, Currency Code.
    I am done with point#1 above: Each report page should be exported to a separate excel sheet. Can some one help on point#2:Each sheet will have different columns (that is some columns will hide in sheet2, sheet3...)
    Thanks,
    Paandey : Dont forget to mark it as Answered if found useful

    Hi paandey,
    According to your description, there are three columns named country name, country code, currency code in the report. When export the report to excel, you want to show Country Name and Country code in sheet1, Country Code and Currency Code in sheet2, and
    show all of the three columns in sheet3.
    In Reporting Services, we couldn’t achieve your goal by setting visibility of columns in one tablix. As a workaround, we can use three tablix in the report, then add page break to the tablix. For detail information, please refer to the following steps:
     1. Since you have created a tablix with three column, copy and paste it to the report twice.
     2. Right-click column handle of Currency code in tablix1, click Column Visibility.
     3. Check Show or hide based on an expression, click (fx) button, then type the expression:
    =(Globals!RenderFormat.Name = “EXCELOPENXML”)
     4. Right-click column handle of Country name in tablix2, set its visibility like step3 above.
     5. Select and right-click tablix2, click Tablix Properties.
     6. In General pane, in Page Break Options section, check Add a page break before check box.
     7. Click Visibility in left pane, check Show or hide based on an expression, click (fx) button, then type the expression:
    =(Globals!RenderFormat.Name <> “EXCELOPENXML”)
     8. Select and right-click tablix3, add page break to it like step6 above.
     9. Set its visibility like step7 above.
    The following screenshot is for your reference:
    For more information, please refer to the following document:
    http://blogs.msdn.com/b/robertbruckner/archive/2010/05/16/report-design-naming-excel-worksheets.aspx
    If you have any more questions, please feel free to ask.
    Best Regards,
    Wendy Fu

  • How do I set the default page when I select "+" for a new tab? Right now it defaults to Yahoo search and I want to set it to my Speed Dial page. I did have the default page set to Speed Dial but I can't find anywhere how I did it in the past.

    You can set the homepage for opening tabs, but I can't find the setting for designating what page opens when I hit the + button on tabs.
    This is the page that loads:
    http://search.yahoo.com/?fr=freeze&type=W3i_NA,132,3_6,Tab%20Search,20100937,6693,0,16,0
    How did Yahoo embed this in the Tab settings?

    Firefox '''does not''' come with a setting for a page that opens in a new Tab, the default installation always opens a blank page when you open a new Tab. Many extensions include a feature to open their choice of a webpage when you open a new tab, as does the Speed Dial extension which uses a "local page" internal to Firefox.
    You need to figure out which extension has taken over that preference that Speed Dial needs to use. You didn't bother providing a Troubleshooting Information... listing as requested when you asked this question, but I can guess your problem is related wither a Yahoo extension or a Conduit / OurToolbar extension - as there is a plugin listed = Package Installer & Install Conduit.
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

Maybe you are looking for

  • Issue while making a call through Nokia lumia 510

    Hi, i have purchased nokia lumia 510 around five months back. since then this phone is troubling me in a way or other. earlier there were issues with internet connectivity when i rectified it now there comes a new problem which occurs while making a

  • Remove & Push Settings failed

    I am trying to get profilemanager working - currently sending remove/push settings does fail immediately (remove settings) or is pending forever (push settings: depending on payload?) whereas device enrolment, trust certificate installation, initial

  • Where are my credits?

    I have purchased 59 euros credits (first number) on 11 june 2012. Then another 50 + 25 euros (second number) on September 2012. Since my first purchase in june last year, I used around 10 euros (dont know what numbers where used). But remains 14 euro

  • Does Oracle Express support Java servlets?

    I am wondering if there is any functionality in Oracle XE that lets it emulate the Oracle Application Server. I am spefically looking for mod_plsql and j2EE(or .jsp and servlet) properties. An .ear file needs to be deployed into an application in the

  • Mac book pro update os x 10.5.8

    Hoe kan ik mijn mac book pro 10.5.8 updaten en waarmee?