iPowerShell Remote Admin from an iPad


If you follow my blogs you should know by now that I am a big fan of PowerShell. I really like working on the command line and with scripts. 

I am very happy to see more and more Windows based software vendors that are including PowerShell cmdlets.

Recently I found a PowerShell Admin tool from the company Sapien. An PowerShell tool for the iPad. I’ve got to try this.

On the left you see the main application screen with Windows 8.x like tiles. The screenshot on the right is what you see when you tab on the Cmdlets tile.

IMG_0357 IMG_0362

Read more

Script snippets in PowerShell ISE

Screenshot 2014-03-06 22.09.07 There are many PowerShell editors out there on the Internet, varying from commercial products to good old Notepad. When I am creating a PowerShell script I like to use Windows PowerShell ISE editor. The Windows PowerShell Integrated Scripting Environment is the default  editor for Windows PowerShell. In Windows PowerShell ISE, you can run commands and write, test, and debug scripts. Included features are, tab completion, syntax coloring, selective execution, and context-sensitive help. It is al ready installed on most of Windows versions and it has al the features I like use when writing a PowerShell script. One of the most important features is the intellisense feature that auto complete the commands as you are typing them.

Read more

Managing Hyper-V 2012 R2 core server remotely in a Workgroup environment.

Win2012R2_Logo Recently I was recreating my lab environment. At first I used Citrix XenServer on my lab server, a HP DL380, but now I want move to Windows 2012 R2 Hyper-V. I want to make the best use of the available hardware resources, and I like working on the command line and PowerShell, so I’ve installed Windows 2012 R2 Core. After the installation is finished you are presented with nothing but a small black command line box. image

  To help you with the basic configuration of your Windows 2012 R2 Core installation Microsoft provides a small toolkit to get you up on your feet and running. This tool is called sconfig. This tool will let you perform some basic server configuration tasks.imageRead more

Hosted Shared Desktop on XenDesktop 7.1

image_thumb3 Recently I did some research for an Hosted Shared Desktop environment based on Citrix XenDesktop 7.1.  The environment I did my research for consists of 40+ Remote Desktop Services servers, based on Windows 2012 R2. These servers are Citrix Provisioning Services target devices. Within Citrix XenDesktop we have published an Server OS Desktop, with the Machine Catalog, consisting of the aforementioned 40+ RDS servers. The end user will connect to this desktop after logging in to an Storefront portal.

Read more

Checking if an AD object still exist

PowerShell LogoLast week I was talking to an friend, he is an system administrator with a large insurance company in the Netherlands. He told me that at his site there is a huge problem with cleaning up home- and profile folders. This problem was never really acknowledged because there was always enough storage. Recently they have been receiving messages from the storage management system that they are reaching the limits of there storage capacity.

Read more

Resolve GUID to Group Policy Display Name

Today I am troubleshooting some error messages in the event log of a Windows Domain Controller on a customer site. The customer site contains a Windows 2003 Active Director. I will use an Windows 2008 r2 management server to troubleshoot this issue. The AD management and policy management roles and features are installed on this server.

The error message state that some Group Policy Objects are not applied due to a authentication error. This is an generic error that can have many, many causes. To troubleshoot this issue I first have to find which policy is causing these error messages.



Read more

Finding disabled user accounts in an AD Group

PowerShell_thumbThe customer I am currently working at has an application that eats an license for every user in an AD group. They do have an scheduled task that disables user accounts and move them to a separate OU in the AD.
The scheduled task does not remove the users from the application AD group so there are a lot of licenses that remains claimed.

To address this for the long term I will create an RES Automation module that will take over the function of the scheduled task. In this module I will also remove the disabled user form the application AD group. I will describe this module in an future blog.

For now I want a PowerShell one-liner to read the group members, and check whether or not the account is disabled. I also need to exclude an pre staging  OU that holds new users that are about to be enabled and released.

Read more

Citrix PVS: Optimize endpoint with PowerShell

With Citrix PVS the content of a disk is streamed over the network to an endpoint. This requires sufficient bandwidth and an optimized configuration. If both criteria are not met the endpoint suffers from delays, retries or failures.

Aint-nobody-got-time-for-that_thumb1A number of best practices apply when using Citrix PVS, most of them probably apply for your situation. In the past I had to optimize my VM’s manually each and every time I had to create a new vDisk! Ain’t nobody got time for that (link)!

I wrote a PowerShell script that optimizes the endpoint for Citrix PVS and would like to share it with you.

Updated on October 13th, 2013 with version 1.4

Read more

Read DHCP options received by the client

ipconfig /all

When a DHCP client receives information from a DHCP server only basic information, like IP / subnet / gateway / dns /etc, is visible. In some situations clients also receive DHCP options to set specific settings or application configurations (for example with Microsoft Lync or RES Workspace Manager). Knowing what options are received by the clients helps you troubleshoot.

There are multiple road that lead to Rome, in this article I’ll show you three. For one of them I created a PowerShell script which you can run on any machine.

Read more

Configure Citrix Session Printer via PowerShell

In a previous article I explained how you can set Citrix (domain) policies via PowerShell. In one of the comments I got a question from Tony who wanted to set Session Printers. In this article I’ll explain how this is done.

In the article I will first show a quick example and then show some more detailed setting.

Read more