wake on lan

powershell

    Next

  • 1. working in the GAC
    I am just looking for some direction on my issue. I am trying to do a few things in the GAC of a remote computer. Namely, I want to uninstall a dll from the GAC and then install a DLL into the GAC.. I know I could probably run the gacutil and regsvcs, but I'd rather stay away from "third-party" executables. I maybe just don't know what object I need to be creating and using.
  • 2. XMLDiff
    Hi, I am getting following error when I try to compare 2 xml files using xmldiff.exe. I am calling this utility through my powershell script. Error:There is no Unicode byte order mark. Cannot switch to Unicode. My xml files are something of this format, <?xml version="1.0" encoding="utf-16"?> <ResultSet> <Record> <customerJob> <metadata> <Title>Customer - 1</Title> .................. But if I remove the encoding attribute <encoding="utf-16> from the XML tag, then xmldiff.exe returns me proper result. Any idea on this issue?
  • 3. manipulating remote COM applications
    So far I've been unsuccessful in looking this information up, so if someone could kindly point me in the right direction, I'd appreciate it! I have to run a script on Computer A that will connect to Computer B and check if a certain COM+ application is running. If the COM+ is running, I need to shut it down. How does PowerShell go about interacting with COM+?
  • 4. changing homedirectory of AD user
    Hello, I want to create a script which enalbes me to change homedirectories of Active Directory users using powershell. Tryed to find a sampel script on the internet, but couldn't find any. Does anybody know if this is possible and how to do it? Thanks. Fabian.
  • 5. Config scripts
    There are a couple of useful functions in the 'Powershell in Action' book called Get-Assemblies and Get-Types that I'd like to use whenever I open a powershell host - but I don't want to have to type {Get-Assemblies |%{$_.GetExportedTypes()} | where{$_ -match $Pattern}} ... in each time! Is there a use-settings file where I can pre-roll functions, etc.?

Wake on lan

Postby QmlsbA » Sat, 07 Mar 2009 01:19:01 GMT

-- 
Bill

wake on lan

Postby QmlsbA » Sat, 07 Mar 2009 01:24:01 GMT

Hey all!

I need to wake on lan 13 workstations from a windows server 2003 server to 
perform backups.  

I would like to use a csv file that identifies the workstaion by name or ip 
and its mac address. 

I have found several powershell scripts, but had trouble getting them to work.

any ideas?

Thanks
-- 
Bill

Re: wake on lan

Postby Marco Shaw [MVP] » Sat, 07 Mar 2009 21:58:52 GMT



For starters, at what point are you at?  Do you have a script that can 
at least start one workstation or you don't have anything at all currently.

See:
 http://www.**--****.com/ 

Check the comments also.  Get something working for one system, then if 
you need to pass a TXT or CSV file, that will be simple once you have 
something working for one.

Marco

-- 
*Microsoft MVP - Windows PowerShell
https://mvp.support.microsoft.com/profile/Marco.Shaw
*Co-Author - Sams Windows PowerShell Unleashed 2nd Edition
*PowerShell Co-Community Director -  http://www.**--****.com/ 
*Blog -  http://www.**--****.com/ 

Re: wake on lan

Postby QmlsbA » Thu, 12 Mar 2009 01:09:01 GMT

Thanks Marco,

I had seen the script you referenced and tried to get it working.  What I 
have done so far:   

1) Saved wakeonlan.ps1 and tried to execute...
2) launch powershell, 
ps> cd "c:\data\@utilities\foo"
ps> .\profile
ps> .\wakeonlan.ps1
   enter option: wol
   enter workstation: (at this point I have tried a) all, b) computer name), 
c) ip address, d) mac address, e) combined: computer name followed by ip.

Tracking the progress, the closest to working was b) computer name where it 
pinged and failed 25 times the computer.

Maybe I am not "calling" this thing correctly. I mean the first line 
(#wakeonlan $computer) leads me to believe that the wakeonlan function takes 
the parameter $computer which resolves to the computer name.

Anyway, I am learning ALOT and am continuing to until I fingure this all out 
(given time available).  

thanks again
-- 
Bill








Re: wake on lan

Postby Matthias Tacke » Thu, 12 Mar 2009 08:50:06 GMT



Hi Bill,
it's difficult to tell what's wrong without knowing if WOL does
work with the pc's you have in mind.

The script version from James Manning
< http://www.**--****.com/ ;
does work here without any hassles waking a PC where BIOS is properly set 
up for WOL.

.\Wake-On-Lan.ps1 11:22:33:44:55:66

-- 
Regards
Matthias

Re: wake on lan

Postby QmlsbA » Thu, 12 Mar 2009 21:04:00 GMT

IT WORKED!!

I was not "calling" the script correctly.  It should have been like you 
indicated:
".\ scriptname.ps1 mac address separated by ":".

Now, in the powershell code repository,  http://www.**--****.com/ 
script tha uses a csv file.  
First, Is this a powershell script?
Second, If I cut and paste the 113 lines of code, and name it 
wakeonlan.ps1in my script directory, can I  execute it at a pre-defined time 
(12:01 am Saturday)?
Third, what is the correct separator for the mac address in the csv file (, 
or - or : or a space or no spaces)?
Four, (pardon my viscosity) What is the correct syntax to execute it?

I guess this brings a slightly different question, how to launch powershell 
"autmatically", and through that execute the above script?

Thanks Again!


-- 
Bill








Re: wake on lan

Postby Matthias Tacke » Fri, 13 Mar 2009 08:34:14 GMT



Yes, of course it is.


< http://www.**--****.com/ +powershell+script&as_ugroup=microsoft.public.windows.powershell>


Looks like the mac itself shall have no separator with this script.

computername,112233445566
othercomputer,FFEEDDCCBBAA
Should do.

Sorry just no time to test it and dive into - I'm still a posh noob too.


-- 
Regards
Matthias

Re: wake on lan

Postby QmlsbA » Fri, 13 Mar 2009 19:55:02 GMT

Thank You for all your help!

I now have a scheduled task that will wake each workstation at 11:59pm each 
Friday.

Next I am going to learn to turn them off at 6am every Saturday.

I already have the backup software configured to run every Saturday at 12:01 
am.

Thanks Again!
-- 
Bill








Similar Threads:

1.Wake on LAN "REMOTE WAKE"???

I have a wireless monitor that connects to the computer using remote 
services, it works great except for the fact that I need to go to my 
basement first and then start my PC.  I seem to have several option son my 
PC network card but don't understand all of them. APM etc. I've been able to 
get the computer to WAKE when the monitor tries to connect to it but the 
problem I'm having is that the computer also WAKEs when no one is within a 
mile of it. What are the minimal options I need to turn on in order to wake 
the computer?

Also will it wake the computer from "shutdown" or just hibernation and 
standby?


2.remote wake up or wake on lan confustion

Do you know why i can't remotly wake up my desktop? I am using AMD's magic
packet utility to test.  i have entered my remote machines ip and mac
addresses, but my pc never turns on. This is the first time i have tried
remote wake up. I really could use your input.

Desktop brand: Dell dimention 4300
NIC: Intel Pro/100+ driver version 8.0.11.0 date: 6/22/04

Settings i have configired (did i miss any?)
    BIOS: Remote wake up: ON
    NIC properties:
        Wake on link settings: Forced
        Wake on settings: Wake on Magic Packet
        Power managment: don't allow pc to turn on power for the networkcard
device.


-- 
 XXXX@XXXXX.COM 


3.Vista and Wake on LAN

I have my computer set to turn on remotely.  For those who don't know, it 
involves a bios setting to enable wake up via a signal ("Magic Packet") sent 
over the network.  This all works fine in Vista (as it did in XP), but only 
if the computer is completely off.  However, if the computer is in sleep 
mode, sending the wake up signal doesn't do anything.

This question may be a little esoteric for this group, but I've searched and 
can't find any answers anywhere.  Is there some setting that will allow me 
to remotely wake the computer from sleep mode?  Thanks.

4.Wake on Lan

I'm using Virtual PC 2007 under Windows Vista Ultimate. After a clean 
installation of Vista 64bit the wake on lan feature works fine. But
when I install Virtual PC the computer doesn't wake up anymore.
Can anyone help?

5.Wake On LAN

6. Resuming from sleep and Wake on Lan signal from Xbox360 extend

7. Resuming from sleep and Wake on Lan signal from Xbox360 extender

8. WOL (Wake On Lan)



Return to powershell

 

Who is online

Users browsing this forum: No registered users and 5 guest