Reply To: How to NOT Have Redundancy
This is what I did: “I’d have you “GUI function” simply output computer names to the pipeline, so that they could be piped to another command without the interim text files, but that’s your decision”...
View ArticleReply To: Getting Fromat of Hashtable a cmdlet supports
You can find documentation about it in the help section on the Format-Table commandlet. If you do: Get-Help Format-Table -Parameter Property You will be presented with the following information, which...
View ArticlePulling Current user with Environment Variables
I wrote a script to pull users that were currently logged in to remote computers. In general the script is doing this (Invoke-Command name {Get-ChildItem env:username}). It runs fine, but when I was...
View ArticleReply To: Getting Fromat of Hashtable a cmdlet supports
Thank you Robert … It seems i need to give attention to property help.
View ArticleReply To: Getting Fromat of Hashtable a cmdlet supports
You could also do Get-Help Format-Table -Full to get all the help sections about a cmdlet. That’s how I found it now.
View ArticleReply To: Pulling Current user with Environment Variables
I do believe it gets the current username. However, the current username when running that command should be your username, since the PSSession you are connected using will most likely (there are ways...
View ArticleReply To: Pulling Current user with Environment Variables
Thanks, as soon as I read your comment it clicked. I was thinking something more complicated and forgot that it is actually me being logged into the machine.
View ArticleHow do you manage your scripts?
Hello i was just wondering how some of you manage your scripts. Over the past couple of years i have amassed a ton of scripts, some downloaded, some written etc.. Currently i have them all on my...
View ArticleReply To: C# code to powershell
Hi Dave i was looking for something similar and happened to stumble upon this post but having some difficulty getting it to work. If am hijacking this thread let me know i will start a new one. Just...
View ArticleReply To: C# code to powershell
Hi Kiran, Thanks for pointing that out! I’ve updated the code; you can grab the latest version from GitHub.
View ArticleReply To: How do you manage your scripts?
I’m not sure what you mean by “manage”, with the reference to search / find. That’s more of an editor / IDE feature. I believe PrimalScript has a “Find in Files” feature, as does Visual Studio (which...
View ArticleReply To: Pulling Current user with Environment Variables
There’s a command-line utility you could use for this: “query user”. However, parsing the output can be a bit of a pain, and I’d recommend not reinventing the wheel on that one. There are several good...
View ArticleWhere is msdeploy.exe located in IIS7/IIS8?
I can’t seem to figure out where I can find the msdeploy.exe in IIS7/IIS8. I believed IIS7/IIS8 comes with msdeply but I am not sure where it supposed to be. Does it need to be configured? If yes,...
View ArticleReply To: Where is msdeploy.exe located in IIS7/IIS8?
So, we generally focus on windows PowerShell here, but happy to see if someone can help out.
View ArticleReply To: Where is msdeploy.exe located in IIS7/IIS8?
Oops my bad. I am actually using msdeploy inside my powershell script.
View ArticleEncrypted column
I am trying to query an SQL DB that has one encrypted column. I can query everything but the EncryptedNotes field. The encryption is done via certificate, but I don’t know the commands needed to...
View ArticleNetwork computer discovery.
I am looking for the best way to search the local network for computers and bring them back in a list. Would people recommend using an ldap query for computers or is there another prefered way? I am...
View ArticleFormatting Text
I have been searching for an answer and I thought I saw the answer on one of the Microsoft Virtual Academy videos for Powershell. I want to try do a Get-ADUser showing several fields in a table...
View ArticleReply To: Formatting Text
I don’t have an AD environment up and running at the moment to test this, so I’ve simulated an object with a Name and ProxyAddresses property, and formatted it the way you mentioned by a combination...
View ArticleReply To: Formatting Text
That will work. I did the following: $selectProperties = @( 'Name' @{ Name='ProxyAddresses' Expression={ $_.ProxyAddresses -join "`r`n" } } ) get-aduser user -Properties Name,ProxyAddresses |...
View Article