Quantcast
Channel: PowerShell.org » All Posts
Browsing all 13067 articles
Browse latest View live

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 Article


Reply 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 Article


Pulling 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 Article

Reply To: Getting Fromat of Hashtable a cmdlet supports

Thank you Robert … It seems i need to give attention to property help.

View Article

Reply 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 Article


Image may be NSFW.
Clik here to view.

Reply 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 Article

Reply 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 Article

How 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 Article


Image may be NSFW.
Clik here to view.

Reply 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 Article


Image may be NSFW.
Clik here to view.

Reply 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 Article

Reply 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 Article

Reply 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 Article

Where 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 Article


Reply 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 Article

Reply To: Where is msdeploy.exe located in IIS7/IIS8?

Oops my bad. I am actually using msdeploy inside my powershell script.

View Article


Encrypted 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 Article

Network 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 Article


Formatting 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 Article

Reply 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 Article

Reply 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
Browsing all 13067 articles
Browse latest View live