Re: Win32_scheduledjob, how to add user/pass to the job
From: Gerry Hickman (gerry666uk_at_yahoo.co.uk)
Date: 01/27/05
- Next message: Gary Chang[MSFT]: "RE: WMI provider getting PDH_CALC_NEGATIVE_DENOMINATOR from PDH"
- Previous message: Torgeir Bakken \(MVP\): "Re: How to retrieve "software updates" with WMI ?"
- In reply to: paisher: "Re: Win32_scheduledjob, how to add user/pass to the job"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 27 Jan 2005 23:59:24 +0000
Hi paisher,
> be local admin. When doing this by script, i'm able to
> join a workstation to a domain when i execute the script
> locally. I didn't manage to join a remote workstation to
> a domain.
I've had some success unjoining, renaming and re-joining Win2k computers
to domains and even putting them in OUs. Mainly using NetDom - calling
it from a within a WSH file.
If I wanted to do it overnight, I'd just shedule it for late evening and
enum a list of computers - one scheduled job running as whoever you like...
In XP, I believe there's even a "Join" method in WMI?
I think you have to first decide the priority, Win32_ScheduledJob, or
joining stuff to domains.
One issue with the above, is that you'd need to add a plain-text
password in the params list of your scheduled job. Not always a big deal
as long as you remember to delete/edit the job the next day, but you
need to think this over.
-- Gerry Hickman (London UK)
- Next message: Gary Chang[MSFT]: "RE: WMI provider getting PDH_CALC_NEGATIVE_DENOMINATOR from PDH"
- Previous message: Torgeir Bakken \(MVP\): "Re: How to retrieve "software updates" with WMI ?"
- In reply to: paisher: "Re: Win32_scheduledjob, how to add user/pass to the job"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|