Scripting

New Danish PowerShell User Group (PSUG.dk)

0

A new Danish PowerShell User Group is born on Friday, November 16th at 16.30 (CET) in Copenhagen.

The agenda is news about PowerShell 3.0 presented by Ed “The Scripting Guy” Wilson and networking opportunities with other Danish PowerShell enthusiasts.

If interested, read more on their website and register for the event at: http://www.psug.dk/2012/10/er-du-klar-til-forste-mode-i-psug/

There are limited seating for the event!

Installing SQL Server 2008 R2 for SCCM 2012

2

The current supported configuration of SQL Server for System Center 2012 Configuration Manager (SCCM), is Microsoft SQL Server 2008 R2 with Service Pack 1 and Cumulative Update 4. I always use unattended installation of SQL (and anything else if possible). Here are the command lines I uses to setup SQL for ConfigMgr 2012:

SQL Server 2008 R2 RTM Setup:

setup.exe /q /ACTION=Install /ERRORREPORTING="False" /FEATURES=SQLENGINE,RS,AS,IS,SSMS,TOOLS,BIDS,ADV_SSMS,CONN /INSTANCENAME=MSSQLSERVER /INSTANCEDIR=D:MSSQL /SQLSVCACCOUNT="NT AUTHORITYSystem" /SQLSYSADMINACCOUNTS="BUILTINADMINISTRATORS" More >

PowerShell ISE: Not Installed By Default in Windows Server 2008 R2

0

PowerShell 2.0 is installed by default in Windows Server 2008 R2. However, the PowerShell ISE is not… Turns out that the ISE is not installed by default and needs to be added as a Feature.

This is different to a manual install of PowerShell 2 on Windows 2008 (or 2003) where the ISE is included as part of the Windows Management Framework Install.

You can get this feature installed via the following PowerShell commands:

Import-Module ServerManager Add-Windowsfeature PowerShell-ISE

Replicate Active Directory

0

From time to time I spend time on troubleshooting Active Directory and SYSVOL replication at my customers. The built in replication schedule are great, but some time it’s nice to force replication on all Domain Controllers to minimize the waiting time…

This script will force an instant replication on all domain controllers.

ReplicateAD.vbs

Option Explicit

Dim objDSE, strDN, objContainer, objChild, sCommand, WshShell

Set objDSE = GetObject("LDAP://rootDSE")

strDN = "OU=Domain Controllers," & objDSE.Get("defaultNamingContext")

Set objContainer = GetObject("LDAP://" & strDN)

sCommand = More >

Go to Top