Jan Egil`s blog on Microsoft Infrastructure

Browse by Tags

All Tags » Scripting (RSS)
Send text messages (SMS) using Windows PowerShell
In Microsoft Office Outlook there is an add-in called Microsoft Outlook SMS Add-in (MOSA), which provides the ability to send text messages (SMS). MOSA is builtin to Outlook 2010, and are available as a plugin for Outlook 2003 and 2007 here . On the Microsoft...
Manage RDS RemoteApp with Windows PowerShell
In Windows Server 2008 R2, Remote Desktop Services (formerly Terminal Services) includes a provider for managing RDS using Windows PowerShell. You may find more information along with some examples in this article on Microsoft TechNet. One of the many...
Manage Windows Update installations using Windows PowerShell
In most domains Windows Update are controlled by Group Policy and Windows Server Update Services (WSUS). For client computers, it`s common to download and install updates automatically. For servers, we want to control the installation of Windows Updates...
Backing up Group Policy Objects using Windows PowerShell
A best practice in domain environments are backing up the Group Policy Objects regularly. Even though a GPO may be restored by restoring a system state backup from a domain controller to an alternate location, and then copy the contents from the deleted...
Dynamic Remote Desktop Connection Manager connection list
Microsoft recently released a free tool for managing multiple remote desktop connections called “ Remote Desktop Connection Manager ”. A sample screenshot: There are several nice features, such as “Connect group” which lets you connect to all servers...
Script to create a NLB-cluster for Exchange Server 2010
When documenting installations I perform I prefer to refer to scripts whenever possible, since this means less screenshots and a more concise reference. When deploying Exchange Server 2010 on Windows Server 2008 R2, we have access to the new PowerShell...
Script to spread Exchange mailboxes alphabetically across databases
I recently needed to write a script to spread mailboxes in Exchange Server 2010 alphabetically across databases. In my scenario there were 5 databases, and I used a regex switch in PowerShell to assign each mailbox to the correct database based on the...
Exchange Server 2010 Cross-Forest migration
In Exchange Server 2010 we can move mailboxes between forests when a forest trust are in place. This can be accomplished using the New-MoveRequest cmdlet from the Exchange Management Shell as well as from the Exchange Management Console. Note that remote...
Enable and configure Windows PowerShell Remoting using Group Policy
As you may know, Windows PowerShell 2.0 introduced a new remoting feature, allowing for remote management of computers. While this feature can be enabled manually (or scripted) with the PowerShell 2.0 cmdlet Enable-PSRemoting , I would recommend using...
Validate SPN mappings using Windows PowerShell
  What is a SPN mapping? A Service Principal Name (SPN) mapping allows a service running on an Active Directory computer to be associated with a domain account that are responsible for the management of the service. This allows the use of mutual...
Automate Group Policy Preferences printer-management using Windows PowerShell
I`ve written a couple of blog posts earlier on Group Policy Preferences and printer deployment using Group Policy . Using Group Policy Preferences is a very flexible way to deploy printer connections. This is also very manageable in smaller environments...
Outlook signature based on user information from Active Directory
To provide a consistent company image all users should use the same signature template in their Outlook profile. I`ve created a Windows PowerShell-script to deploy a consistent Outlook signature to users, based on user information retrieved from Active...