Save help module varmodule destinationpath csavedhelp

This preview shows page 197 - 199 out of 242 pages.

Save-Help -Module $varModule -DestinationPath C:\SavedHelp And here are the commands being executed: The saved help files are then located in the specified directory:
Image of page 197

Subscribe to view the full document.

186 CHAPTER 10 Windows PowerShell The files can then be copied to the disconnected network using removable media. Windows PowerShell 4.0 also supports a “pull” method. The method requires you to start on the isolated network. Connect to a system that has the module that requires a help file update. Using Export-CliXml, you can deserialize the PSModuleInfo object of that module to disk. That object can be transported on removable media to an Internet-connected system. Save-Help can be run on the Internet-connected system against the deserialized PSModuleInfo to download the most current help. The help files can then be transported back to the isolated network. This method, however, is not recommended for use on high-security networks where there is concern of data exfiltration on removable media. If you are a serious Windows PowerShell user who authors your own module, you can also author updatable help. For more information, see “Updatable Help Authoring: Step-by-Step” at desktop/hh852735(v=vs.85).aspx . Jeff Butte Senior Consultant, US Public Sector Yet more new cmdlets As you might expect, Windows PowerShell 4.0 introduces yet more new cmdlets you can use for configuring and managing various aspects of client and server, especially those running Windows Server 2012 R2 and Windows 8.1. The sections that follow include descriptions of some of the new cmdlets you might find useful for your environment along with some usage examples. DISM cmdlets Deployment Image Servicing and Management (DISM) is a command-line platform you can use to mount and service Windows images for purposes of deployment. Windows Server 2012 introduced a DISM PowerShell module that contained 22 different cmdlets. Windows Server 2012 R2 expands the DISM module with more cmdlets including the following ones for managing various aspects of Windows image (.wim) files. Add-WindowsImage The Add-WindowsImage cmdlet adds an additional image to an existing image (.wim) file. Add-WindowsImage compares new files to the resources in the existing .wim file, specified by the Name parameter and the ImagePath parameter, and stores only a single copy of each
Image of page 198
Yet more new cmdlets CHAPTER 10 187 unique file so that each file is only captured once. The .wim file can have only one assigned compression type. Therefore, you can only append files with the same compression type. The Add-WindowsImage cmdlet does not apply to virtual hard disk (VHD) files. IMPORTANT It’s important to note that you’ll need to ensure you have enough disk space before you run Add-WindowsImage. If you run out of disk space while the image is being appended, you might corrupt the .wim file.
Image of page 199
You've reached the end of this preview.
  • Spring '16

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern