PDA

View Full Version : scripting



Stevo
19-Nov-2013, 20:11
Anyone here have some good tips to get a .vbs script to run when a
computer is logged of *or* shut down?

I've been trying all kinds of things and got it to work correctly once,
most of the time the machine acts like the script doesn't run at all.

Windows 7 64bit machines.

--
Stevo

KBOYLE
20-Nov-2013, 02:04
Stevo wrote:

> Anyone here have some good tips to get a .vbs script to run when a
> computer is logged of or shut down?

Power on the computer then login! ;-)

--
Kevin Boyle - Knowledge Partner
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...

Craig Wilson
20-Nov-2013, 14:58
For Logged Off - Windows Task Scheduler.

For Logged Off or Powered Off - Use ZCM to Assign a Scheduled Task as
well as to Schedule WOL Power Up.


On 11/19/2013 2:11 PM, Stevo wrote:
> Anyone here have some good tips to get a .vbs script to run when a
> computer is logged of *or* shut down?
>
> I've been trying all kinds of things and got it to work correctly once,
> most of the time the machine acts like the script doesn't run at all.
>
> Windows 7 64bit machines.
>

Stevo
20-Nov-2013, 15:45
Craig Wilson sounds like they 'said':

> For Logged Off or Powered Off - Use ZCM to Assign a Scheduled Task as
> well as to Schedule WOL Power Up.

So my response to Craig's comment is...

Unfortunately we don't run ZCM...........

--
Stevo

Craig Wilson
20-Nov-2013, 15:58
Then you can build your own WOL task scheduler.
A bit more work.....

On 11/20/2013 9:45 AM, Stevo wrote:
> Craig Wilson sounds like they 'said':
>
>> For Logged Off or Powered Off - Use ZCM to Assign a Scheduled Task as
>> well as to Schedule WOL Power Up.
>
> So my response to Craig's comment is...
>
> Unfortunately we don't run ZCM...........
>

Craig Wilson
20-Nov-2013, 15:59
Ton of free WOL tools, you just need to collect and associate MACs to
PCs you want to wakeup.

So on a Central Computer, Use the Windows Scheduler to run WOL tasks at
2am or whatever.

Then Have Windows Task Scheduler configured to run defined actions at
2:30am for good measure.

On 11/20/2013 9:58 AM, Craig Wilson wrote:
> Then you can build your own WOL task scheduler.
> A bit more work.....
>
> On 11/20/2013 9:45 AM, Stevo wrote:
>> Craig Wilson sounds like they 'said':
>>
>>> For Logged Off or Powered Off - Use ZCM to Assign a Scheduled Task as
>>> well as to Schedule WOL Power Up.
>>
>> So my response to Craig's comment is...
>>
>> Unfortunately we don't run ZCM...........
>>
>

Black, Douglas
20-Nov-2013, 16:11
Stevo,

> Craig Wilson sounds like they 'said':
>
>> For Logged Off or Powered Off - Use ZCM to Assign a Scheduled Task as
>> well as to Schedule WOL Power Up.
>
> So my response to Craig's comment is...
>
> Unfortunately we don't run ZCM...........
>


It's a good thing you don't, or Craig's response would be considered
product support and you'd both get thwacked. :)

Stevo
20-Nov-2013, 18:16
Craig Wilson sounds like they 'said':

> Ton of free WOL tools, you just need to collect and associate MACs to
> PCs you want to wakeup.
>
> So on a Central Computer, Use the Windows Scheduler to run WOL tasks
> at 2am or whatever.
>
> Then Have Windows Task Scheduler configured to run defined actions at
> 2:30am for good measure.
>
So my response to Craig's comment is...

We are basically trying to get a script to run (in our VDI envir) that
exports the default printer reg setting to a .reg file, then have a
login script that imports that setting back in.

What we've tried so far we've gotten to work once, then the logoff
script never seems to work again.

--
Stevo

Stevo
20-Nov-2013, 18:18
Black, Douglas sounds like they 'said':

> It's a good thing you don't, or Craig's response would be considered
> product support and you'd both get thwacked. :)

So my response to Black's comment is...

Yeah, wouldn't want that.........

--
Stevo

lanaleon
21-Nov-2013, 20:46
You might have tried this already but we run a login VB script under
Group Policy: User Configuration; Windows Settings, Scripts
(Logon/Logoff), in Windows 7 and works every time.


--
lanaleon
------------------------------------------------------------------------
lanaleon's Profile: https://forums.novell.com/member.php?userid=16538
View this thread: https://forums.novell.com/showthread.php?t=472851

Stevo
21-Nov-2013, 21:45
lanaleon sounds like they 'said':

>
> You might have tried this already but we run a login VB script under
> Group Policy: User Configuration; Windows Settings, Scripts
> (Logon/Logoff), in Windows 7 and works every time.

So my response to lanaleon's comment is...

The login script is not the problem, it's getting one to run during
logoff or shutdown.

Moving now to try just running a scheduled task during the day,
thinking that might work out for us.

--
Stevo

Craig Wilson
21-Nov-2013, 22:29
Gotta be careful....

I heard stories that even the Sicilian Mafia steers clear of the Novell
Chat Enforcers............

On 11/20/2013 10:11 AM, Black, Douglas wrote:
> Stevo,
>
>> Craig Wilson sounds like they 'said':
>>
>>> For Logged Off or Powered Off - Use ZCM to Assign a Scheduled Task as
>>> well as to Schedule WOL Power Up.
>>
>> So my response to Craig's comment is...
>>
>> Unfortunately we don't run ZCM...........
>>
>
>
> It's a good thing you don't, or Craig's response would be considered
> product support and you'd both get thwacked. :)
>
>

Stevo
22-Nov-2013, 18:49
Ok, so figured out a scheduled task to do what I want, made the mistake
of being in the User portion of the GPO to get this to work when I need
to be in the Computer portion.

Set up the exact same script in the Computer portion of GPO, @#$%ing
scheduled task will not run.

Anyone have any suggestions? Aside from Zen, fdisk, etc, etc.

--
Stevo

Dave Taylor
05-Dec-2013, 10:17
"Stevo" <steveSPAM@LESSccgov.net> wrote in news:_OMju.269$FD5.257
@novprvlin0913.provo.novell.com:

>
> Set up the exact same script in the Computer portion of GPO, @#$%ing
> scheduled task will not run.
>
> Anyone have any suggestions? Aside from Zen, fdisk, etc, etc.

Never ever use mapped drive letters. Use a UNC path in all scheduled task
script actions on MS Windows.
I just battled some tasks and "relearned" this, this week.
Might help :)

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com

Stevo
05-Dec-2013, 15:47
Dave Taylor sounds like they 'said':

> Never ever use mapped drive letters. Use a UNC path in all scheduled
> task script actions on MS Windows.
> I just battled some tasks and "relearned" this, this week.
> Might help :)

So my response to Dave's comment is...

Thinking this was a permissions issue. Ended up putting needed files
local to the VM templates, setting a scheduled task on the template,
the linked clones then run it fine.

Little bit of a PITA, but we only needed this for our virtual desktops
anyway, so it worked out ok.............so far. <G>

--
Stevo

Dave Taylor
08-Dec-2013, 05:02
"Stevo" <steveSPAM@LESSccgov.net> wrote in news:El0ou.1070$FD5.22
@novprvlin0913.provo.novell.com:

> Little bit of a PITA, but we only needed this for our virtual desktops
> anyway, so it worked out ok.............so far. <G>

Good news :)

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com