-
By Chad Miller Since SSRS reports can use DataTables as a data sources I thought this would make a nice way to export the output of any Powershell command/script to a number of different formats natively supported by SSRS including Excel, PDF, ... Read More
Posted to
General
(Forum)
by
ps2
on
04-17-2009
Filed under: Output, PDF, Excel, Image File
-
Hi, I am new to powershell and need to use hashes: to read them, to amend them, and to save them again. I found impressive easy ways to convert string (read from files) into a hash: $tmp = @" EURUSD=19000000 USDCHF=19000000 GBPUSD=19000000 "@ $lastDate = convertfrom-stringdata $tmp But I haven't...
-
I'm writing a cluster resource script that is checking the cluster resources, which node they are on and node online/offline status Right now I'm stuck in the output part, in the pipe I have the following data: clusterresource1 node1 online clusterresource2 node2 online clusterresource3 node3...
Posted to
General
(Forum)
by
Ironbone
on
05-20-2010
Filed under: PowerShell, Output, powershell 1.0, powershell 2.0
-
Hey Guys, I'm having some issues consructing the correct for loop I need and also finding a command to e-mail output. Maybe you guys can help me. Currently I have a directory listing that has been parsed and stripped of everything except for the file name and dumped into a file called listing.txt...
Posted to
PowerShell for Windows
(Forum)
by
Terrell
on
03-09-2011
Filed under: cat, each, output, a, in, shell, loop, read, line, power, for, mail, file
-
I have a portion of a script that creates an excel spreadsheet and populates the drives for remote servers, their size as well as used and percentage. (Found it here I believe) What I need to add to this spreadsheet are all of the directories that are listed under the drives by using the get-content...
Posted to
PowerShell for Windows
(Forum)
by
squeekie
on
04-20-2011
Filed under: powershell, wmi, get-wmiobject Win32_Product MSI Windows Installer, windows, powershell remoting, output, loop, file
-
I am using the follwing powershell script to gen a random password. $pwdlength = 6 $bytes = [byte[]][byte]1 $pwd = [string]"" $rng = New-Object System.Security.Cryptography.RNGCryptoServiceProvider for($i=1;$i -le $pwdlength;$i++) { $rng.getbytes($bytes) $rnd = $bytes[0] -as [int] $int = (...
-
Both version 1 and version 2 of Windows PowerShell have a nasty limitation when it comes to capturing *all* output from a script. First up, within a script there is no way to redirect host (Write-Host), verbose, warning and debug ... Read More
-
Another post from Joe Pruitt that talks about PowerShell dealing with Output. Read more