Reply To: Testing configurations and other quirks…
If the bit is flipped on a ZIP file, Windows will flip the bits on the contents when it extracts the files. OK – so this was definitely an execution policy thing. Good to know.
View ArticleReply To: Powershell v3 & v2 Compatibilty
Very cool. Is it possible to run Version 2.0 ISE?
View ArticleReply To: Powershell v3 & v2 Compatibilty
Not that I know of, though I never really tried very hard to do that. I hated the v2.0 ISE
View ArticleHelp emailing formatted HTML – Please
Having problems emailing an HTML report (script attached) I can run script and outputs a nice formatted table with conditioning as an HTML page, but either missing a trick sending as an email (works...
View ArticleReply To: Managing Hostnames vs. GUIDs on a Pull Server
I see what you guys are saying about sharing a MOF with multiple machines, but in this particular application, each machine will have a separate MOF (and thus, each needs its own unique GUID). My...
View ArticleReply To: Help emailing formatted HTML – Please
In the html file you generate, you attach the head before outputting it to a file. When you email it you only send the body. You've got to $body = ConvertTo-Html -Head $Head -PostContent "$(get-date)"...
View ArticleReply To: Managing Hostnames vs. GUIDs on a Pull Server
That works. I'd still lean toward generating the MOF files with the proper name rather than renaming them later, but that's personal preference. Somewhere along the line, similar tooling and lookups...
View ArticleReply To: Managing Hostnames vs. GUIDs on a Pull Server
But if i generate MOF files based on the GUID, they can no longer be used in push mode, right? (Not that I really expect people to use Push mode when I have a Pull server set up, but I'd like to leave...
View ArticleReply To: Managing Hostnames vs. GUIDs on a Pull Server
Correct; MOF files have to have GUID names when used in a Pull server, and hostnames as the file name when used for Push. Unless you feel like compiling two MOFs automatically for every node, at some...
View ArticleReply To: Managing Hostnames vs. GUIDs on a Pull Server
Generating the MOF file based off a GUID name has nothing to do with the mode the machine is in. That would change only if you pushed a configuration to the machine. On some of my scripts, at the...
View ArticleFind text on a web page
Hi, I am accessing an internal web page which has a list of servers and uuids from which I would like to search for a server and get its uuid. Each line on the html page looks like this:...
View ArticleReply To: Need a script to use a threading.
Have you looked into background runspaces? There's a great into to the concept at http://learn-powershell.net/2012/05/13/using-background-runspaces-instead-of-psjobs-for-better-performance/ I've also...
View ArticleReply To: Help emailing formatted HTML – Please
Thanks Martin, will test it tomorrow, cheers!
View ArticleReply To: Find text on a web page
You might look into Invoke-WebRequest; I'm not sure exactly what you need to do, though. If the web server is returning that as raw text, rather than something XML- or JSON-encoded, then it can be...
View ArticleReply To: Find text on a web page
You probably could use the HTML DOM model to pull the data from the site. In IE, if you hit F12 it will open a DOM explorer and determine what HTML object (DIV, SPAN, TABLE, TEXTBOX, etc) contains...
View ArticleReply To: Find text on a web page
As a fun example, take this website for instance. I hit F12 in my IE browser, hit the cursor in the box on the top middle of the bar and place it on the forum topics object and clicked it. I could see...
View ArticleReply To: Find text on a web page
Edit: Not finding a good way to post HTML code on the new forum plugin yet. It's even unwrapping double-escaped HTML.
View ArticleReply To: Find text on a web page
Dare I try to type in some JavaScript and see if that executes? It's impossible, right TweetDeck
View ArticleReply To: Find text on a web page
Wow thanks for the help everyone! I used the F12 and browsed the DOM. It showed up as this, for example (written in poor format due to the limitations of posting html: after META, it says http equiv =...
View ArticleCustom Resource Not Found by Get-DSCResource
So, I have been working on a Custom Resource for a while now and when I finally went to test it in a Configuration, I come to find out that Get-DSCResource does not recognize it as a resource. The...
View Article