Blog
Wissenstransfer von IT-Spezialisten

sepago Spezialisten bloggen über Citrix und Microsoft

Hier bloggen sepago-Spezialisten über ihre Themen: Automatisierung, Cloud Solutions, IT-Security, aktuelle Entwicklungen rund um Citrix- und Microsoft-Technologien, Arbeitskultur.

| |

PowerShell: Scripts, Funktionen und Module einbinden

In diesem Artikel geht es um das Einbinden von PowerShell Scripts, Funktionen und Modulen in die aktuelle Session oder ein anderes Script. Zunächst benötigen wir ein einfaches Script, welches wir unter Hello-World.ps1 speichern.

Ein PowerShell Script aufrufen

Führen wir das Script einmal aus:

PS D:\Scripts\> .\Hello-World.ps1
Hello World
[Date] 2013-11-17
[Time] 17:05
PS D:\Scripts\>

Das Ergebnis ist wenig überraschend – das Script wird einfach ausgeführt! Auf diesem Weg können wir das Script natürlich auch aus einem anderen Script aufrufen.

| |

Create lists of GPO settings with Powershell

The other day I had to finish off the documentation for a XenApp 6.5 Implementation I did a couple of months back for one of our customers.  Of course group policies are a configuration item, I wanted to have in that document.
What I did not want was the default format that the Group Policy Management Console offers in its HTML Reports of GPO settings.
What else could I do?
Of course there is the option to create an XML export with the Group policy module imported into PowerShell.

| |

PowerShell: Arbeiten mit Pfaden und Locations

In der PowerShell gibt es verschiedene Location-Cmdlets für die Arbeit mit Verzeichnispfaden. In diesem Artikel möchte ich eine praktische Anwendungsmöglichkeit für diese Befehle vorstellen. Das Beispiel stellt aber nur einen kleinen Ausschnitt der vielfältigen Nutzungsmöglichkeiten dar und soll zu eigenen Experimenten mit den Cmdlets anregen.

Get-Location

Wenn wir eine PowerShell-Konsole öffnen, zeigt uns diese das aktuelle Arbeitsverzeichnis an.

Wollen wir dieses Verzeichnis in einem Script ermitteln, können wir das mit Get-Location tun.

| |

PowerShell: Working with Paths and Locations

PowerShell provides several Location-cmdlets for the work with directory paths. This post will show you a useful task for these commands. But this is only one cool thing you can do with the cmdlets and it’s meant to encourage you to experiment on your own.

Get-Location

When we open a PowerShell console, it will show us the actual working directory. If we want to identify this directory out of a script, we can do that with Get-Location.

| |

How to execute ConfigMgr 2012 Task Sequence from Powershell

Execution of a ConfigMgr task sequence from Powershell

This little script or function I wrote because I saw a question on the german TechNet forums about it.

An user asked if it was possible to execute a Task Sequence from a script (Powershell in this case). There are some VBS around, but as I’m not too fluent in VBS and I like writing Powershell I thought, why not?!

I did come across some customers running Task Sequence after Task Sequence.

| |

How to sync the Software Update Point (ConfigMgr) via Powershell

Here is another short script you can use on your way to automate every task in your ConfigMgr environment.

Syncing the SUP in ConfigMgr 2012

Synchronizing the Software Update Point in a ConfigMgr environment can happen in two ways – automatically or manually.

This can be configured in your site component’s configuration:

In there you can configure the SUP to synchronize on a schedule or not. If you don’t use a schedule,

| |

Second Prompt for User Credentials in Remote Desktop Services

In a recent deployment of Remote Desktop Services with Windows Server 2012, I experienced a second prompt for credentials. It occurred after successfully authenticating with Remote Desktop WebAccess  and launching a RemoteApp from the browser. This blog explains why the second prompt is shown and how to get rid of it.

What the user is experiencing

Launching a RemoteApp from WebAccess is usually a very simple thing to do. After logging on (see first screenshot below),

| |

How to install and use Citrix WebInterface 5.4 on Windows Server 2012

In my lab environment I tried to install and use Citrix WebInterface 5.4 on Windows Server 2012. This blog will guide you through the installation and configuration process.

Prepare your Windows Server 2012

Install the following roles and features:

  • .NET Framework 3.5 Features (you need access to the Windows installation source – because of the Feature on Demand setup option)
  • Web Server (IIS) with sub-components
    • Application Development
      • ASP
      • ASP.NET 3.5
  • Management Tools with sub-components
    • IIS 6 Management Compatibility
    • IIS 6 Metabase Compatibility