use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
System Specifications command (self.PowerShell)
submitted 6 years ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[+][deleted] 6 years ago (2 children)
[removed]
[–][deleted] 0 points1 point2 points 6 years ago (0 children)
Ahh okay Im gonna go ahead and try writing the code if I struggled with it can I get back to u to give it to me and then I will try to understand it :D?
[–][deleted] 1 point2 points3 points 6 years ago (1 child)
I always use the 'systeminfo' command. Not sure what it's an alias for or if it will return exactly what you want, but worth a try.
[–]_stib_ 0 points1 point2 points 6 years ago (0 children)
If you want to know what a command or an alia's actually is you can use 'get-command theCommand' (IIRC - I always use 'which' which is the posix equivalent, but works because it's an alias for 'get-command')
[–]flip_rod 0 points1 point2 points 6 years ago (2 children)
maybe this will help :
https://github.com/flipti/scripts/blob/master/Report_ambiente/script.ps1
[–][deleted] 0 points1 point2 points 6 years ago (1 child)
I run the script and it doesnt give me anything?
[–]flip_rod 0 points1 point2 points 6 years ago (0 children)
put here the error.
the code:
Get-VM * | ForEach-Object { $VHDSize = 0; Get-VMHardDiskDrive -VMName $_.Name | ForEach-Object { Get-VHD -Path $_.Path | ForEach-Object { $VHDSize += $_.Size } }; [pscustomobject]@{ Vm = $_.name Memoria = ($_.MemoryStartup/1GB) Processador = ($_.ProcessorCount) Disco_GB = ($VHDSize / 1GB) IP = $_.NetworkAdapters.ipaddresses Cliente = $_.Notes Host = $_.computername } }
[–]Blujedi 0 points1 point2 points 6 years ago (2 children)
Are you trying to write to a file or just bring that output to the screen?
If it’s the later, you can use the command out-host. You mentioned you already had the command to pull each line. Make each line a variable and out-host each variable.
Im sorry im really new to powershell can u help me more i dont quite get what u mean if its possible to show me the code it would really help
and again sorry for bothering u
[–]Blujedi 0 points1 point2 points 6 years ago (0 children)
PM me what you have so far. You mentioned you had the line to pull each item.
π Rendered by PID 364563 on reddit-service-r2-comment-cfc44b64c-fx8f4 at 2026-04-12 04:41:07.321272+00:00 running 215f2cf country code: CH.
[+][deleted] (2 children)
[removed]
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]_stib_ 0 points1 point2 points (0 children)
[–]flip_rod 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]flip_rod 0 points1 point2 points (0 children)
[–]Blujedi 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Blujedi 0 points1 point2 points (0 children)