[THIN] Re: Identifying the mode of a XenApp PVS vDisk

  • From: "Rankin, James R" <kz20fl@xxxxxxxxxxxxxx>
  • To: thin@xxxxxxxxxxxxx
  • Date: Fri, 7 Dec 2012 22:39:12 +0000

I'm glad it wasn't in the scripts I tested for you! Heh.

I will see if I can adapt that to my needs, cheers!

---Blackberried

-----Original Message-----
From: Webster <webster@xxxxxxxxxxxxxxx>
Sender: thin-bounce@xxxxxxxxxxxxx
Date: Fri, 7 Dec 2012 22:35:21 
To: thin@xxxxxxxxxxxxx<thin@xxxxxxxxxxxxx>
Reply-To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: Identifying the mode of a XenApp PVS vDisk

Boy, if you had bothered to check out my PVS Documentation script, you would 
see I have that info in there! :)

http://carlwebster.com/documenting-a-citrix-provisioning-services-farm-with-microsoft-powershell/

http://carlwebster.com/documenting-a-citrix-provisioning-services-farm-with-microsoft-powershell/10/

<snip>
ForEach($Disk in $Disks)
{
line 1 " General tab"
line 2 "Site: " $Disk.siteName
line 2 "Store: " $Disk.storeName
line 2 "Filename: " $Disk.diskLocatorName
line 2 "Size: " (($Disk.diskSize/1024)/1024)/1024 -nonewline
line 0 " MB"
line 2 "VHD block size: " $Disk.vhdBlockSize -nonewline
line 0 " KB"
line 2 "Access mode"
line 3 "Access mode: " -nonewline
If($Disk.writeCacheType -eq "0")
{
line 0 "Private Image (single device, read/write access)"
}
Else
{
line 0 "Standard Image (multi-device, read-only access)"
}
<snip>

Thanks


Webster

From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of 
James Rankin
Sent: Friday, December 07, 2012 3:58 PM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: Identifying the mode of a XenApp PVS vDisk

Sorry maybe I wasn't clear enough :-0

I need to detect it programatically somehow, either with a script, checking a 
Registry key, file, etc. I'm trying to automate the normalization routines and 
I want to make it run only when the system is in Private mode

TIA,


JR

On 7 December 2012 21:51, Joe Shonk 
<joe.shonk@xxxxxxxxx<mailto:joe.shonk@xxxxxxxxx>> wrote:
If you open up the the Systray icon (statustray.exe) it will show what mode the 
image is in and which server you are connected too.  You can also see the mode 
listed in the PVS Console.

Joe

On Fri, Dec 7, 2012 at 2:49 PM, James Rankin 
<kz20fl@xxxxxxxxxxxxxx<mailto:kz20fl@xxxxxxxxxxxxxx>> wrote:
Anyone have any links to share to a script or other method that can tell me 
whether a XenApp 6.5 server's PVS vDisk is in Private mode?

I'm sure this could be done in VB and maybe PS as well...just kinda struggling 
to get a starting point :-(

TIA,



--
James Rankin
Technical Consultant (ACA, CCA, MCTS)
http://appsensebigot.blogspot.co.uk




--
James Rankin
Technical Consultant (ACA, CCA, MCTS)
http://appsensebigot.blogspot.co.uk

Other related posts: