Pages

Monday, 9 July 2012

Windows 8 - Start Button like Windows 7

It is possible to get  classic windows button by changing code in windows core. 

Microsoft is trying its best to disable classic startbutton which was present till Windows7.

Windows 8 - Task Manager


Windows 8 Store

Look of Windows 8 Store


Windows 8 - Enable Hyper-V Client

Goto Add/Remove Programs and open "Turn Windows Features On or Off"


Select Hyper-V and its submenus and click OK to install HyperV related features






Once Installation is completed, HyperV related shortcuts will be visisble as shown below:






Sunday, 8 July 2012

AppV 5.0 Beta Server Installation

Configuring AppV 5.0 Beta Server Installation





Provide the Database Instance in the below screen



Provide Website name and Unique Port Number for Management Server Configuration in below screen



Provide Website name for and Port number for Publishing Server in below screen




Once installation is completed, Provide the URL along with Port Number to access AppV Server as shown below









AppV 5.0 Beta Server Installation - Requirements



Following are the requirements to install AppV 5 Beta Server


  • Microsoft Windows .NET Framework 4 Extended Version
  • Windows Web Server 2008 with only the following features: Common HTTP Features (static content and default document), Application Development (ASP.NET, .NET Extensibility, ISAPI Extensions and ISAPI Filters), Security (Windows Authentication, Request Filtering)
  • Microsoft .NET Framework 3.5 (For PowerShell support.)
  • Download and install KB253623.( Its a printing mistake in guide, hence the actual KB is KB2533623)
  • The Microsoft Visual C++ 2008 Redistributable Package (x64)(http://www.microsoft.com/download/en/details.aspx?id=15336)
  • You must install both versions of the Microsoft .NET Framework (Microsoft .NET 3.5 and Microsoft .NET 4). Microsoft .NET 3.5 is required with Microsoft .NET 4 to enable and support the App-V 5.0 Beta Server PowerShell cmdlets.


Note: Installing the App-V 5.0 Beta server is not supported for the following scenarios:


  • Installing on a domain controller.
  • Installing on a server running previous versions of App-V server components.
  • Installing on Server Core.


Friday, 6 July 2012

Append Entry in Hosts file - VBScript



Following script will append the entry present in sample.txt file to hosts file. 


Following script needs sample.txt and hosts file to be present in the same directory where script file is locatied. Please change TargetFile and Input paths according to requirement.


************************************************************

Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim TargetFile,objWshShell,objFSO, Input, ProgramFiles, WinDir
Dim objTextFile, Target


Set objWshShell = CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")


ProgramFiles = ObjWshShell.ExpandEnvironmentStrings("%ProgramFiles%")
WinDir = ObjWshShell.ExpandEnvironmentStrings("%WinDir%")


CDir = objFSO.GetParentFolderName(Wscript.ScriptFullName)


Set Targetfile = objFSO.GetFile(CDir & "\hosts")
Set Input = objFSO.GetFile(CDir & "\Sample.txt")


Set objTextFile = objFSO.OpenTextFile (Input, ForReading)
Set Target = CreateObject("Scripting.FileSystemObject")
Set TargetFile = Target.OpenTextFile (TargetFile, ForAppending, True)


Do Until objTextFile.AtEndOfStream
Input = objTextFile.ReadLine
TargetFile.WriteLine(Input)
Loop


TargetFile.Close
ObjTextFile.Close


***************************************************************


-> Create sample.txt file with following content for example and save it in same location where vbscript file is present.

                  #     10.10.10.10    www.sample.com


-> Place hosts file in the same location where VBscript is present.
-> Run the VBscript, above line will be appended to hosts file.