Re: group policy

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Anonymous (none_at_none.com)
Date: 09/23/04


Date: Thu, 23 Sep 2004 16:55:41 +0200

Hi!

Can't you put the shortcut in the "All users desktop" (C:\Documents and
settings\All Users\Desktop)?
And the printers, you can add them via this script. Put it in autostart,
save it as a .vbs file. Or put it in the logon script. The first section off
the scipt removes all printer connections you can remove that section if you
want.

On error resume next
'Removes any printer connection
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colInstalledPrinters = objWMIService.ExecQuery _
    ("Select * from Win32_Printer")
For Each objPrinter in colInstalledPrinters
    Set WshNetwork = WScript.CreateObject("WScript.Network")
    WshNetwork.RemovePrinterConnection objPrinter.Name

Next
'Add the pritners
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\server\printer"
WshNetwork.AddWindowsPrinterConnection "\\server\printer2"
WshNetwork.SetDefaultPrinter "\\server\printer"

Regards

"kwise" <kwiseme@yahoo.com> skrev i meddelandet
news:40711B60-EF79-40E1-BF37-2E9CC3D65400@microsoft.com...
> The policy on the users will not allow any saving on the desktops. I am
> thinking more of a script (VB or WSH)that can be run from the AD server.
> sadely, I don't know how to write one that will creat a short cut for the
app
> that resides on the server. I also want to install a network printer on
the
> fly onece those users logon to the workstation. Remeber the users can not
> browse the resourse on the network,so publishing through AD won't do any
good
> . I guess the best way is writing a script. How? I don't know. Help!
Thanks
>
> "IT@Lesko" wrote:
>
> > Why dont you log on as an administrator to add the short cut? then you
dont
> > have to worry about changing any of your policies.
> >
> > "kwise" wrote:
> >
> > > Hello everyone,
> > >
> > > I have AD win2000 server with gorup policy for users that prohibit
users
> > > from adding anything to the desktop, which meet the requirments.
However,
> > > there is a need to add an application(exe) short cut that runs from
the
> > > server on the desktop so users when logging in to the WSs can execute
the
> > > short cut on their desktop. How do I go about doing this without
allowing the
> > > users from altering their desktops. I guess my question is can I
customize
> > > the group policy ? if so how can I achive this goal? thanks for the
help.



Relevant Pages

  • Re: Logs remote ip when connects to exchange, ftp, or remotly to s
    ... Thanks for your help I wont argue anymore. ... I appreciate everything now I am looking for a script to extract ... >> server through remote desktop on the desktop of his server it showed the ... I just dont know how to make this script see I am going to ...
    (microsoft.public.windows.server.scripting)
  • Re: PHP saying I have an undefined variable?
    ... If you dont want to define the variable first - you can always use a ... if you dont have access to your PHP.ini! ... > will stop execution of your script, while warnings and notices are there to ... > has an undefined variable on your server but your server is just not telling ...
    (comp.lang.php)
  • RE: www.security7.ch.vu
    ... a server side script to access your hard drive from the web ... browser ... is stored on your computer (doh..altho i dont keep names on it etc..). ...
    (Security-Basics)
  • Re: Roamin Profiles
    ... "Tracy Hoffman" wrote in message ... I set it up as a startup script and it doesn't work. ... Its>>> important that their dektops will contain 2 icons and>>> nothing else. ... Whenever they log on to a machine where>the>>> all users desktop contain icons thay are added >>> to his desktop. ...
    (microsoft.public.win2000.active_directory)
  • How to check Websphere Application Server status UP/DOWN in AIX
    ... I want to write a script which would just grep all the processes that ... Now i Dont know what all processes needs to be monitored to ensure the ... WAS server is running. ... script will b more then useful.. ...
    (comp.unix.aix)