Re: unc file spec ?????

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 09/13/04

  • Next message: Will Chung: "Re: wshShell.Run - permission denied"
    Date: Mon, 13 Sep 2004 10:10:26 +0200
    
    

    rob merritt wrote:

    > Hi I am trying to iterate through a list of computers to find the file
    >
    > c:\winnt\debug\dcpromo.log and if it exists change its attributes to
    > read only
    >
    > how do I do this using a unc path ????
    Hi

    E.g. by using the admin share:

    \\<computer name\C$\winnt\debug\dcpromo.log

    -- 
    torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
    Administration scripting examples and an ONLINE version of
    the 1328 page Scripting Guide:
    http://www.microsoft.com/technet/scriptcenter/default.mspx
    

  • Next message: Will Chung: "Re: wshShell.Run - permission denied"

    Relevant Pages

    • Re: Checking to see if a network path exists
      ... for a UNC path with the word 'mudraker' in it and returns the drive ... Set oWshNet = CreateObject ... torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
      (microsoft.public.scripting.vbscript)
    • Re: list file in UNC path?
      ... I copied the script "List all files" from the Script Center and changed the path to an UNC path. ... Set colFiles = objWMIService. ... torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/scriptcenter/default.mspx. ...
      (microsoft.public.scripting.vbscript)
    • Re: Scripting Admin tasks
      ... Right now the scripting guide and SDK are all we have posted from Microsoft. ... Check out the SMS Technical FAQ: ...
      (microsoft.public.sms.admin)
    • Re: list ou users
      ... One trick is knowing when to use GetObject vs. CreateObject. ... The "Microsoft Windows 2000 Scripting Guide, ... The Scripting Guide is an excellent resource. ...
      (microsoft.public.scripting.vbscript)
    • Re: change password w2k
      ... that I can use WMI also to manage users remotely? ... Using ADSI, you can manage objects like users, computer or groups. ... > A good place to start learning about this is the Windows 2000 Scripting ... > Windows 2000 Scripting Guide: ...
      (microsoft.public.windows.server.scripting)