Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Map printer within XenApp via script

Posted on 2012-03-21
3
374 Views
Last Modified: 2012-04-06
Hi,

I have a XenApp 6 server to which I need to add shares & printers.
Shares is no problem via vb-script, however, the printers are not appearing.

I use
MapPrinter "\\ipofserver\printername

Please advise how to troubleshoot/correct.

J.
0
Comment
Question by:janhoedt
  • 2
3 Comments
 

Author Comment

by:janhoedt
ID: 37747292
Ok, I found out howto via policies: http://www.grouppolicy.biz/tag/printer/.

Now how to remove the printers which are already there?
print
0
 
LVL 23

Accepted Solution

by:
Dirk Kotte earned 500 total points
ID: 37748920
you can use "rundll32 printui.dll,PrintUIEntry ..." (rundll32 printui.dll,PrintUIEntry /?) from commandline to add or remove printers at device or user-level.

Also searching,mapping,removing printers within vbs are possible.
0
 
LVL 23

Assisted Solution

by:Dirk Kotte
Dirk Kotte earned 500 total points
ID: 37748979
try this:

Option Explicit
Dim netPrinter, UNCpath
UNCpath = "\\YourServer\PrinterName"
Set netPrinter = CreateObject("WScript.Network")
netPrinter.AddWindowsPrinterConnection UNCpath
 WScript.Echo "Your printer is mapped from : " & UNCpath
 WScript.Quit

or try to use MapPrinter with a variable...
strUNC = "\\PrintSRV\printer01"
MapPrinter strUNC
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Citrix Elite issue 10 121
roaming profile security permission issue. 9 69
Printer from iMac not available in Citrix session 7 66
Update receiver store configuration. 3 19
Citrix policies are the most efficient method to configure and tune XenDesktop environments, allowing organizations to control connection, security and bandwidth settings based on various combinations of users, devices or connection types.  Citrix …
#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question