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

Reply To: Import-CSV | Export-HTML but format issues

Here’s a sample of what’s produced, I’m not sure what you meant in terms of the command I’m using. I’m not creating the csv file, that’s being done by some batch scripts and vb scripts that the...

View Article


Reply To: Import-CSV | Export-HTML but format issues

You can attach an HTML file if you give it a TXT filename extension. I’m fine with the CSV being produced elsewhere; you’d said that “I got rid of the #Name? mark from appearing by adding this into...

View Article


Reply To: Import-CSV | Export-HTML but format issues

It might also help if you attached a screen shot of the not-good-looking-email message body. I’m not entirely sure what you’re describing, in terms of the formatting you don’t like. You can attach PNG...

View Article

Image may be NSFW.
Clik here to view.

Compare Lastlogon attribute from all DC's

Hi Experts, I need to export all attributes of an object. but the problem is that for finding last logon time we need to extract “lastLogon” attribute from all DC’s and then compare the values to find...

View Article

Reply To: Can't enter submission

You need to have been registered an on a team with at least 2 members at the start of the event. You won’t be able to do anything during the practice event, but you’ll be all set when the first scored...

View Article


Problems with using Switch statement

This script runs without error, but I don’t think the switch statement has been implemented correctly. The results apply all registry entries based on the lines of code in the switch block. It should...

View Article

Reply To: Can't enter submission

Gotcha, thanks.

View Article

Reply To: How to get the error code or return code of an .exe

Thank you very much Dave. Such simple ideas make us get a huge step closer to what we want to achieve. My respects to you and all of you guys, who make our goals achievable!

View Article


Reply To: Problems with using Switch statement

I will refer to code lines using the number 1-12, to make it easier to talk about the code. On line 4-6 you’re setting your registry keys, before you have even come to the switch statement. Therefore...

View Article


Reply To: Management odata iis extension

I’m not finding anyone who’s played with this to any extent, unfortunately, but I’ll keep asking ;).

View Article

Reply To: Management odata iis extension

Thanks Don! I might have to take the route of developing my own .net interface for this then. Would’ve been nice to have this detailed so all i had to do is create a few xml files to get it up and...

View Article

Reply To: Input Box input a String

Thank you Dave, That was a huge help :-)…May I suggest a scripting war with the TechNet guys >;-)

View Article

Tools and Best Practices for 'make' clones

I have a number of scripts on a tool server which retrieve various bits of data, munge them around, and spit out emails and update databases. As part of some code clean up, I’m looking for tools and...

View Article


Reply To: Tools and Best Practices for 'make' clones

If I understand this correctly, you have scripts with hard-coded paths, and want to have another script that updates these values later? ie: $someVariable = 'DB Endpoint 1' $someOtherVariable = 'API...

View Article

Creating an array of directories

I need to be able to adjust the permissions on a directory. Because the directory tree is quite extensive, I plan on only inspecting and changing the first three layers of a directory. So, a directory...

View Article


Reply To: Creating an array of directories

Get-ChildItem accepts wildcards as part of the path, so you can easily generate your list of directories like this: function Get-SubDirectories { [CmdletBinding()] param ( [Parameter(Mandatory)]...

View Article

Reuse or bad form?

Hey folks - While looking at the practice event, we’ve found a function in the TechNet script center that would be helpful to us. If we use and/or customize the function, while crediting the original...

View Article


Reply To: Reuse or bad form?

There’s probably a different opinion from every person you ask ;). I’d regard it as “something I’d certainly do in production” and be fine with it. I’m of the “pragmatic” camp.

View Article

Reply To: Reuse or bad form?

As far as I am concerned if you don’t know how to do something, research the problem and find the answer the Games have served their purpose. You’ve learned a new technique and the PowerShell...

View Article

Reply To: PowerShell version

My 2p In the Games we’re looking to provide scenarios that help people learn PowerShell and have some fun doing it. If you only have version X and can provide a solution that’s more than fine. You may...

View Article
Browsing all 13067 articles
Browse latest View live