Here is the best way to get a remote MAC address.
http://technet.microsoft.com/en-us/libr ... 90913.aspx
Search found 15436 matches
- Tue Jun 23, 2009 8:52 am
- Forum: VBScript
- Topic: IP string variable wrong from ipconfig?
- Replies: 5
- Views: 2897
- Tue Jun 23, 2009 5:43 am
- Forum: PowerShell
- Topic: Running functions with alternate credentials
- Replies: 1
- Views: 2475
Running functions with alternate credentials
Try:
$process.Exitcode
$process.Exitcode
- Mon Jun 22, 2009 9:42 pm
- Forum: PowerShell
- Topic: Powershell visual styles forms
- Replies: 10
- Views: 28900
Powershell visual styles forms
Here is the SDK sample code converted to PoSH. I tested it and it works. The example is very subtle and once you enable styles they stay enabled until PowerShell is shut down. Maybe later I will add one of the more obvious controls so it willbe more obvious the visual styling has been loaded and ena...
- Mon Jun 22, 2009 1:47 pm
- Forum: PowerShell
- Topic: Powershell visual styles forms
- Replies: 10
- Views: 28900
Powershell visual styles forms
I found out how to turn on viisual styles in PoSh V1 without a manifest.
Stay tuned.
Stay tuned.
- Mon Jun 22, 2009 8:36 am
- Forum: PowerShell
- Topic: A real reason to use RETURN
- Replies: 14
- Views: 7480
A real reason to use RETURN
I read it a while ago. - I stick with my arguments. Quote Payette from p198 "Unfortuntely it can sometimes leas to confusion for new users and non-programmers..... Because of this potentiual...avoid using return staement." And don't get me started on "pure functions" because ther...
- Mon Jun 22, 2009 6:49 am
- Forum: PowerShell
- Topic: A real reason to use RETURN
- Replies: 14
- Views: 7480
A real reason to use RETURN
In that case you are correct but they are still not "equivalent" They just behave similarly. I know this sounds like nit-picking but it has implecations for use of return in other areas. Most admin users are not formally trained inprogramming and don't understand the mechanisms at work. Th...
- Mon Jun 22, 2009 6:10 am
- Forum: PowerShell
- Topic: Interesting Error
- Replies: 3
- Views: 2120
Interesting Error
I went back for a full ttest. A Unix compatible file with only newline characters between lines will cause that error with these two commands in PowerShell. You must use an ANSI editor with full CrLf terminators when editing code for Windows applications. This may also be caused by copying and pasti...
- Mon Jun 22, 2009 1:35 am
- Forum: PowerShell
- Topic: A real reason to use RETURN
- Replies: 14
- Views: 7480
A real reason to use RETURN
On the contrary. THe use of RETURN is completely different. If yo don't use return here the "write-host will be executed. If you use return the code after teh return will NEVER be executed. RETURN absolutely terminates the script or function. You can have multiple returns but only one can ever ...
- Sun Jun 21, 2009 1:41 pm
- Forum: PowerShell
- Topic: Powershell visual styles forms
- Replies: 10
- Views: 28900
Powershell visual styles forms
Just adding a manifest or referencing the control library in the manifest?
Curious as to how.
Curious as to how.
- Sun Jun 21, 2009 11:32 am
- Forum: PowerShell
- Topic: Powershell visual styles forms
- Replies: 10
- Views: 28900
Powershell visual styles forms
Hi Alex I am not convinced that the calls to load teh control library in the Manifest will properly initiate teh forms clases. I think this only happens at startup/load and would not be applied to a non-visual program like PowerShell. Of course trying it is the only sure way to know this as I am onl...