Solved

Map printer within XenApp via script

Posted on 2012-03-21
3
366 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

#Citrix #XenApp #Citrix XenApp #Citrix Concurrent License #Citrix Licensing #Citrix Policies
Several part series to implement Internet Explorer 11 Enterprise Mode
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.

771 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now