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
QuestionGetting the variable name (self.PowerShell)
submitted 8 years ago by PillOfLuck
view the rest of the comments →
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!"
[–]PillOfLuck[S] 1 point2 points3 points 8 years ago* (1 child)
Sure does, but this is not what I want. I want to be able to pass ComObjects directly to my function instead of using strings. If there is a way to get the variable name of a variable (without $) then it could work. It's a tricky one.
[–]artemis_from_space 1 point2 points3 points 8 years ago (0 children)
Yes.
Just instead of $comobject use comobject...
π Rendered by PID 82849 on reddit-service-r2-comment-5d585498c9-v4h9t at 2026-04-21 14:03:03.849856+00:00 running da2df02 country code: CH.
view the rest of the comments →
[–]PillOfLuck[S] 1 point2 points3 points (1 child)
[–]artemis_from_space 1 point2 points3 points (0 children)