Reply To: Not Returning innerHtml values
I wish you luck; that's a pretty crappy set of conditions to have to work through. The only thing that jumps out at me right now is that you're performing actions immediately after calls to click() on...
View ArticleHow to make this more useful for my situation
Hi Team I have found a script from a poshcode user called Themoblin and as he has posted here I thought this was a good place to ask for some advice. Being new to Powershell but ultimately keen to...
View ArticleHashtable as resource parameter
I've been squeezing my brain trying to figure out how to get *-TargetResource to accept a [hashtable] parameter. Can it be done? #psm1: param([hashtable]$AdvancedProperties) #schema: [Write] String...
View ArticleReply To: Hashtable as resource parameter
Oh, and running it with -Debug gives the following: DEBUG: SHT_sNetAdapterAdvancedProperty: RESOURCE PROCESSING STARTED [KeywordName='sNetAdapterAdvancedProperty']...
View ArticleReply To: Hashtable as resource parameter
Found something… Setting the schema property to [Write, EmbeddedInstance("MSFT_KeyValuePair")] String AdvancedProperties[]; lets DSC read and generate a proper mof file if you can believe it. Only...
View ArticleReply To: Hashtable as resource parameter
Aha, success! #psm1 param( [Microsoft.Management.Infrastructure.CimInstance[]]$AdvancedProperties ) foreach($instance in $AdvancedProperties) { Write-Verbose ('Key: {0}, Value: {1}' -f...
View ArticleReply To: Doubt on handling non-terminating error
Posted this problem on the Office 365 community, and their reply was: "Hi Vandrey, As you may have already noticed, currently we're using the remote PowerShell connection to manage Exchange Online,...
View ArticleReply To: Trouble Scheduling Browser Window to Open
I added the two lines you mentioned to make it a non-background task and made sure it was scheduled properly. At 9:30a as scheduled, a window appeared – then abruptly closed before it had a chance to...
View ArticleManipulating Array or variable
My challenge for the day. I am importing a csv. Each entry has 4 properties. The first property is completed and I need to use that property to obtain the other properties. I will be doing this in a...
View ArticleReply To: Trouble Scheduling Browser Window to Open
I saw basically the same thing when I tested that code. The dark window you mentioned is the PowerShell console, but it doesn't have to stay open very long, because all it's doing is loading up your...
View ArticleReply To: Manipulating Array or variable
It looks like you're on the right track. This bit is a problem, though: foreach ($i in $test) { $test.sAMAccountName = get-aduser -property sAMAccountName } $test, here, is an array. What you would...
View ArticleReply To: Cambridge, UK
This probably isn't the best place to find out, as I don't think most people routinely browse forums posts for open discussion.. but based on site analytics, yes, we have folks from that general area...
View ArticleReply To: How to make this more useful for my situation
It would be better to only query the desired users from AD in the first place, something the -filter or -ldapfilter parameters of Get-ADUser can accomplish for you. That way you're not spinning...
View ArticleReply To: Cambridge, UK
Thanks I saw the messages re: the europe summit. Frustrating as there are two of us here (me + another) who've not been able to talk our companies into funding us this year, but might well do it in...
View ArticleReply To: Trouble Scheduling Browser Window to Open
Ahh… Well, the point is that the browser window didn't launch and remain open as intended. :/ Maybe it's ok for the code to execute in the background without being visible at all – as long as the...
View ArticleReply To: Trouble Scheduling Browser Window to Open
Those two things are tied together. If powershell.exe launches in the background, so does IE. I'm not sure why the browser isn't opening for you; that part worked fine for me. I tested the code before...
View ArticleReply To: PSRemoting – PSSessionConfiguration – Using PSSnapin in...
Please link your entry at connect.microsoft.com as I would like to vote for it. I have dealt with this for months and haven't been able to get a PowerShell EndPoint/Session Configuration to load a...
View ArticleReply To: PSRemoting – PSSessionConfiguration – Using PSSnapin in...
Tommy, Here is a link to the newly created entry at connect.microsoft.com...
View Article