Using the Set-ExecutionPolicy Cmdlet

Changing the Windows PowerShell Script Execution Policy
The Set-ExecutionPolicy cmdlet enables you to determine which Windows PowerShell scripts (if any) will be allowed to run on your computer. Windows PowerShell has four different execution policies:

  • Restricted – No scripts can be run. Windows PowerShell can be used only in interactive mode.
  • AllSigned – Only scripts signed by a trusted publisher can be run.
  • RemoteSigned – Downloaded scripts must be signed by a trusted publisher before they can be run.
  • Unrestricted – No restrictions; all Windows PowerShell scripts can be run.

To assign a particular policy simply call Set-ExecutionPolicy followed by the appropriate policy name. For example, this command sets the execution policy to RemoteSigned:

Get-ExecutionPolicy
Set-ExecutionPolicy RemoteSigned

Loading

Change product key in windows server 2012

• Open an elevated command prompt and type the following commands:
• slmgr -upk
• slmgr -ipk abcde-abcde-abcde-abcde-abcde
This will add your key. Of course replace the abcde-abcde with your own real key.
• Activate Windows (you will probably have popups already during this process)

Loading

How to install .NET Framework 3.5 on Windows Server 2012

Apparently, there’s a bug in Windows Server 2012 when trying to add the .NET Framework 3.5 from Server Manager. In order to get it to work, I had to enable the feature via the Command Prompt.

This is the command that I had to type:

dism /online /enable-feature /featurename:NetFX3 /all /Source:d:\sources\sxs /LimitAccess

Note-1: Source should be the Windows installation disc. In my case, this was located on D:
Note-2: CMD or powershell must be administrator rights.

Loading

What’s New in Windows Server 2012 Active Directory

You can divide the “what’s new” categories in Windows Server 2012 Active Directory into two roughly equal parts: brand new and merely improved. Either way, you’re going to like what you see.

New Features
Pundits, bloggers and journalists alike will be diving into these details for months to come. Let’s take a look at the new high-level features, starting with the brand-new functions:

GUI for Recycle Bin
Microsoft introduced the Active Directory Recycle Bin in Windows Server 2008 R2, but it was limited by its Windows PowerShell-only exposure. This time it gets a GUI.

GUI for Fine-Grained Password Policies
Also gaining a GUI are fine-grained password policies.

Loading