Search found 99 matches

by EBrant
Mon Mar 19, 2012 12:50 am
Forum: Windows PowerShell
Topic: Directing Write-Debug to Out-File
Replies: 1
Views: 1083

Directing Write-Debug to Out-File

Hello I have several lines of Write-Debug in my script, rather than simply displaying this on the console i.e. out-default > write-host (or should that be the other way around). I want to output to a file, I have tired write-debug "a message" | out-file etc etcalso triedwrite-debug "a message" >> C:...
by EBrant
Wed Mar 07, 2012 8:32 am
Forum: Windows PowerShell
Topic: strongly typed variables with new-variable
Replies: 1
Views: 637

strongly typed variables with new-variable

Hello I want to declear a new variable and at the same time make it a constant and also specify the type of data the variable can hold. At the moment I have to following no problem new-variable -Name B1 -Option Constant The thing is when I try to use strong typing like the following it does not wor...
by EBrant
Fri Feb 24, 2012 11:51 pm
Forum: Windows PowerShell
Topic: variable value not being passed into a function
Replies: 4
Views: 904

variable value not being passed into a function

Hello, I am fairly new to PowerShell, so please bear with me. The following is foxing me at the moment as I cannot see the reason why. Here is a simple script below, the first function tests if the computer $computer is pingable, if so the second function retrieves some OS information from said com...
by EBrant
Fri Feb 24, 2012 11:51 pm
Forum: Windows PowerShell
Topic: variable value not being passed into a function
Replies: 4
Views: 904

variable value not being passed into a function

Hello,I am fairly new to PowerShell, so please bear with me. The following is foxing me at the moment as I cannot see the reason why. Here is a simple script below, the first function tests if the computer $computer is pingable, if so the second function retrieves some OS information from said compu...
by EBrant
Sun Feb 19, 2012 6:07 pm
Forum: Windows PowerShell
Topic: How can I suppress returning the WMI __ Properties
Replies: 2
Views: 863

How can I suppress returning the WMI __ Properties

Thanks very much Jvierra :)Ernie
by EBrant
Sun Feb 19, 2012 4:58 am
Forum: Windows PowerShell
Topic: How can I suppress returning the WMI __ Properties
Replies: 2
Views: 863

How can I suppress returning the WMI __ Properties

Hello Does anyone know how to suppress returning the WMI System properties double underscore __ for example __GENUS when using the -query parameter? In the first example below I just to a get-wmiobject without a query and the data is returned. In the second example I perform the same action but this...
by EBrant
Thu Feb 02, 2012 8:00 am
Forum: Windows PowerShell
Topic: visulization software
Replies: 1
Views: 458

visulization software

Thank you I will check it outEB
by EBrant
Thu Feb 02, 2012 1:51 am
Forum: Windows PowerShell
Topic: visulization software
Replies: 1
Views: 458

visulization software

Hello I am still quite new to scripting as a whole I was wondering if anyone know of some software that can help you plan out and visualize your scripts a bit like visio (but preferably more dedicated to scripting). for example as scripts get longer and things change you scan start to get a bit los...