Search found 99 matches
- Mon Mar 19, 2012 12:50 am
- Forum: PowerShell
- Topic: Directing Write-Debug to Out-File
- Replies: 1
- Views: 1478
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...
- Wed Mar 07, 2012 7:32 am
- Forum: PowerShell
- Topic: strongly typed variables with new-variable
- Replies: 1
- Views: 1248
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...
- Mon Feb 27, 2012 9:03 am
- Forum: PowerShell
- Topic: How can I suppress returning the WMI __ Properties
- Replies: 2
- Views: 1565
How can I suppress returning the WMI __ Properties
Thanks all Ernie
- Fri Feb 24, 2012 10:51 pm
- Forum: PowerShell
- Topic: variable value not being passed into a function
- Replies: 4
- Views: 1906
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...
- Fri Feb 24, 2012 10:51 pm
- Forum: PowerShell
- Topic: variable value not being passed into a function
- Replies: 4
- Views: 1906
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...
- Sun Feb 19, 2012 5:07 pm
- Forum: PowerShell
- Topic: How can I suppress returning the WMI __ Properties
- Replies: 2
- Views: 1565
How can I suppress returning the WMI __ Properties
Thanks very much Jvierra Ernie
- Sun Feb 19, 2012 3:58 am
- Forum: PowerShell
- Topic: How can I suppress returning the WMI __ Properties
- Replies: 2
- Views: 1565
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...
- Thu Feb 02, 2012 7:00 am
- Forum: PowerShell
- Topic: visulization software
- Replies: 1
- Views: 923
visulization software
Thank you I will check it outEB
- Thu Feb 02, 2012 12:51 am
- Forum: PowerShell
- Topic: visulization software
- Replies: 1
- Views: 923
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...