Archive for the 'Scripting' Category

Nur Noch 1 Woche - Microsoft Evolution Day 2013 (Thu. 20 Jun/Zurich Digicomp)

Schweiz / Suisse / Switzerland Microsoft Evolution Day 2003 (ZurichSpannende break-out sessions warten auf Sie an den Microsoft Evolution Day 2013 Event am Do. den 20. Juni 2013 in Zürich. Lassen Sie diese Gelegenheit nicht entgehen, mit IT Pros und Microsoft Experte unterschiedlicher Fachbereichen zu vernetzen. Anmeldung und Details hier.

Ich  freue mich auf Ihren Besuch an den Event und meine Vorträge:

  • Powershell v3 Administration fuer IT Pros
  • Besserer Einsatz von Lync Server in einer Virtual Desktop Infrastruktur (VDI)
  • Hyper-V Administration mit PowerShell
  • System Center - SP1 Orchestrator (Opalis)

Technorati tags: Info, Event, Training, PowerShell, Hyper-V, Lync

No Comments »

TIP #1304: Lync PowerShell - Get-CsUser “RegistrarPool” Front-End Pool (Part 2B)

The workaround to TIP #1303: Lync PowerShell - Get-CsUser “RegistrarPool” Front-End Pool (Part 2A) is pretty straightforward. Even though each item in the array is a string object, an explicit cast to [string] is essential to solve the issue with the strange error messages:

$rpool = “pool01?, “pool02?, “pool03?

$rpool | % {
$v = [string]$_
Get-CsUser -Filter { RegistrarPool -eq $v }
}

Technorati tags: PowerShell, Microsoft Lync Server/Client /Lync Phone Edition / Lync Mobile

No Comments »

Speaker @ Microsoft Evolution Day 2013 (Thu. 20 Jun/Zurich Digicomp)

Swiss / Schweiz / SuisseMicrosoft Evolution Day 2013 (Digicomp)I am super excited to be presenting not just one, not two but four break-out sessions at this year’s Microsoft Evolution Day 2013 organized by Digicomp.

The topics that I shall be speaking on will be delivered in German:

  • Powershell v3 Administration fuer IT Pros
  • Besserer Einsatz von Lync Server in einer Virtual Desktop Infrastruktur (VDI)
  • Hyper-V Administration mit PowerShell
  • System Center - SP1 Orchestrator (Opalis)

Learn from a panel of experts walking through real-world coverage of the latest in Microsoft products and technologies from Windows Server 2012, System Center family, Hyper-V, Lync Server 2013, Exchange Server 2013, SharePoint Server 2013 to efficient administration with PowerShell.

More information and registration can be found here.

Technorati tags: Info, Event, Training, PowerShell, Hyper-V, Lync

No Comments »

TIP #1303: Lync PowerShell - Get-CsUser “RegistrarPool” Front-End Pool (Part 2A)

You have a number of servers in different Lync Server 2013/2010 Enterprise Front-End Server Pools. The task is to query users assigned to the respective pools and you came up with a short script not unlike the following sample:

$rpool = “pool01″, “pool02″, “pool03″

$rpool | % {
$v = $_
Get-CsUser -Filter { RegistrarPool -eq $v }
}

Pretty straightforward ain’t it, yet you are confronted with one or more errors as listed. How could you provide a fix or workaround? Get into the game and let us know your thoughts!

Continue Reading »

No Comments »

TIP #1302: Lync PowerShell - Get-CsUser “RegistrarPool” Front-End Pool (Part 1)

It is not uncommon to set a constraint on a result set by piping the output further down the pipeline to the Where-Object cmdlet. Take for instance that you are looking to retrieve all users homed on the Lync Server Front-End Pool identified with a valid FQDN. Using Get-CsUser, you chain the cmdlets as illustrated:

$poolFQDN = “fepool01.swissitpro.ch”
Get-CsUser | Where-Object { $_.RegistrarPool -eq $poolFQDN }

The command statement completed successfully with neither any failure message nor usable data returned. So what could be the reason for this behaviour?

Continue Reading »

No Comments »

TIP #1301: Lync PowerShell - Get-CsPool Cannot find “Pool”

To discover a list of available pools in the deployment of Lync Servers, simply execute the Get-CsPool cmdlet in the Lync Server Management Shell. Appending the fully qualified domain name to the positional parameter -Identity enables you to zoom into a particular pool, e.g.

Get-CsPool -Identity lyncpool.swissitpro.org

Continue Reading »

No Comments »

Lync Server 2013/2010: Cannot generate SSPI context

Should the Lync Server Front End (RtcSrv) service fail to start or is stuck at “Start Pending”, you may encounter the following error message when attempting to execute any Lync PowerShell cmdlet:

C:\Users\administrator> Get-CsPool

Get-CsPool : The target principal name is incorrect. Cannot generate SSPI context.
At line:1 char:1
+ Get-CsPool
+ CategoryInfo: NotSpecified: (:) [Get-CsPool], SqlConnectionException + FullyQualifiedErrorId : Microsoft.Rtc.Common.Data.SqlConnectionException, Microsoft.Rtc.Management.Xds.GetPoolCmdlet

Continue Reading »

1 Comment »

TIP: PowerShell Excel COM Objekt - Bearbeitung Beschleunigen (Speed-up)

Deutsch / GermanPowerShellPowerShell Community Konferenz Update (link)
Fazit 3 Tage PowerShell Community Konferenz 2013! Einfach geil!
von Peter Kriegel

PowerShell Conference Germany (link)
von www.powertheshell.com

Start-Demo.ps1 (New and Improved Start-Demo)

Mit PowerShell ist es möglich, Office Excel oder ähnliche Produkte durch Component Object Model (COM) zu steuren. Allerdings mit der klassichen Methode kann der Vorgang eine Weile dauern. Diese ist ein bekanntes Problem und eine häufige Frage, die ich auch bei der erfolgreichen PowerShell Community Konferenz stets bekommen habe.

Hier ist ein klassiches Bearbeitungsbeispiel:

$row = $col = 1
$data = Get-Process
$data | % {
$worksheet.Cells.Item($row++, $col).value2 = $_.Name
}

Continue Reading »

No Comments »

Speaker/Proctor: PowerShell Community Konferenz (09 bis 11.Apr 2013)

Germany / Deutschland Schweiz / Switzerland / SuissePowerShellNeben der Rolle als Proctor* bin ich sehr glücklich als Speaker an die PowerShell Community Konferenz in Oberhausen/Ruhrgebiet (Deutschland) mitzuteilen. Mein Vortrag findent am Mi. 10. Apr 2013 um 1630 Uhr statt:

Microsoft Office Automatisierung mit PowerShell

Dieser Vortrag fuehrt Sie praxisorientiert in der Verarbeitung von Office mit PowerShell. Von den grundlegenden Programmiertechniken bis hin zu den wichtigsten Merkmale werden bewährte Praktiken erläutert. Erlernen Sie “live” praxinah anhand zahlloser Beispiele die Kunst der PowerShell-Programmierung in Microsoft Office 2010/2013.

Ihren Besuch an die Konferenz (Anmeldung und Details hier) wird das ganze Team erfreuen!

* Grundlagen-Hands-On-Workshop (Di. 09. Apr 2013)

Technorati tags: Event, Training, PowerShell

1 Comment »

PowerShell Community Konferenz (deutschsprachige) in Oberhausen/Ruhrgebiet - 09.Apr bis 11.Apr 2013

Deutsch / GermanSchweiz / Suisse / Switzerland PowerShellVerzögern Sie sich nicht bei der deutschsprachige PowerShell Community Konferenz 2013 heute anzumelden! Die Konferenz fängt am Di. 09. Apr 2013 mit der PowerShell Grundlagen-Hands-On-Workshop (pre-Konferenz) an. Ich bin sehr froh darauf, als Proctor / Dr. Tobias Weltners Trainer-Assistant unterstützen zu dürfen.

Zwei Hauptkonferenztage (Mi. 10.04.2013 bis Do. 11.04.2013) von PowerShell-Top-Experten wie Peter Monadjemi, Dr. Holger Schwichtenberg, Dr. Tobias Weltner und die Hautevolee (who’s who) in der PowerShell-Welt im Europa runden die Konferenzagenda ab. Lassen Sie sich diese Gelegenheit nicht entgehen!

Technorati tags: Event, Training, PowerShell

No Comments »

Next »