Re: group policy
From: Anonymous (none_at_none.com)
Date: 09/23/04
- Next message: Todd J Heron: "Re: Joining NT 4 domain to 2003 functional mode forest"
- Previous message: Angie: "Administrators privledges?"
- In reply to: kwise: "RE: group policy"
- Messages sorted by: [ date ] [ thread ]
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.
- Next message: Todd J Heron: "Re: Joining NT 4 domain to 2003 functional mode forest"
- Previous message: Angie: "Administrators privledges?"
- In reply to: kwise: "RE: group policy"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|