How to enable HTML access in the office pool by using PowerShell script?

Hello

I use to create pools of auto related clones using a script PowerShell/PowerCLI Office. The script provides all the parameters required for the Add-AutomaticLinkedClonePool cmdlet and there is a lot of it! Creating pools in this way allows me to save about 100 clicks per pool.

Now I want to enable access HTML for each pool, but I can't seem to find the name of the parameter.

I checked the properties of the object returned by Get-pool-pool_id w7mw620 and compared to other similar properties office pool where access HTML has been disabled. I coulnd't not see any differences in the property values, which seem to make a significant difference for the setting "enable access HTML '.

There was a property named "calculatedValues", which was true for one and False for the other office pool. I don't know what is the meaning of this property. Help the cmdlet Add-AutomaticLinkedClonePool or AutomaticLinkedClone-set to list this property.

So... How can I set the property to allow access HTML from a PowerCLI script?

Hello, in response to my own question again...

On the basis of the above VBScript example, I invented this PowerShell code snippet that does the work of activation / deactivation of HTML access to one or more funds pools, by adding or removing 'BLAST' to the allowed protocols. It's a beast of a code, and I think that this code can still be optimized/shortcut. It works for me. It allows the use of wildcards to select a number of pools of office to toggle HTML access to.

To use it, just customize two variables constant to match your environment:

$dn must maintain the name of the root of your ADAM database. I think that this name is the default, but I don't know about you.

$domain must maintain the computer name or address IP and/or port number where the ADAM database is stored. You must also have sufficient permissions to connect if it is something else then "localhost".

function Set-BCPoolHtmlAccess ([string]$Pool_id, [boolean]$HtmlAccess) {
<#
    .SYNOPSIS
        enables or disables HTML Access to the given VMware View desktop pool
    .DESCRIPTION
        This function enable or disable HTML Access to a desktop pool, by modifying
        the "pae-ServerProtocolLevel" property of the associated object in the ADAM
        database via LDAP. This property is a multi-valued attribute contains a array
        of string, which designates
        by which protocol desktops can be accessed. It valid values are "PCOIP",
        "RDP" and "BLAST". Controlling the existance of the string "BLAST" determines
        if the pool is accessible through HTML Access. The parameter Pool_id determines
        which object is modified.
    .EXAMPLE
        Set-BCPoolHtmlAccess "W7ST620" $True
    .PARAMETER Pool_id
        the pool_id of the desktop pool of which to enable or disable HTML access. Wildcards are allowed!
    .PARAMETER HtmlAccess
        Boolean value to set the HTML Access to.
    .OUTPUT
        None
    .NOTES
        Written by Paul Wiegmans on 31-8-2014
        "pae-ServerProtocolLevel" is a multivalued attribute, which is a little difficult to
        write correctly to the object.
        http://www.selfadsi.org/write.htm
                Google "powershell ldap multi value property"
        http://jdhitsolutions.com/blog/2011/12/updating-multi-valued-active-directory-properties-part-1/
#>
    $dn = "DC=vdi,DC=vmware,DC=int"   # root OU of VMware View ADAM database (CUSTOMIZE ME)
    $domain = "LDAP://localhost:389/$dn"  # connect to the ADAM database (CUSTOMIZE ME) 

    $root = New-Object System.DirectoryServices.DirectoryEntry $domain
    $query = New-Object System.DirectoryServices.DirectorySearcher
    $query.searchroot = $root
    $query.filter = "(&(objectCategory=pae-DesktopApplication)(cn=$pool_id))"
    $pools = @($query.findall())
    $propname = "pae-ServerProtocolLevel"

    foreach ($pool in $pools) {    

        $poolobj = [ADSI]$pool.GetDirectoryEntry()
        $protocols = $poolobj.$propname
        $desiredprotocols = @()
        foreach ($protocol in $protocols) {
            if ($protocol -ne "BLAST") {
                $desiredprotocols += $protocol  # save a list of all existing protocols
            }
        }  

        if ($HtmlAccess) {
            $desiredprotocols += "BLAST"
        }
        write-verbose ("Desktop pool " + $poolobj.name + " gets protocols: "+$desiredprotocols)
        $poolobj.$propname = $desiredprotocols
        #$poolobj.$propname = @("PCOIP","RDP","BLAST")  # to reset to normal values
        $poolobj.CommitChanges()
    }
}

$pool_id = "W7S*"                  # pool_id of pool to set protocols of
Set-BCPoolHtmlAccess $pool_id $false
Set-BCPoolHtmlAccess $pool_id $true

Have fun

Post edited by: Sikkepitje

Tags: VMware

Similar Questions

  • How to give full access to the port to laptop

    Hello! I need help.
    I get data using xbee connected to the port of the laptop. The problem is with the increase of baud rate, time of receipt does not increase as it is.
    My instructor told me that your com port does not provide complete space to your software (LabVIEW). My question is how to give full access to the com port to LabVIEW? Kindly help...

    Here's my vi... I put the 115200.But baud rate in labview so I get the data and it intrigues, it traces precisely after 8 seconds. But I put the shipment time less than 8 seconds, it does not trace accurately.

  • I got the flashplayer for some time - I need to know how to enable adobe to install the latest update?

    I had for some time adobe flash player - I need to know how to enable adobe to install the latest update?

    the version is 21.0.0

    browser - safari

    Mac OS x

  • How can I get rid of the follow-up? {Attribute Java Script] = not in XMI. Now I have to click ok which is a nuisance

    How can I get rid of the follow-up? {Attribute Java Script] = not in XMI. Now I have to click ok so he can disappear, that is a montage of nuisance. How can I get the missing part?

    Thank you. Then I disabled all extensions one both enabled and found that productivity Community Toolbar 3 seems to be the culprit. I will be a while before I close the file. Thank you.

  • Remove the office pool

    Hello

    I use the trial version of view 4 and created a pool of manual offices with two virtual machines. I was able to remove the virtual machine, but cannot remove the office pool.

    Remove the button is grayed out. The ref screenshot is attached.

    Any suggestions?

    Thank you

    Hochart

    Select the line of the pool to the right (DO not select the name) and the delete option is available.

    You want to make a difference in the future of VMware products? Feature to ask your ideas ( http://www.vmware.com/support/policies/feature.html )!

  • How to allow another access to the computer through firewall

    How to enable another computer game acess my fire wall

    Hi Roy,

    If you are using Windows Firewall, the last item in this article shows you how to open a port in the firewall to allow access: http://windows.microsoft.com/en-us/windows7/Firewall-frequently-asked-questions.

    For more information, see the following: http://technet.microsoft.com/en-us/library/cc722062 (WS.10) .aspx.

    It may be more than just the firewall.  You need to allow remote access (in control panel / system / remote settings / Remote Access) and Remote Desktop (same place, but just below).

    Here is an article on the remote desktop for Vista: http://windows.microsoft.com/en-US/windows-vista/Remote-Desktop-Connection-frequently-asked-questions (because I do not know your operating system - you can perform a search Bing for office remotely for your operating system to find something similar).

    I hope this helps.

    Good luck!

  • HP Envy Phoenix 860-000np: How do enable you virtualization in the Bios

    Hi, can someone tell me how to enable virtualization in the bios on my Phoenix 860-000.

    When I access the bios Setup there is no option to set the State of Intel VT technology.

    Hello

    Looking at the bios of your PC Simulator, the option must be located on the Security tab. The system security.

    Kind regards

    DP - K

  • How to enable mms Messaging on the more than 6 s

    How to enable mms on the iPhone 6 sec more

    If your carrier offers it - it's in settings-Messages

  • How to give some access to the system without giving local administrator access?

    Hello

    I'm looking for advice on how I can accomplish the following tasks without giving certain groups of rights of a local administrator on the server.

    • Ability to query the status of all Windows Services
    • Access WMI
    • Ability to read all the event logs
    • Ability of the State to the query of all services
    • Activation of remote PowerShell commands

    I need to give this kind of access to the servers are Windows Server 2008 R2, Windows Server 2008 Std Edition and Windows Server 2003.

    Advice and guidance would be greatly appreciated.

    Thanks in advance.

    Hello

    The question you have posted is better suited for the TechNet forums. Please post your question here.

    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

  • How can I get rid of the Office 2007 trial and subsequent updates automatically downloaded Version

    Hi all.  I have a PC that came with the Trial Version of Office 2007.  I was very happy with Office 2003, so I loaded it up.

    Now, my PC automatically downloaded the service pack 2007 and whenever I go to open any document it asks for a product key.  I don't want the full version of Office 2007, so, how do I get rid of the trial version and stop things more than downloaded PC 2007.

    http://support.Microsoft.com/kb/928218

    "How to uninstall manually Office system 2007 if you cannot uninstall it by using the function" Add / Remove programs.

    Info on the link above should help you remove Office 2007 Trial.

    See you soon. Mick Murphy - Microsoft partner

  • messages when I go to add bitmogji get please enable full access on the key bitmoji Board is on full access, it's after I've downloaded is10

    When I go to add Bitmoji to iMessage I get please allow full access on the keyboard,

    It is configured to access complete this problem is after I download is 10

    This is a known problem, Bitmoji is working on a fix https://twitter.com/Bitmoji/status/775860193360044032

  • How to enable bidirectional support on the printer

    original title; Printer problem

    I added a printer Canon ip2600 my laptop tried to print and received the message to turn on Enable bidirectional support in the printer dialog box.

    G MOM-dc,

    Try to read...

    Enable Support bidirectional Support/enable Biodirectional

    Rick

  • How to get a handle to the window to screen using just group id and the id of the window?

    Hello

    We are trying to develop a video application, and we use ForeignWindowControl to display the video on the screen.

    We have those ForeignWindowControl declared and defined in a QML file that appears as needed.

    Using the CameraAPI, we are able to get local video displayed correctly on the local video ForiegnWindowControl. For this we have just the window group id and the id of the window api camera and it automatically configures the window newly created by the camera to the position API and the size defined in the QML file.

    However, this is isn't the case with the video remotely. Since there is no method/function similar to the createViewFinder of the camera api, we need to create a new window of ourselves that goes under the Group shared by the ForeignWindowControl remotely, using screen_create_window_type and set all the required parameters.

    To view the video, hard-code manually the position and size of the newly created window so that it corresponds to the position and the size of ForeignWindowControl remote in QML file and is displayed correctly.

    My question is how to find the ForeignWindowControl using just the group id and the id of the window? the way in which the cameraAPi done in-house?

    Any help would be appreciated.

    Thank you.

    There are 3 ways to associate a window with a ForeignWindowControl.

    1 tell the ForeignWindowControl to expect a window with a given windowId.  Then after that libscreen allows you to create your window with the same windowId, use screen_join_window_group() to adhere to the same group that uses the FWC.  The FWC should automatically capture this event and associate the window itself.  This is how the camera it.

    2. call the bindToWindow() of the ForeignWindowControl method to associate the FWC a particular windowId/groupId.  Similar to the #1, but doesn't seem more useful if you create the FWC after the window of the screen has been created.

    3. call the setWindowHandle() of the ForeignWindowControl method.  Similar to the #2, but instead of using windowId/groupId, you spend just the actual handle.

    See the FWC docs:

    https://developer.BlackBerry.com/Cascades/reference/bb__cascades__foreignwindowcontrol.html

    If you have created the window, you can use one of the 3 approaches.  If the window has been created in a different process (eg. mm-engine rendering, or photo-service device), then generally #1 is the approach you would use.

    See you soon,.

    Sean

  • guest computer must have access to the printer host cannot use

    I have a new Mac, an old Mac, an old Windows machine and printer of Xante AW1200.

    Almost all of my work is done on the new Mac.  I get the old machine Mac or Windows of the drawer on rare occasions, or when I need to print something, because the new Mac cannot use the printer.  (Xante never taken the trouble to develop an OS X 10.6.4 driver for this printer.)

    I would like to get rid of the Windows machine.  I have it successfully migrated to a machine of comments on the new Mac, using vmware Fusion 3.1.3 but I have not found a way to get the computer to see the printer.

    This isn't a complete surprise, as Xante does not provide a driver for their (former) printer and (my new host) operating system OS X 10.6.4 - but they were planning a WIndows XP driver that has always worked well on the Windows machine, connected by the RS232 port.

    The printer also works very well on my old Mac, connected via ethernet.

    Can I connect the printer to the new Mac's ethernet port.  Of course, the Mac cannot work with it.  But could the guest computer use Windows sound driver to manage the printer?

    None of the four standard ways of printing seem applicable: ThinPrint because the host cannot use the printer.  USB because the printer is not a USB connector.  network / wireless because I do not have my old Mac running all the time.  Hello because I think that it requires that the host can see the printer.

    It certainly isn't a frequently asked Question.  Sorry, my situation is so unusual.  But the printer is special enough for the work that I do.  Any tips?

    Thank you.

    If you have a router on your site then you should be able to connect the printer to the router, configure it as needed, and then accessing it in the comments as a network printer.  Note: The guest network should be configured as connected by a bridge to access in this way.

    Another option of network which is doable, but a little more difficult to set up, is to fix the printer directly on the Mac with a standard CAT5 Ethernet cable, not a Crossover as suggested in the Ethernet Port of Mac being automatic detection User Guide.  You would then manually configure the IP address, etc. on the printer and network bridged on the comments and even if Bridged his only access to the printer on this network adapter.  Then use a second network in the guest configured as NAT, if you do not also use Bridged on that, to enable the client to have access to other resources on the physical LAN to the host, such as Internet access, etc..

  • How to insert my signature in the pdf file by using adobe?

    How to insert my digital signature in pdf file by using adobe

    Hi vani.boddu,

    If you use Adobe Acrobat, see the links below:

    Video: 't-know-acrobat-xi-could-do-that-tutori http://tv.adobe.com/watch/i-didn ESL/sign-pdf-files-electronics /

    Document: http://help.adobe.com/en_US/acrobat/X/standard/using/WSAC8084C2-14F7-4 841-9EF8 - 92106D22C3DB.w.html

    If you use Adobe Reader

    Please visit: http://helpx.adobe.com/reader/using/sign-pdfs.html

Maybe you are looking for