Thursday, March 25, 2010

Export Data From Queries

I am creating the computer information list from queries rather than typing all the information one by one. First of all, I will create a new query list with a few of attributes. And then I will export the list to desktop and save as text file.

Under the Site Database, Computer Management, right click Queries and select New Query.
Insert the name, comment (optional) , and select the collection listing. And then click on the Edit Query Statement.

Click the yellow star button to open the Result Properties Windows.
On Result Properties Windows, click select.
On Select Attribute Windows, leave the "Attribute Class" and "Alias as" as default, select Name for  "Attribute". Followed by click OK twice.
Repeat the step above and select SMS Unique Identifier and MAC Addresses for the "Attribute".
Click OK twice to finish.
(There are many Attributes to select, you can actually select others attribute to play around.)

Now, browse to the Queries node and you will find the list you created earlier.

To Export the list, you need to go to View tab on the menu bar and click Export List.

Select the destination and save as text file.

 
This is the text file exported from the queries. I can modify the file and save it under .csv file so that I can add computer using "import computer information from file" option.

Saturday, March 13, 2010

Deployment & Configuration of App-V 4.6 Client via SCCM

The very first post is about deployment and configuration of App-V 4.6 Client together with Windows XP Service Pack 3.

Scenario 1: The App-V 4.6 Client is already installed on the reference machine and then captured as image for OS deployment. However, the publishing server of the App-V 4.6 Client is not configured.

Therefore, a command line to configure the publishing server is required to add in to the task sequence. “SFTMIME.exe ADD SERVER:SERVERNAME /HOST HOSTNAME /TYPE RTSP /PORT 554 /REFRESH ON”

Next, advertise the task sequence to perform the OS deployment. The publishing server should be configured succesfully after the deployment is finished.

Do a fine check on Application Virtualization Client located under administrative tools. The picture above shows the publshing server is configured properly.

Scenario 2: The OS image used for the deployment is not installed with App-V 4.6 Client.

Since the App-V 4.6 Client is not installed in the OS image, “install new software” variable is needed to add in to the task sequence. Before that, a new package for the App-V 4.6 Client is needed. Add a new package by following the steps below.

Please copy the App-V 4.6 Client setup folder to a shared network path first!

Set the source directory to the App-V 4.6 Client setup folder.
After Data Source, click all the way next until finish.

Set the distribution point for the App-V 4.6 Client package by select new distribution point and then click next until finish.
Add new program to the package by selecting New, Program.
Fill in the information as above. Fill in Setup.exe /s /v”/quiet /norestart /qn”0\”\” to the command line. This command is to perform a silent installation for the App-V 4.6 Client.
Since it is an x86 software, select only the x86 client platforms.

After the environment, click all the way next until finish.

Before proceed to the next step, please copy the Microsoft Application Virtualization Client folder under “C:\Program Files\ Microsoft Application Virtualization Client” on a client machine with App-V 4.6 Client installed. And put in under shared network path.

Add another new package and fill in the information as above.

Click next until finish after the Data Source.

Remember to set the distribution point, and this package doesn’t need to add a new program.

Insert the “Install New Software” variable and rename the task. And then, browse to the first package created.
Insert the “Run Command Line” variable and rename the task. Fill in the command line with: “SFTMIME.exe ADD SERVER:SERVERNAME /HOST HOSTNAME /TYPE RTSP /PORT 554 /REFRESH ON”

Next, tick the Package and browse to the second package created, which is the whole Microsoft Virtualization Client folder package.

After that, advertise the task sequence to perform OSD.

Click next on Interaction and Security.
The task sequence should be succesfully deployed with App-V 4.6 Client succesfully installed and configured.

Examine the Application Virtualization Client located under administrative tools.

Discussion:
Note that there are differences on the “configure publishing server” variable in task sequence of Scenario 1 and Scenario 2. Notice that there is no package included in the task on Scenario 1. If the package on Scenario 2 is removed and perform deployment, the deployment will fail. The report will show error message like:
The error message shows that the system cannot find the file specified, and hence fail to run the command line, although the “Install App-V 4.6 Client” task runs successfully (which logically means that the setup files will be extracted out and locate under C:\Program Files\ Microsoft Application Virtualization Client, and why the file cannot be found?!?!).

The solution is to add the entire Microsoft Application Virtualization Client folder to a new package and include in the “Configure Publishing Server” task.

As for the task on Scenario 1, no package is needed because the captured OS image is already installed with App-V 4.6 Client (the entire Microsoft Application Virtualization Client folder is already inside the image).

This discussion is only from my personal opinion, more proper explanation is welcome.