Re: Group policy

From: David Candy (david_at_mvps.org)
Date: 01/31/04


Date: Sat, 31 Jan 2004 16:14:50 +1100

Enclose things with spaces in inverted commas.

net use myprinter \\myserver\HP LaserJet

On Error Resume Next
Set WshNetwork = WScript.CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\davidcan\HP Laser Jet 6L"
WshNetwork.SetDefaultPrinter "\\h8\HP Laser Jet 6L"

-- 
----------------------------------------------------------
http://www.g2mil.com/Dec2003.htm
"!!bogus" <hello@microb.com> wrote in message news:2tGSb.6915$qU3.641167@news20.bellglobal.com...
> Hi,
> 
> I don't know why I am not able to see my previous posting... what the heck,
> i'll post it again and get flamed.
> 
> I am setting a group of XP computers to use certain Group Policy settings
> (individually on each computer because our server is Windows NT).
> 
> I have 2 issues:
> 
> - When I set and save the .msc file and go to open it on another machine,
> all the snapins that I have chosen are either not there or do not retain the
> settings I have made.
> 
> - How can I print the entire tree for reference?
> 
> - How can I mount a printer using a script? I tried "net use myprinter
> \\myserver\printer name with spaces", but didn't work.... may be because
> there are spaces in the printer share name?
> 
> -- 
> Thank you
> Please post only
> 
>