Powershell Activation Configuration File

Resources reside in PowerShell modules and can be written to model something as generic as a file or a Windows process, or as specific as an IIS server or a VM running in Azure. The Local Configuration Manager (LCM) is the engine by which DSC facilitates the interaction between resources and configurations. If you only need to execute a single command, script block, or script file in.NET 4, try using Activation Configuration Files from.NET 4 to start only a single instance of PowerShell using version 4 of the CLR.


For a Windows Server installation that is not connected to the Internet, you can use Windows PowerShell to add .NET Framework 3.5 and provide access to the sourcessxs folder on the installation media. The sourcessxs folder can be copied to network share (for example, networksharesxs) to make it easily accessible to multiple computers. The target computer account DOMAINSERVERNAME$ must have at least read access to the network share.


  • Windows Server 2012 or Windows Server 2016

  • Installation media

    Raja Rani torrents - Newlyweds who hate each other come to terms with each other and their past. Raja Rani torrents - Widowed and with a small son, Raja, Janaki works as a maidservant with a wealthy man. When Raja falls ill, she has no money to get medicines, so she agrees to spend a night with her. Download Raja Rani HD Download, Raja Rani HD Movie Download Raja Rani HD Tamilplay Download. Picktorrent: raja rani full tamil movie hd - Free Search and Download Torrents at search engine. Download Music, TV Shows, Movies, Anime, Software and more. Raja rani tamil movie in hindi dubbed.

  • Administrator user rights. The current user must be a member of the local Administrators group to add or remove Windows features.

  • Target Computers might need network access and rights to use either alternate sources or an Internet connection to use Windows Update.


  1. Start Windows PowerShell in the Administrator Command Prompt by typing:

  2. To install .NET Framework 3.5 from installation media located on a network share, use the following command:

    Where networksharesxs is the location of the source files.

    For more information about the Install-WindowsFeature cmdlet, see Install-WindowsFeature.

  3. To verify installation, run the following command:

    The Install State column should show Installed for the .NET Framework 3.5 (includes .NET 2.0 and 3.0) feature.

Related topics


Updated: August 9, 2012

Applies To: Windows PowerShell 2.0, Windows PowerShell 3.0

When you add aliases, functions, and variables, you are actually adding them only to the current Windows PowerShell session. If you exit the session or close Windows PowerShell, the changes are lost.

To retain these changes, you can create a Windows PowerShell profile and add the aliases, functions, and variables to the profiles. The profile is loaded every time that Windows PowerShell starts.

To load a profile, your Windows PowerShell execution policy must permit you to load configuration files. If it does not, the attempt to load the profile fails and Windows PowerShell displays an error message.

Understanding the Profiles

You can have four different profiles in Windows PowerShell. The profiles are listed in load order. The most specific profiles have precedence over less specific profiles where they apply.

  • %windir%system32WindowsPowerShellv1.0profile.ps1

    This profile applies to all users and all shells.

  • %windir%system32WindowsPowerShellv1.0 Microsoft.PowerShell_profile.ps1

    This profile applies to all users, but only to the Microsoft.PowerShell shell.

  • %UserProfile%My DocumentsWindowsPowerShellprofile.ps1

    This profile applies only to the current user, but affects all shells.

  • %UserProfile%My DocumentsWindowsPowerShellMicrosoft.PowerShell_profile.ps1

    This profile applies only to the current user and the Microsoft.PowerShell shell.

Creating a Profile

When you create or import variables, aliases, or functions, or add a Windows PowerShell snap-in, these elements are added only to the current session. If you exit the session or close the window, they are gone.

To save the variables, aliases, functions, and commands that you use routinely, and make them available in every Windows PowerShell session, add them to your Windows PowerShell profile.

You can also create, share, and distribute profiles to enforce a consistent view of Windows PowerShell in a larger enterprise.

Windows PowerShell profiles are not created automatically. To create a profile, create a text file with the specified name in the specified location. Typically, you will use the user-specific, shell-specific profile, known as the Windows PowerShell user profile. The location of this profile is stored in the $profile variable.

To display the path to the Windows PowerShell profile, type:

To determine whether a Windows PowerShell profile has been created on the system, type:

If the profile exists, the response is True; otherwise, it is False.

To create a Windows PowerShell profile file, type:

To open the profile in Notepad, type:

To create one of the other profiles, such as the profile that applies to all users and all shells, type:

The profile is effective only when the file is located exactly in the path and with the file name that is stored in the $profile variable. Therefore, if you create a profile in Notepad and then save it, or if you copy a profile to your system, be sure to save the file in the path and with the file name specified in the $profile variable.

If you create a profile in Notepad, enclose the file name in quotation marks to preserve the PS1 file name extension. For example:

Without the quotation marks, Notepad appends the .txt file name extension to the file, and Windows PowerShell will not recognize it.

Use the profile to store the aliases, functions, and variables that you use routinely. One very helpful opens your user profile in your favorite text editor. For example, the following command creates a function called pro that opens the user profile in Notepad.

A well-designed profile can make it even easier to use Windows PowerShell and to administer your system.