Usign PowerCLI to set Options to the Console computer virtual for remote users

I really miss onxy...   Such a wonderful tool.  I'm looking for a script to change the Options of Console of Virtual Machine for remote, as shown here:

VSphere Documentation Centre

Someone has any idea how to set these variables?

Thank you

J

The relevant virtual machine configuration settings are RemoteDisplay.maxConnections and tools.guest.desktop.autolock.


You can change these settings with the (get |) New | The value | (Remove) - AdvancedSetting cmdlets. For example, run:
Get - VM MyVM1 | New-AdvancedSetting - name "RemoteDisplay.maxConnections" - value 3 - confirm: $false - Force

Get - VM MyVM1 | New-AdvancedSetting - name 'tools.guest.desktop.autolock'-'true' value - confirm: $false - Force

Tags: VMware

Similar Questions

  • Disable the redirection of printer for remote users only

    Hi we have a customer's requirement that when users connect to the view platform 5.2 internally (via PCoIP) they are able to get both printers mapped with GPO printing location and all locally connected usb printers. However, when a user is working from outside the LAN you must disable the printer redirection all - they don't want sensitive documents outside of the office printing.

    What is the best way to achieve this?

    In case anyone is interested, I managed to solve this problem using a vbs script, executed using the agent to view GPO RunOnConnect. He questions the volatile environmental variables for the name of the view server connection external access. and if it matches then verifies membership in a group. If not a member of the remote-printing-authorized group it disables services of thinprint.

    strComputer = "."
    Set objNetwork = WScript.CreateObject("Wscript.Network")
    Set objSysInfo = CreateObject("ADSystemInfo" )
    strUserDN = objSysInfo.userName
    Set objUser = GetObject("LDAP://" & strUserDN)
    Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
    Set objShell = CreateObject("WScript.Shell")
    
    '--------------------------------------------------------
    ' IsMember Function
    '--------------------------------------------------------
    Function IsMember(strGroup)
    ' Function to test one user for group membership.
    ' objUser is the user object with global scope.
    ' strGroup is the NT Name of the group to test.
    ' objGroupList is a dictionary object with global scope.
    ' Returns True if the user is a member of the group.
    
    Dim objGroup
    If IsEmpty(objGroupList) Then
       Set objGroupList = CreateObject("Scripting.Dictionary" )
       objGroupList.CompareMode = vbTextCompare
       For Each objGroup In objUser.Groups
          objGroupList(objGroup.sAMAccountName) = True
       Next
    End If
    IsMember = objGroupList.Exists(strGroup)
    End Function
    
    '--------------------------------------------------------
    ' Check to see if client logged into external View Connection Servers
    ' Disable printing if not member of AD Group remote-printing-allowed
    '--------------------------------------------------------
    If objShell.ExpandEnvironmentStrings("%ViewClient_Broker_DNS_Name%") = "GR1VCSV01.domain.net" _
    Or objShell.ExpandEnvironmentStrings("%ViewClient_Broker_DNS_Name%") = "GR1VCSV02.domain.net" _
    Then
    If IsMember("remote-printing-allowed") Then
       echo "Virtual Printing Enabled"
    Else
    Set colServiceList = objWMIService.ExecQuery _
        ("Select * from Win32_Service where Name = 'TPAutoConnSvc' OR Name = 'TPVCGateway'")
    For Each objService in colServiceList
        If objService.State = "Running" Then
            objService.StopService()
            Wscript.Sleep 5000
        End If
        errReturnCode = objService.ChangeStartMode("Disabled")
    end if
    end If
    
  • Downloaded LR6 and PS CC without problem. Now being set up on the second computer

    Have PS CC and CC app on desktop and LR6 downloaded without problem. Now being set up on the second computer (Dell Tablet Windows 8.1). CC app downloaded OK, but when I try to download other programs, there is an option for LR5 and PS_CC but not LR6. Any ideas?

    that means generally that your dell unresponsive lr 6 sheet, but satisfied lr 5 card, the system requirements

  • Hi, back back can check files you opened with "recent files"? With my current setup, I can only see the last 10 files. Can I change the setting to display the last 20 files for example? Thank you

    Hi, back back can check files you opened with "recent files"? With my current setup, I can only see the last 10 files. Can I change the setting to display the last 20 files for example? Thank you

    File management preferences is where you can change the number. I don't know the maximum.

  • PowerCLI - there cmdlets to browse the store of data for files/directories and their creation?

    Hello

    PowerCLI - there cmdlets to browse the store of data for files/directories and their creation?

    If Yes, can you please let me know.

    I took a glance at the reference of the cmdlet, but can not find...


    Kind regards

    Dreamer

    You can use the data store provider.

    It is documented in the vSphere PowerCLI Administration Guide that was installed with PowerCLI.

  • PC can see and access the laptop without asking for a user name and password but the laptop cannot access the PC because it asks me a username and password that I don't know.

    Vista - Windows 7 network connection. username and password is unknown.

    Hello

    I just got a laptop with windows 7 on it and I want to connect to my other PC for it, they are on the same network through a router. the PC can see and access the laptop without asking for a user name and password but the laptop cannot access the PC because it asks me a username and password that I don't know.

    If someone could answer this question, it would be great.

    Hello
    Maybe this can help.

    Win7 when configured on the peer-to-peer network has three types of configurations of sharing.

    Group residential network = only works between Win 7 computers. This type of configuration, it is very easy to entry level users to start sharing network.

    Working network = fundamentally similar to previous methods of sharing that allow you to control what, how and to whom the records would be shared with.

    Public share
    = network Public (as Internet Café) in order to reduce security risks.

    For the best newspaper of the results of each computer screen system and together all computers on a network of the same name, while each computer has its own unique name.

    http://www.ezlan.NET/Win7/net_name.jpg

    Make sure that the software firewall on each computer allows free local traffic. If you use 3rd party Firewall on, Vista/XP Firewall Native should be disabled, and the active firewall has adjusted to your network numbers IP on what is sometimes called the Zone of confidence (see part 3 firewall instructions

    General example, http://www.ezlan.net/faq.html#trusted
    Please note that some 3rd party software firewall continue to block the same aspects it traffic Local, they are turned Off (disabled). If possible, configure the firewall correctly or completely uninstall to allow a clean flow of local network traffic. If the 3rd party software is uninstalled, or disables, make sure Windows native firewall is active .

    ------------------------------

    If your network consists only of Win 7 and you want a simple network, use it.

    http://Windows.Microsoft.com/en-us/Windows7/help/videos/sharing-files-with-HomeGroup

    After you have configured the homegroup, scroll to the bottom for the Permission/security section.

    -----------------------------

    Win 7 networking with other version of Windows as a work network.

    In the center of the network, by clicking on the type of network opens the window to the right.

    Choose your network type. Note the check box at the bottom and check/uncheck depending on your needs.

    http://www.ezlan.NET/Win7/net_type.jpg

    Win 7 - http://windows.microsoft.com/en-us/windows7/Networking-home-computers-running-different-versions-of-Windows

    Win 7 network sharing folder specific work - http://www.onecomputerguy.com/windows7/windows7_sharing.htm

    Vista file and printer sharing - http://technet.microsoft.com/en-us/library/bb727037.aspx

    Windows XP file sharing - http://support.microsoft.com/default.aspx?scid=kb;en-us;304040
    Sharing printer XP - http://www.microsoft.com/windowsxp/using/networking/expert/honeycutt_july2.mspx

    Setting Windows native firewall for sharing XP - http://support.microsoft.com/kb/875357
    Windows XP Patch for sharing with Vista (no need for XP - SP3) - http://support.microsoft.com/kb/922120

    When you have finished the configuration of the system, it is recommended to restart everything the router and all computers involved.

    -------------

    If you have authorization and security problems, check the following settings.

    Point to a folder that wants to share do right click and choose Properties.

    In the properties

    Click on the Security tab shown in the bellows of the photo on the right) and verify that users and their permissions (see photo below Centre and left) are configured correctly. Then do the same for the authorization tab.

    This screen shot is to Win 7, Vista menus are similar.

    http://www.ezlan.NET/Win7/permission-security.jpg

    The Security Panel and the authorization Panel, you need to highlight each user/group and consider that the authorization controls are verified correctly.

    When everything is OK, restart the network (router and computer).

    * Note . The groups and users listed in the screen-shoot are just an example. Your list will focus on how your system is configured.

    * Note . There must be specific users. All means all users who already have an account now as users. This does not mean everyone who feel they would like to connect.

    ---------------------

    *** Note. Some of the processes described above are made sake not for Windows, but to compensate for different routers and how their firmware works and stores information about computers that are networked.

    Jack-MVP Windows Networking. WWW.EZLAN.NET

  • Is it possible to hide a conditional function in responsibility. Say it together a small number of users, I need the function display and for some users, it must be hidden.

    Is it possible to hide a conditional function in responsibility. Say it together a small number of users, I need the function display and for some users, it must be hidden.

    Hello

    The normal thing to do is to create a similar additional responsibility and using Exclusions to 'hide' the features you want.

    Then assign it to restricted users.

    Kind regards

    Bashar

  • I bought Adobe Acrobat DC. We use it in a desktop environment. Is there a way to "TURN OFF" the concept of cloud for another user does not see a confidential pdf in their queue?

    Is there a way to "TURN OFF" the concept of cloud for another user does not see a confidential pdf in their queue?

    I tried to contact technical support to the 800-833-6687 but was put through several automatic guests and disconnected.

    Hi plumasca,

    Refer to this topic for help disable features/services online in Acrobat/Reader DC?

    Kind regards
    Nicos

  • WHY THE PGA IS REQUIRED FOR EACH USER?

    Hello everyone;

    I have a question about PGA.

    WHY THE PGA IS REQUIRED FOR EACH USER?

    What I got from google...

    Even if information analysis of SQL or PL/SQL is already available in the library of shared pool cache,

    the value that the user want to execute the statement select or update cannot be shared.

    I can't realize that someone can show an example of clear, if possible?

    DB version is 10.2.0.4.0

    OS: oracle linux 5.5

    Thanks in advance...

    PGA is memory private belonging to a specific user. This private memory contains of these pieces that is not supposed to be shared with others. For example, when you sort a part of the data, that does not mean all he wants too. If Oracle retains the sorted data requested by you in your own PGA. Similarly, if you want to query a table with a value of 10, it does not mean that all want the same thing. If these structures are stored in the PGA. For a more detailed description, read the link given by Hoek.

    HTH

    Aman...

  • How we happen to know that the number of presents for this user database

    How we happen to know that the number of presents for this user database.
    Both those who are connected and not connected yet.

    Thanks in advance

    Concerning
    SUBJ.

    using v$ session...

  • How to make a program available to all users if the program was installed for a user

    Basically, the problem is that I created another user account, but only a few random apps appear on it and I was REALLY looking FORWARD to having to reinstall some programs + 50 so my computer can function normally on my secondary account.  I am able to find a lot of programs installed by snooping around in Explorer and have been able to run some by creating shortcuts, but many of them (Spybot, Itunes, Google Chrome, THE LIST GOES ON!) nothing do when the .exe is open and are unusable (on this account).
    Also, I want to say there is no page support for Windows 7 that cover this topic (that I could find by using the provided search engine), and the more those (as for windows 2000) do not apply because they tell you to move files Windows has more, but it is a known problem and Microsoft should incorporate a simple way to add or remove accounts without uninstall/install programs just to be able to check a box... _ Perhaps there could even be an option for this in a very obvious place, as installed programs list of the filth or user account settings.

    Emzzey wrote:
    > Fundamentally, the problem is that I created another user account, but only a few
    > random applications appear on it and I was REALLY looking FORWARD to having to reinstall some
    > + 50 programs while my computer can run normally on my secondary account.
    > I am able to find a lot of programs installed by snooping around
    > Explore and have been able to run some by creating shortcuts, but a large number of
    > (Spybot, Itunes, Google Chrome, THE LIST GOES ON!) don't do nothing when the .exe
    endered useless (on this account).
    >
    >
    > Also, I want to say there is no page support for Windows 7, which deal with these
    > subject (that I could find using the search engine provided) and older
    > (as for windows 2000) do not apply because they tell you to move files that
    > Windows has more, but it's a known problem and Microsoft
    > should include an easy way to add/remove programs of accounts without
    > uninstall/install just to be able to check a box... _, may be
    > could even be an option for this in a very obvious place, like user account
    > settings or the bitch list installed programs!

    Any application that is properly designed to work on Windows 7
    either would give the person making the installation option to
    make the application available to all users, or do it automatically.
    by default. It is entirely the responsibility of an application
    programmers and out of Microsoft's control. Thus, the easiest way, of
    of course, is to use an application that is designed for a multi-user operating system.
    But, unfortunately, this is not always an option, where companies must rely on
    existing proprietary applications.

    If you install the legacy application places its shortcuts
    only in the start of the person performing the installation, all the
    You may need to do is to move these Start Menu entries to the same
    location in the C:\ProgramData\Microsoft\Windows\Start start\program
    folder and/or the C:\Users\Public\Public Desktop folder.

    In addition, such an incompatible application can offer additional
    "challenges:

    You may experience problems if the software has been designed to
    Win9x / Me, or if it was intended for Windows NT / 2 K/XP, Vista/Win7, but was
    poorly designed. Quite simply, the application 'knows' how
    manage individual user with different security permissions profiles
    e going to
    'banned' sections of the Windows registry or Windows protected
    system folders.

    For example, the saved data is often stored in a subfolder under the
    folder of the application in C:\Program Files - a place where it doesn't
    the inexperienced user or limited should never have write permissions.

    It may even be that the software requires 'write' access to the parties
    the registry or the files/folders to systems protected are not normally
    accessible to regular users. (He * didn't * happen if the application is)
    correctly written.) If this does not prove that that is the case, however, you
    often left with three options: either grant the required users
    privileges of senior access (either as users with power or local
    Administrators), explicitly grant privileges for normal users
    the relevant records and/or parts or the registry or replace the
    request by another who has been properly designed especially for
    WinNT / 2 K/XP/Vista/Win7.

    Some programs do not work if you connect limited account
    http://support.Microsoft.com/default.aspx?scid=KB; EN-US; q307091

    In addition, here are some tips suggested, in response to a
    another post, MS - MVP Kent W. England:

    "If your game or your application works with administrator accounts, but not with."
    limited accounts, you can set it to allow limited users to access to the
    folder Program files with 'change' ability rather than 'read' that
    is the default value.

    C:\>Cacls "Program Files\appfolder" /e /t /p user: c

    where "appfolder" is the folder where the application is installed.

    If you want to undo these changes, then run

    C:\>Cacls "Program Files\appfolder" /e /t /p user: r

    NOTE: On Win7 Icacls.exe gives more control.

    If you still have a problem with the delivery of the program or save the settings
    on limited accounts, you may need to change the permissions in the registry
    keys. Run regedit.exe and go to HKLM\Software\vendor\app, where
    the key of the Publisher of the software used to your own
    program. Change the permissions on this key to allow users full control. »

    --

    Bruce Chambers

    Help us help you:
    http://www.CatB.org/~ESR/FAQs/smart-questions.html

    http://support.Microsoft.com/default.aspx/KB/555375

    They who can give up liberty for a little temporary
    safety deserve neither liberty nor safety. ~ Benjamin Franklin

    A lot of people could die rather that thinking; in fact, most do. ~ Bertrand Russell

    The philosopher never killed the priests, while the priest was
    has killed a large number of philosophers.
    ~ Denis Diderot

  • Slowness of console SCOM 2012 for new users

    We have installed SCOM SP1 2012. When we add a new user to the administration in the user role, and when the user logs on and opens the console then the SCOM console that the user works very slow. Please suggest if no update or workaround is needed.

    Kind regards
    Ashvin Torvi

    Hi Larry,

    This problem would be better suited to the TechNet community.

    Please visit the link below to find a community that will support what ask you

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

    Thank you.

  • The Task Manager XP for a user account.

    How can I Manager tasks for a user reenble? Windows XP SP3.

    DisableTaskMgr
    HKCU
     
    Default range value data type
    REG_DWORD 0 | 1 0
     
    Description
    Prevents users from start Manager (Taskmgr.exe) tasks.
     
    This entry stores the group policy setting disable the Task Manager.
    Group Policy adds this entry to the registry with a value of 1 when you
    enable the policy. If you disable the policy or not configured value
    Group Policy deletes the entry from the registry and the system behaves like
    If the value is 0.
     
    Meaning of the value
    0 (or not in registry) the policy is disabled or not configured. Users can
    Run the Task Manager.
    1 users cannot run the Task Manager. If a user tries to start the task, one Manager
    error message indicating that a policy that prohibits the display.
     
    Task Manager lets users start and stop programs; monitor the performance of
    their computers; view and monitor all programs running on their computers,
    including services system; find the executable names of programs; and change
    the priority of the process in which programs run.
     
     
     
    --
    ..
    --
    "jisgwani" wrote in message news: 3d72d3a7-f6f1-4a4b-a940-7ab5b49a2756...
    > How can I reenble Manager of the tasks for a user? Windows XP SP3.
    >
     
     
  • How to downgrade version starter W8 on the new computer laptop for W7?

    I just bought a Dell laptop with Starter W8 OS and HATE it! How to downgrade for W7?  I read articles that say I can come back to W8 W7 Pro, but I can do this in the version I have? Or that I must first be upgraded to Pro before decommissioning at 7?

    There is no Windows 8 Starter, I guess, you have "Windows 8"on the computer."

    You will first need to go to the website of manufacturers for your model computer and first find out if there are native drivers in Windows 7. A large number of computers that are preloaded with Windows 8 have no native driver support for Windows 7 by the manufacturer. If there is no native driver, you will need to consider returning the machine and buying a machine preloaded with Windows 8 Pro with downgrade rights to Windows 7 Professional. Or look through the catalogue of manufacturers for systems already preloaded with Windows 7, usually the business sector will have these options.

  • Allow the surface computer pro for iTunes

    I went to the iTunes Store app to allow the pro surface computer purchased music, but I'm unable to locate the drop-down list for my application.  Is there a special place for this authorization?

    1. open iTunes
    2. from the Store menu, choose authorize computer. (In earlier versions of)
    iTunes, access this option in the menu advanced).
    3. When prompted, enter your Apple ID and password, then click on allow.
     
     
    Barb
     
     
     
     
    Please mark as answer if that answers your question
     
     
     
     

Maybe you are looking for

  • YouTube is slowing down my computer! Any suggestions?

    Hello dear friends, I have a good MacBook Pro 2013 retina with i7 and SSD. I have noticed occasionally when I Watch youtube videos and try to make comments, while I type it needs some time to let the letters appear. Is like takes me a lot of energy a

  • How to return to the classic user interface?

    I used the UI classic (this VERY old interface) with Firefox 28.0a1 nightly. My last update was November 10, 2013. Then I updated my nightly today and all of a sudden, after the reboot, my UI changed for the worse. Surely enough, it didn't look like

  • Recycle bin virus

    My computer's been freezing a lot these past 2 days, and my AVG picked up a... "Runtime packed nspack.Just stop working, I can't even open the Task Manager or Ctrl + Alt + Delete reset. I just hold the power button until it turns off.I'm not very goo

  • WiFi security

    Im trying to secure my wifi network. I use an ASDL Trust route and have a pc and 2 laptops connected to the homegroup. When I check the status of the wifi connection, he repeats to me it's uunsecured. I know that someone is piggybacking on the part e

  • 6500 a does not print. iMac w/OS 10.6.7. Message says full spool area.

    My 6500 has stopped printing my iMac, although it doesn't thin test.  (Test sheet can be requested OK computer, not only on the 6500 has).  Operating system is 10.6.7.  Problem of thought was a low-ink warning, but install the new cartridges did not