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

Tags: VMware

Similar Questions

  • 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

  • Disable the mode of reading for all users

    Hello

    I'm trying to deploy Acrobat Reader DC for my company and would like to disable the playback mode (floating toolbar) when opening the document in a browser. I was wondering if anyone knows how I can accomplish this?

    Thank you!

    Keys "should" fill the first launch of the product during installation.  If it's not past, then you can file a bug here: Adobe - feature request/Bug Report Form

  • Disable the column key functional for an individual of forms

    Hi all

    I have a block of multiple registration details in my form with fields (type, point, wt, vehicle number etc.). Keys are already scheduled for functional use as f3 to copy.

    In my form, I want to use the copy function to get to the fields as type, point, wt, but not for the vehicle number column. IE type, point, maybe same wt columns but number of vehicle may not be same (according to customer requirement). They will not accidentally copying the same number of vehicle.

    For this I need to disable the copy (F3) function for this vehicle only number column.

    Is there a workaround for this...

    My version of the form is 10g

    Thanks in advance

    Concerning

    JaKes

    the KEY-F3-trigger has nothing to do with the F3 function key. In client-server F3 is associated with the DUPLICATE_ITEM function, so you should use the KEY-DUPITM-trigger.

    Also, if you implement a release BUTTON, it replaces the functionality by default, so you must manage the service for yourself.

    As for the OP functionality should just be deleted at one, the simplest solution is to create KEY-DUPITM-relaxation so precise and simple insert a value that is NULL. inside.

  • 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

  • How to disable the annoying message "Printer cartridges no HP installed" on Windows 7?

    How to disable the annoying message "Printer cartridges no HP installed" on Windows 7? I have a HP Officejet 6500 has more and there is a way to disable those annoying pop ups. First of all, why HP can't fix their software to display only 1 message. If I turn on my printer, I get about 5 popups when the 3-minute delay. Is - this embarrassing? You bet, I do not turn off my printer more to avoid these messages. There must be a registry entry that I can delete gladly. Ideas? If you are an employee of HP, please do not give the Conference on "genuine cartridges" and how you take care of your printer. I've had my printer for 7 years and never had a problem with cartridges not HP. They are all made in China.

    This isn't a bad idea, but this does not resolve the issue. There are many complaints from customers about these annoying messages. All HP needs to do is to say to their developers to add a function to disable this feature. What is a marketing thing? Yes, it's a boring marketing question that should really be fixed. It's like Windows display constantly that your device drivers are not fully tested. Of course, when a customer buys a product at a lower price, they take this risk. I hate to be notified 365 days a year that my cartridges are not authentic.

  • NAC Appliance with ASA (for remote user VPN)

    I have a pair of firewall 5520 cisco which is used as a VPN gateway (for remote user VPN) and perimeter firewall Internet (to provide outbound internet connectivity).

    We allow the NAC to remote VPN users. I have it will be deployed with active 3 layer inband.

    The problem with this design is that how to ensure that outgoing internet traffic does not pass through the CASE?

    I heard about couple of optioins:

    -ACB (for send only IP subnet to VPN users remote to go through CASE)

    -Version 8.x characteristic of ASA (Restrcit access to VLAN under Group Policy).

    I intend to do with ASA firewall where I can set a new subinterface on the SAA (with a new tag VLAN) and under the group policy for remote user VPN, I select the option to "restrict access to the new VLAN.

    My question is: is - it still works (even if the firewall have a route to the internal network by using the 'inside' interface and NOT the new interface of the NAC). If this does not work, please let me know what are the other options for this type of deployment.

    Thanks in advance.

    Hello

    It should work. Please see the attached PDF for more clarity on this topic: https://supportforums.cisco.com/docs/DOC-9102

    HTH,

    Faisal

  • It is possible to disable the windows password request for Windows 8?

    OT: password.

    It is possible to disable the windows password request for Windows 8?

    Hello

    Control Panel - Power Options - "require a password on wakeup" - value "need not."
    -Save the changes.

    Desktop computer (Windows key + D) - right click on an empty area - customize - lower right Screen Saver.
    Uncheck the box - the resume, login screen - APPLY - OK.

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

    How to make so that Windows 8 connect you to a user automatically at startup account
    http://www.eightforums.com/tutorials/2894-log-user-account-automatically-Windows-8-startup.html

    See #5

    Or use this method:

    How to turn on or off course connect by using Ctrl + Alt + Del in Windows 8
    http://www.eightforums.com/tutorials/5761-secure-sign-CTRL-ALT-DELETE-enable-disable-Windows-8-a.html

    Others:

    How to automatically log on to Windows 8 [direct access]
    http://www.AddictiveTips.com/Windows-Tips/how-to-automatically-login-to-Windows-8-direct-logon/

    Windows 8, how to connect automatically
    http://www.gHacks.NET/2011/09/16/Windows-8-How-to-automatically-log-on/

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • 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

  • 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

  • How can I disable the clicks of mouse for 8 Captivate?

    How can I disable the clicks of mouse for 8 Captivate?  It seems that the most recent set of instructions are from 2013 and the dialog box has changed.  I'll also say that I'm all new to Captivate

    Not quite true: you can select a mouse object in the project, disable the mouse click. Then use the menu at the top right in the properties panel (Hot Dog or hamburger icon) and choose "Apply to all elements of this type" and click of the mouse is disabled throughout the project.

  • 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...

  • Follow-up of the steps to install the hp wireless printer and it worked only once. Now he says it is "offline."

    Original title: the computer geek

    Follow-up of the steps to install the hp wireless printer and it worked only once. Now he says it is "offline." Convenience store said that it cannot solve the problem. That's happened?

    Hello

    1. What is the brand and model of the printer?
    2. don't you make changes on the computer recently before this problem?
    3. What is the full and exact error message?

    Step 1: The procedure below can help you to fix this problem.

    a. Click Start > Control Panel > printer and faxes
    b. now right-click on computer and select the printer to use online

    Step 2: Update printer drivers.

    To install new or updated printer drivers to update
    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/print_drivers_install_updatew.mspx?mfr=true

  • Disappears problem Wizard of the printer for multiple users

    It seems to be a problem for many people on this forum at the moment where Printer Wizard and other options disappear from the printer software.  I have a Deskjet 3070 and have been touched by this problem.  At least one person with the same printer has posted the same problem recently and someone with a 5510 and someone with a 8600 - all in just the last two days.

    I uninstalled and reinstalled and I'm still in the same situation, I also followed advice given to other users and made a bit of investigation, I sure hope can help to define the problem as it seems that this could be a similar thing that happened to us all...

    If I create a new user account and log in it and then open the "printer software" at first I get all the options provided.  After a short while an information banner invites me to download the update details is displayed:

    Once this happens it has not come back...  No matter if you click on the banner the next time that you open the printer software, half of these options will be gone:

    If you create a new user, it's the same thing: at first all goes well until the inevitable update.  What I can't work is the way to do things, come back as it should be once they have gone to a user account.  More for you a solution please!  Thank you.

    Hello.

    Yes, same question here for my 6500 Officjet has. Before was particularly to be able to see the status of printer ink in one click all the features. All these features have disappeared, I noticed in the last week or two. No update has been installed by myself to the software of HP Print to my knowledge either. Went to the HP Canada website and download the full feature set driver and installed and now have the rear HP Printer Wizard. It's kinda diiferent tho of previous version I had installed with the CD supplied with the printer, a year or two there therefore needs to be a more recent version of the help system.

    What happened here HP? Did a silent update killed the previous Printer Wizard? Would really like to know...

    Thank you.

Maybe you are looking for

  • Disk recovery (GMR400712PT0) and by Satellite L300

    Will be the recovery disc with reference GMR400712PT0 run on Toshiba L300? Thank you!

  • Qosmio X 770-can't choose the built-in 3D transmitter

    Hey guys I recently bought the Qosmio X 770 with integrated NVIDIA 3d Vision, but when I want to activate 3D I can not choose 3d transmitter integrated because it appears to other Kits 3D. I upgraded from Home Premium to Ultimate passing. Any help?

  • Simple question Motoblur

    I have a shortcut on my screen of my CorporateSync account. I also use Gmail for some personal e-mails, but I don't like the Gmail app, so I put up as an IMAP account generic. It works very well. Now I want to put a shortcut on the home screen in thi

  • How/where to buy Flight Simulator

    I have an account of M.S., where can I buy Flight simulator please?  This is for execution on a PC running win7 SP1. 64-bit edition.and spec exceeds the requirements. 64-bit 3.33 GHz (not overclocked) 12 GB OF DDR3 RAM. 4 graphics NVIDIA GTX 295 x ca

  • {Param_whateverOption} CAN pull one value attribute?

    'Safe', I know the 'probably obvious' answer for this, but here goes nothing:When you pull parameters in the html to run code, is - it possible to the {param_whateverOption} draw one value attribute?For example: <list name="myExample" label="Apply to