Guillermo

Tuesday, February 24, 2009

CtxAdmTools: CTX Farm Inventory v1.0 Released!

This FREE tool show Hardware and Software of your Citrix Farm or Windows Servers and Export results to Excel File.


Download CTX Farm Inventory at http://ctxadmtools.musumeci.com.ar

Thursday, February 19, 2009

CtxAdmTools: MOM Set Maintenance v1.0 Released!

MOM Set Maintenance v1.0
Release Date: February 19, 2009

This FREE tool Put or Remove Servers and/or Groups to MOM Maintenance Mode


Set one or multiple servers or groups of servers from my desktop with one click now is easy.


To run MOM Set Maintenance successfully you need to install
MaintenanceModeUtility in your MOM Server.

This application is based on
MOM Maintenance Mode Utility GUI

Download MOM Set Maintenance at http://ctxadmtools.musumeci.com.ar

Wednesday, January 21, 2009

CTX: The Citrix Management Console failed to remove the server. Error Code: 80000007

When you try to remove a dead citrix server from CMC, you receive this error:

"The Citrix Management Console failed to remove the server. Error Code: 80000007"

Solution:

dscheck /full servers /deletemf CTXSRV01


where CTXSRV01 is name of the Citrix server.

DSCHECK is a very powerfull (and dangerous) tool, backup your datastore before use it.

CTX: DCOM Error 10016

Error:

Event Type: Error
Event Source: DCOM
Event Category: None
Event ID: 10016
User: CTXSERVER\Ctx_SmaUser
Computer: CTXSERVER
Description: The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID {49BD2028-1523-11D1-AD79-00C04FD8FDFF} to the user CTXSERVER\Ctx_SmaUser SID (S-1-5-21-3439742382-3352395512-2697211326-1010). This security permission can be modified using the Component Services administrative tool.

Easy Solution:

Run the script (see below) and restart the affected machine (or Citrix Print Manager Service and Citrix SMA Service services).

--- fix_dcom.vbs ---

on error resume next
strComputer = "."
Set objGroup = GetObject("WinNT://" & strComputer & "/Administrators")
Set objUser = GetObject("WinNT://Ctx_ConfigMgr")
objGroup.Add(objUser.ADsPath)
Set objGroup = GetObject("WinNT://" & strComputer & "/Administrators")
Set objUser = GetObject("WinNT://Ctx_SmaUser")
objGroup.Add(objUser.ADsPath)

--- fix_dcom.vbs ---

The following script add required permissions and restart citrix services in a remote server (This script don't affect logged users)

--- fix_dcom_remote.vbs ---
on error resume next

Dim objWMIService, objItem, objService
Dim colListOfServices, strComputer, strService, intSleep

strComputer = "abctxps202"
intSleep = 15000

WScript.Echo "Fixing DCOM Error on server " & strComputer

Set objGroup = GetObject("WinNT://" & strComputer & "/Administrators")
Set objUser = GetObject("WinNT://Ctx_ConfigMgr")
objGroup.Add(objUser.ADsPath)

Set objGroup = GetObject("WinNT://" & strComputer & "/Administrators")
Set objUser = GetObject("WinNT://Ctx_SmaUser")
objGroup.Add(objUser.ADsPath)

strService = "Citrix SMA Service"
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set colListOfServices = objWMIService.ExecQuery _
("Select * from Win32_Service Where Name ="_
& strService & " ")
For Each objService in colListOfServices
objService.StopService()
WSCript.Sleep intSleep
objService.StartService()
Next
WScript.Echo "Service " & strService & " has Restarted"

strService = "cpsvc"
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set colListOfServices = objWMIService.ExecQuery _
("Select * from Win32_Service Where Name ="_
& strService & " ")
For Each objService in colListOfServices
objService.StopService()
WSCript.Sleep intSleep
objService.StartService()
Next
WScript.Echo "Service "& strService & " has Restarted"
--- fix_dcom_remote.vbs ---

Sunday, January 18, 2009

MS: Rebuild WMI

To rebuild WMI in a Windows Server 2003 run this script:

--- Rebuild_WMI.cmd ---

net stop winmgmt
cd %systemroot%\system32\wbem
rd /S /Q repository
regsvr32 /s %systemroot%\system32\scecli.dll

regsvr32 /s %systemroot%\system32\userenv.dll
mofcomp cimwin32.mof

mofcomp cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl
for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b *.mof') do mofcomp %%s
for /f %%s in ('dir /b *.mfl') do mofcomp %%s

--- Rebuild_WMI.cmd ---

To rebuild WMI in Citrix Servers:

Optional step: remove Citrix WMI

Remove Citrix WMI component using Add/Remove Program
Reboot server
Install Citrix WMI component using Add/Remove Program

Rebuild WMI:

cd %programfiles%\citrix\system32\citrix\wmi
for /f %s in ('dir /b *.mof *.mfl') do mofcomp %s

Thursday, January 15, 2009

CtxAdmTools: Visual Core Configurator 2008 on Windows 2008 Core R2 (Beta)

How to setup Windows Server 2008 Core R2 (BETA) to run Visual Core Configurator 2008?

Run Start /w ocsetup ServerCore-WOW64
Restart server

VMware: Install VMware Tools on Windows 2008 Core R2

To install VMware Tools on Windows 2008 Core R2 you need to follow this procedure:

Run Start /w ocsetup ServerCore-WOW64

Restart server

Install VMware Tools from VM menu.

Change to the CD/DVD drive

Run msiexec /i "VMware Tools64.msi" /passive

Wednesday, January 07, 2009

Tuesday, January 06, 2009

MS: Windows Update on Windows 2008 Core

Windows 2008 Core don't provide too many options to install Windows Updates. Server Core removes pretty much all of the user interface components. You can enable or disable Windows Update, set Automatic Updates or Turn Off Automatic Updates using scripting, but you can't choose to install specific updates or show availables updates.
Until I released Visual Core Configurator 2008 Beta 2 Refresh.
List all Windows Update available.


Select Windows Updates.

Install Windows Updates.

Download and Install all Windows Updates available.

Enable/Disable Windows Update, Set Automatic Updates


You can download Visual Core Configurator 2008 at http://ctxadmtools.musumeci.com.ar

CtxAdmTools: Visual Core Configurator v1.1 (Beta 2 REFRESH) Released!

Visual Core Configurator 2008 is a FREE tool to Setup and Configure Windows 2008 Core servers.

Today, January 6, 2009, I released the Beta 2 Refresh of Visual Core Configurator 2008.

Build 275 (Beta 2 Refresh) is available for download at http://ctxadmtools.musumeci.com.ar/

You can download the .EXE file package (include extra files) or .ISO file (Best Option for Virtual Machines).This Beta was tested on both versions of Microsoft Windows 2008 Core (x86 and x64) and physical servers, and VMware, Microsoft and XenServer virtual machines.

New Features of this Version: Windows Update


List of Features included in this Build:

Network menu
Network: Show Network Information: Show IP, DNS and NIC configuration
Network: Network Manager: View or change IP, DNS and WINS configuration
Network: Change Computer Name / Domain / Workgroup: Change Computer Name or Join Machine to a Domain or Workgroup

System menu
System: Control Panel: Customize the Operating System (Time and Keyboard)
System: Event Viewer: Display monitoring and troubleshooting messages from Windows
System: Services: Manage Windows Services
System: Screen Saver: Change Screen Saver Configuration
System: Remote Desktop: Configure Remote Desktop (formerly Terminal Server Administration Mode)
System: Video: Configure Screen Resolution
System: Windows Update: Install Windows Updates and HotFixes

Tools menu
Tools: Windows Explorer: Show Files and Folders
Tools: Notepad: Tool to Edit Files
Tools: Registry Editor: Tool to Edit the Registry
Tools: OS Information: Show Operating System Information

Help menu
Help: About: Show the Application Information

Exit menu
Exit: Close Visual Core: Close the Application
Exit: Shutdown: Log Off, Restart or Shutdown the Computer

Friday, January 02, 2009

CtxAdmTools: Visual Core Configurator v1.1 (Beta 2) Released!

Visual Core Configurator 2008 is a FREE tool to Setup and Configure Windows 2008 Core servers.

Today, January 2, 2009, I released the Beta 2 of Visual Core Configurator 2008.

Build 240 (Beta 2) is available for download at http://ctxadmtools.musumeci.com.ar/
You can download the .EXE file package (include extra files) or .ISO file (Best Option for Virtual Machines).

This Beta was tested on both versions of Microsoft Windows 2008 Core (x86 and x64) and physical servers, and VMware, Microsoft and XenServer virtual machines.



New Features of this Version: Event Viewer.



List of Features included in this Build:

Network menu
Network:
Show Network Information: Show IP, DNS and NIC configuration
Network:
Network Manager: View or change IP, DNS and WINS configuration
Network:
Change Computer Name / Domain / Workgroup: Change Computer Name or Join Machine to a Domain or Workgroup

System menu
System:
Event Viewer: Display monitoring and troubleshooting messages from Windows
System:
Video: Configure Screen Resolution
System:
Remote Desktop: Configure Remote Desktop (formerly Terminal Server Administration Mode)
System:
Screen Saver: Change Screen Saver Configuration
System:
Services: Manage Windows Services
System:
Control Panel: Customize the Operating System (Time and Keyboard)
System:
Shutdown: Log Off, Restart or Shutdown the Computer

Tools menu
Tools:
Windows Explorer: Show Files and Folders
Tools: Notepad: Tool to Edit Files
Tools: Registry Editor: Tool to Edit the Registry
Tools:
OS Information: Show Operating System Information


Notes about this build: I wrote the entire Event Viewer module (from scratch) in only 1 day (almost 700 lines of codes), but when I start testing the Save Log option on Windows 2008 core I discovered the Common Dialog never show up on Core, so I developed an entire Common Dialog interface.

Tuesday, December 30, 2008

CtxAdmTools: Visual Core Configurator v1.1 (Beta 1 Refresh) Released!

Visual Core Configurator 2008 is a FREE tool to Setup and Configure Windows 2008 Core servers.

Today, December 29, 2008, I released the Beta 1 Refresh of Visual Core Configurator 2008.

Build 215 (Beta 1 Refresh) is available for download at http://ctxadmtools.musumeci.com.ar. You can download the .EXE file package (include extra files) or .ISO file (Best Option for Virtual Machines).

This Beta was tested on both versions of Microsoft Windows 2008 Core (x86 and x64) and physical servers, and VMware, Microsoft and XenServer virtual machines.

New Features of the Version:

* New GUI with Icons!
* Windows Explorer
* Shortcuts to Notepad and Registry Editor

Monday, December 29, 2008

Sunday, December 28, 2008

CtxAdmTools: Visual Core Configurator v1.1 (Beta 1) Released!

Visual Core Configurator 2008 is a FREE tool to Setup and Configure Windows 2008 Core servers.

Today, December 28, 2008, I released the first public Beta of Visual Core Configurator 2008.

Build 195 (Beta 1) is available for download at http://ctxadmtools.musumeci.com.ar. You can download the .EXE file package (include extra files) or .ISO file (Best Option for Virtual Machines).

This Beta was tested on both versions of Microsoft Windows 2008 Core (x86 and x64) and physical servers, and VMware, Microsoft and XenServer virtual machines.

I developed a Basic version of Visual Core Configurator 2008 in August 2007, called Visual Core 2008 v1.0 Basic when I lived in Madrid. The first code I wrote was for Microsoft Windows 2008 Core Beta 1. This version was just a GUI.

Then I decided to develop a more "serious" tool and start replacing shell calls with "real" code. The project was interrupted for several months and several reasons (reallocation to USA, vacations, new job, more focus on Citrix technologies, etc).

Finally at the end of November I start reviewing the code... more than 2,000 lines of code on Forms and more 3,300 lines of code on Modules on this Beta 1. This Beta include a new networking module. This module included more than 1,500 lines, and I rewrite it from scratch in the last 2 weeks.

I removed from this Beta 1 several modules to finish testing and rewrite some code: User/Groups Management, Firewall Management, Activation, etc. These modules will be included in next Beta release.

MS: How to Extend the Windows Server 2008 Evaluation Period

How to Extend the Windows Server 2008 Evaluation Period

When the initial 60-day evaluation period nears its end, you can run the Slmgr.vbs script to reset the evaluation period. To do this, follow these steps:
Click Start, and then click Command Prompt.
Type slmgr.vbs -dli, and then press ENTER to check the current status of your evaluation period.
To reset the evaluation period, type slmgr.vbs –rearm, and then press ENTER.
Restart the computer.


http://support.microsoft.com/kb/948472

Saturday, December 27, 2008

SCRIPT: Read the GUID of network card

Query to determine the GUIDs of your network adaptors:

Dim IPConfigSet
Dim strNIC
Dim CRLF

CRLF = CHR(10) & CHR(13)
' Perform a WMI query to obtain information about the network adaptors that are bound to IP and that have a physical MAC address.

Set IPConfigSet = _
GetObject("winmgmts:").ExecQuery _
("Select * from Win32_NetworkAdapterConfiguration Where ((IPEnabled = TRUE) And (MacAddress != NULL) And (SettingID != NULL))")
' Enumerate the results (list of NICS).
For Each IPConfig In IPConfigSet
If Not IsNull(IPConfig.IPAddress) Then
strNIC = _
"Caption: " & IPConfig.Caption & CRLF & _
"Description: " & IPConfig.Description & CRLF & _
"NIC GUID: " & IPConfig.SettingID
For i = LBound(IPConfig.IPAddress) To UBound(IPConfig.IPAddress)
strNIC = strNIC & CRLF & "IP Address (" & CStr(i) & "):" & IPConfig.IPAddress(i)
Next 'i
Wscript.Echo strNIC
End If
Next 'IPConfig

http://support.microsoft.com/kb/896073

Friday, December 26, 2008

CtxAdmTools: Clone XenApp VM v1.0 Updated

Clone XenApp VM v1.0 Updated (New Build 1.00.28 released December 26, 2008)

This FREE tool clone Citrix XenApp (formerly Citrix Presentation Server) Virtual Machines

Deploy XenApp Virtual Machines in Virtualization Environments (VMware, XenServer, Hyper-V).

Clone XenApp was tested succesfully on Citrix XenServer 5.0 (Should be work 4.x version too), VMWare Server, VMware ESX 3.x and Microsoft Hyper-V.

New Feature:

Update AU Client (WSUS): Update Registry Keys and re-register Automatic Update Client with WSUS.

http://ctxadmtools.musumeci.com.ar

Wednesday, December 17, 2008

CTX: Edgesight 5.0 Client Unattended Install

Edgesight 5.0 XenApp x86 Client Unattended Install:

Msiexec /i EdgeSightXAAgent.msi /q SERVER_NAME=EdgeSightServer COMPANY="Company Name"

Edgesight 5.0 XenApp x64 Client Unattended Install:

Msiexec /i EdgeSightXAAgentx64.msi /q SERVER_NAME=EdgeSightServer COMPANY="Company Name"


Edgesight 5.0 for Endpoints x86 Client Unattended Install:

Msiexec /i EdgeSightEPAgent.msi /q SERVER_NAME=EdgeSightServer COMPANY="Company Name"

Edgesight 5.0 for Endpoints x64 Client Unattended Install:

Msiexec /i EdgeSightEPAgentx64.msi /q SERVER_NAME=EdgeSightServer COMPANY="Company Name"

Optional: add /NoRestart parameter to avoid restart the computer after the installation is complete

Friday, December 12, 2008

CtxAdmTools: DetectVM v1.0 Released!

DetectVM v1.0 is a virtual machine detection tool.

This FREE tool detect Virtualization Technology installed (Citrix XenServer, Microsoft Virtual Server/Hyper-V and VMware Server/ESX/Workstation Virtual Machines only).
Detect Virtual Machine execution. DetectVM only run Windows x86 systems.

If you run DetectVM Client from Windows Explorer:

If you run DetectVM Client from Command Line: