Search This Blog

Thursday, December 17, 2015

Multiple PowerShell commands at the same command line

In some situations I want to be able to run 2 or more PowerShell statements on the same line, without using a script (PS1 file).

Semicolon can be used to chain Commands in PowerShell.

powershell -command get-date;get-host

image

This could for example come in handy in a Task Sequence as shown her:

PowerShell -command "&{Import-Module ServerManager;Add-WindowsFeature -Name AS-Ent-Services,AS-Tcp-Port-Sharing,AS-NET-Framework}"

image

Thursday, December 10, 2015

No more security updates for .NET Framework 4, 4.5 and 4.5.1

Just a quick warning so that we all remember to take action on this challenge.

Starting January 12, 2016 Microsoft will no longer provide security updates or hotfixes for .NET 4, 4.5, and 4.5.1 framework.

Support Ending for the .NET Framework 4, 4.5 and 4.5.1

This was previously announced in 2014:

Moving to the .NET Framework 4.5.2

image

Microsoft .NET Framework 4.6.1 (Offline Installer) for Windows 7 SP1, Windows 8, Windows 8.1, Windows 10, Windows Server 2008 R2 SP1, Windows Server 2012 and Windows Server 2012 R2

Monday, December 7, 2015

System Center 2012 R2 Configuration Manager Toolkit

Microsoft has released an updated version of System Center 2012 R2 Configuration Manager Toolkit.

The Microsoft System Center 2012 R2 Configuration Manager Toolkit contains fifteen downloadable tools to help you manage and troubleshoot Microsoft System Center 2012 R2 Configuration Manager.

System Center 2012 R2 Configuration Manager Toolkit

image

The new version addresses the following issues reported with tools since the release of Service Pack 2 for System Center 2012 Configuration Manager, and Service Pack 1 for System Center 2012 R2 Configuration Manager.

  • The Role-based Administration Modeling and Auditing Tool (RBAViewer.exe) terminates unexpectedly on startup after installing Service Pack 1 for System Center 2012 Configuration Manager R2. RBAViewer has stopped working
    image
  • Collection Evaluation Viewer still lists collections on the incremental tab even after incremental updates are disabled for a given collection.
  • The Power Viewer Tool (PowerVwr.exe) terminates unexpectedly when run on Windows 10 systems.
  • The revised toolkit now creates shortcuts under Microsoft System Center->Configuration Manager in the Start Menu, as instead of Microsoft System Center 2012
    image

From the download link:

The Microsoft System Center 2012 R2 Configuration Manager Toolkit contains fifteen downloadable tools to help you manage and troubleshoot Microsoft System Center 2012 R2 Configuration Manager. The following list provides specific information about each tool in the toolkit.

Note: Items with an * are new in the R2 Toolkit and require Microsoft System Center 2012 R2 Configuration Manager for full functionality.

Server Based Tools

* DP Job Manager - A tool that helps troubleshoot and manage ongoing content distribution jobs to Configuration Manager distribution points.

* Collection Evaluation Viewer - A tool that assists in troubleshooting collection evaluation related issues by viewing collection evaluation details.

* Content Library Explorer - A tool that assists in troubleshooting issues with and viewing the contents of the content library.

Security Configuration Wizard Template for Microsoft System Center 2012 R2 Configuration Manager - The Security Configuration Wizard (SCW) is an attack-surface reduction tool for the Microsoft Windows Server 2008 R2 operating system. Security Configuration Wizard determines the minimum functionality required for a server's role or roles, and disables functionality that is not required.

Content Library Transfer – A tool that transfers content from one disk drive to another.

Content Ownership Tool – A tool that changes ownership of orphaned packages (packages without an owner site server).

Role-based Administration Modeling and Auditing Tool – This tool helps administrators to model and audit RBA configurations.

Run Metering Summarization Tool - The purpose of this tool is to run the metering summarization task to analyze raw metering data

Client Based Tools

Client Spy - A tool that helps you troubleshoot issues related to software distribution, inventory, and software metering on System Center 2012 Configuration Manager clients.

Configuration Manager Trace Log Viewer – A tool used to view log files created by Configuration Manager components and agents.

Deployment Monitoring Tool - The Deployment Monitoring Tool is a graphical user interface designed help troubleshoot Applications, Updates, and Baseline deployments on System Center 2012 Configuration Manager clients.

Policy Spy - A policy viewer that helps you review and troubleshoot the policy system on System Center 2012 Configuration Manager clients.

Power Viewer Tool – A tool to view the status of power management feature on System Center 2012 Configuration Manager clients.

Send Schedule Tool - A tool used to trigger a schedule on a client or trigger the evaluation of a specified DCM Baseline. You can trigger a schedule either locally or remotely.

Wakeup Spy – A tool that provides a view of the power state of Configuration Manager client computers and which operate as managers or manages.

Supported Operating System
Windows Phone 7, Windows Phone 8, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2
These releases are compatible with System Center 2012 Configuration Manager and later.

image

Friday, December 4, 2015

Windows 10 1511 feature upgrade and WSUS

Microsoft has released an update for WSUS on Windows 2012 and 2012 R2 server. This update is required to support deployment of the Windows 10 1511 upgrade by WSUS or the upcoming Configuration Manager (vNext).

Update to enable WSUS support for Windows 10 feature upgrades

Before installing this hotfix on Windows Server 2012 R2, verify that you already has this hotfix installed https://support.microsoft.com/en-us/kb/2919355

More information can be found here:

Important update for WSUS 4.0 (KB 3095113)

image

After installing the update your WSUS console (Windows Server Update Services) will report a new version number 6.3.9600.18057

image

image

Thursday, December 3, 2015

Licensing grace period

When playing around with RDS in your LAB, you might run in to the problem that you have exceeded your grace period.

The RDS server will show the message: Remote desktop licensing mode is not configured. Remote desktop Services will stop working because this computer is past its licensing grace period. On the RD connection Broker server, use Server Manager to specify the Remote Desktop licensing mode and the license server.

image

If you try to connect from a client you will se this message: The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license. Please contact the server administrator.

image

Given that this is just for testing and not production, you might not be able to specify a valid license server.

Open registry editor and go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod right click on the key and select Permissions

image

Grant your self or the administrators group Full Control as shown here:

image

Now delete the key (GracePeriod)

image

Confirm that you want to delete the key:

image

If you don't grant your self full control you will get this error while deleting:

image

After a server restart you will get a new full grace period: Remote Desktop Services will stop working in 119 days. On the RD connection Broker server, use Server Manager to specify the Remote Desktop licensing mode and the license server.

image