Posts Tagged ‘PowerShell’

Disable “Allow the computer to turn off the device to save power” for all WiFi adapters

Written by Ingmar Verheij on May 1st, 2014. Posted in Other

When a Windows computer enters sleep mode it ensures that WiFi adapters enters the device power state D3 (Sleep) and on resume ensure it puts it back to the device power state D0 (Full on).

Windows assumes that if a driver says it supports sleep states it handles this correctly, but this setting is known to cause some spontaneous disconnects with the access point (AP). Optionally Windows can be configured to place the WiFi adapters in device power state D4 (Off).

I wrote a PowerShell script that disables the “Allow the computer to turn off this device to save power” setting for all WiFi adapters (contact me if you want it to disable ALL network adapters).

Run and compile .NET code in RES Workspace Manager (using PowerShell)

Written by Ingmar Verheij on April 30th, 2014. Posted in PowerShell, Workpace Manager

There are occasions where you need a custom solution to fulfill a requirement which cannot be solved with existing applications or tools. This is usually where scripting comes into the picture, nowadays we tend to built most scripts using Microsoft PowerShell as it’s a very powerful framework with a huge repository of cmdlets. Nonetheless there are situation where PowerShell has no built-in cmdlet (or third party cmdlet is available) and you’d have to revert to API’s or .NET code.

Wouldn’t it be a shame if you’d have to write and compile .NET code using an IDE like Visual Studio before you can use that code? Well, there’s a solution!

Citrix PVS: Optimize endpoint with PowerShell

Written by Ingmar Verheij on July 24th, 2013. Posted in PowerShell, Provisioning Server

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.

Ain't nobody got time for thatA 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 June 18th, 2014 with version 1.7

Read DHCP options received by the client

Written by Ingmar Verheij on July 12th, 2013. Posted in PowerShell

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.

Configure Citrix Session Printer via PowerShell

Written by Ingmar Verheij on July 9th, 2013. Posted in PowerShell, XenApp (Presentation Server)

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.

Donate