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 ArticleReply 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 ArticleReply 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 ArticleCompare 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 ArticleReply 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 ArticleProblems 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 ArticleReply 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 ArticleReply 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 ArticleReply 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 ArticleReply 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 ArticleReply 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 ArticleTools 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 ArticleReply 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 ArticleCreating 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 ArticleReply 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 ArticleReuse 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 ArticleReply 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 ArticleReply 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 ArticleReply 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