Re: Runas, include password?
From: Dave Harry (DaveHarry_at_please.keep.replies.in.the.newsgroup)
Date: 05/13/04
- Next message: Jason Yam: "Re: Uninstall or Repair wsh 5.1 on windows 2000 pro"
- Previous message: Matt Hickman: "Re: logon logoff script for releasing and renewing dhcp lease"
- In reply to: Torgeir Bakken \(MVP\): "Re: Runas, include password?"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Jason Yam: "Re: Uninstall or Repair wsh 5.1 on windows 2000 pro"
- Previous message: Matt Hickman: "Re: logon logoff script for releasing and renewing dhcp lease"
- In reply to: Torgeir Bakken \(MVP\): "Re: Runas, include password?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|