App-V Application Service Issue

During sequencing of an application I received an error about the services (App-V Sequencer 4.6). The installer of the application installs a service that is required for the application. Normally the installer starts the service and continues the installation but this time the following error message occurred.

Continue reading

SCCM Mandatory Assignment with Powershell

I had to automate some steps in SCCM. Therefore I created a GUI based tool with powershell to import applications in SCCM. It also creates advertisements for each application. My customer requires mandatory assignment, based on the date and time in the advertisement of the application. I wrote the following code to create an advertisement with a mandatory assignment.

Continue reading

Disable not connected NIC’s

My colleague Niels Geursen called me and asked if I could help him with some scripting. At his customer, monitoring software generates a pop-up window with a warning about some NIC’s that were not connected. By disabling the NIC’s the error does not appear. To avoid manual actions on all Citrix servers he wanted to created a script to collect all disconnected NIC’s and disable them. To help Niels I wrote the following script.

Continue reading

Importing App-V apps in SCCM with Powershell

With the SCCM 2007 R2 release Microsoft delivers a VBScript to import and manage App-V applications. Because the limitations I wrote the import part in Powershell. The following script is only to import an App-V application and does not create a Collection or Advertisement.

To import an App-V application the following parameters are required.

$App = The App-V sequence name based on the directory name.
$Site = SCCM Site
$smsShare = The share of the SCCM server to copy the application to.
$AppShare = The share where the application is located.
$SCCMServer = SCCM Server Name.

Param($App, $Build, $Site, $smsShare, $AppShare, $SCCMServer)

The following function is to add the icon in SCCM.

Function Icon-Handeling
{
param($Icon)

$Obj = New-Object -ComObject ADODB.Stream
$Obj.Open()
$Obj.Type = 1
$Obj.LoadFromFile("$Icon")

Set-Variable -Name IconData -Value $Obj.Read() -Scope 2
}

Continue reading

Lost Network Connection on W2K8 Server Core / Hyper-V

I installed Windows Server 2008 R2 Server Core to create a Hyper-V server for a test environment. After finalizing the settings and configuring the firewall, I established a remote connection to the Hyper-V server.

My first step was to create two virtual switches, one “Internal Network” and an “External Network”. The external connection is linked to the physical network card on the server. After applying the “External Network” I lost the connection with the server. I forgot that Hyper-V disables all network bindings except the “Microsoft Virtual Network Switch Protocol”. I Googled to find a way to enable the protocols and found “nvspbind.exe” that can be downloaded here. With NVSPbind you can reset, disable/enable the network bindings and change the NIC order. It is a very useful tool that can save a lot of time.

Continue reading