Re: Runas, include password?

From: Dave Harry (DaveHarry_at_please.keep.replies.in.the.newsgroup)
Date: 05/13/04


Date: Thu, 13 May 2004 10:08:03 +1000

Thanks Torgeir
The PC's _will_ all be part of AD.
I like the GPO idea. I've tried it out with .MSI files, but since I've got
very little clue about scripts, haven't worked out how to do other jobs, for
example .MSP patches for Office. We've bought OEM office with the computers,
and I'll want to apply full-file patches every so often.
Got any howto examples for .MSP's?

-- 
Dave Harry
"Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
news:ecd0LYAOEHA.3300@TK2MSFTNGP09.phx.gbl...
> Dave Harry wrote:
>
> > I'm brand new to windows servers and scripting. (netware background)
> >
> > If I want to run a patch or program to a computer where the local user
has
> > no admin rights, how can I roll it out?
> > Is there any way to force an administrator password into a RUNAS
command?
>
> Hi
>
> You might get something to work using a Runas wrapper utility or similar,
> take a look here:
>
> http://groups.google.com/groups?selm=3FE0B42C.773CA875%40hydro.com
>
>
> Alternatively, if the computers are members of an Active Directory
> domain:
>
> You could do it in a computer startup script (with a GPO) that runs as
> part of the boot up process (before the user logs in). It runs under the
> system context and has admin rights.
>
>
> If you need to access files over the network from the computer
> startup script, you could put the file(s) on a network share and
> grant read access for the AD group "Domain Computers" to the share.
>
> Alternatively, you could map a drive on the fly, like this:
>
> sDomainUser = "arp.corp\computer_fix"
> sPswd = "something"
>
> Set oNetwork = CreateObject("Wscript.Network")
>
> oNetwork.MapNetworkDrive _
>      "Y:", "\\server\netlogon\some folder",, sDomainUser, sPswd
>
> -- 
> 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/community/scriptcenter/default.mspx


Relevant Pages

  • Re: Delete computer objects more than 5 weeks old...
    ... query in the AD Users and Computers console for all user accounts older than ... I'll try to modify the link below to dump computers vs. users. ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.scripting.vbscript)
  • Re: Delete computer objects more than 5 weeks old...
    ... query in the AD Users and Computers console for all user accounts older than ... I'll try to modify the link below to dump computers vs. users. ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.scripting.wsh)
  • Re: KB896688 and ActiveX
    ... The intent of this change is to prevent COM objects that were not designed to be instantiated in Internet Explorer from being instantiated in Internet Explorer. ... affected but I cannot test on more computers. ... torgeir, Microsoft MVP Scripting, Porsgrunn Norway ...
    (microsoft.public.windowsupdate)
  • Re: How to decide whether a window update should be installed or n
    ... around 60 computers. ... >> Automatic Update detects whether a window update should be installed or not. ... >> updates have been installed and what updates you should install. ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.windowsupdate)
  • Re: unable to sucessfully run the change local administrator scrip
    ... Please bear with me, i never used GPO policy.... ... I applied it to Domain computers... ... torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.scripting.vbscript)

Quantcast