Reply To: Custom Resource Not Found by Get-DSCResource
Wrong folder structure. /Modules/_modulename_/DSCResources/_resourcename_ _modulename_ has to be a real module with at least a .PSD1. E.g., xNetworking. _resourcename_ is the actual resource, and must...
View ArticleReply To: Custom Resource Not Found by Get-DSCResource
That sure enough did the trick. It looks my problem was that when I created the Resource I did this: New-xDscResource -Name cSCVMM_Hardware -Property $DVDDrive, $VMNetwork, $CPUCount, $Ensure, $Name,...
View ArticleReply To: Find text on a web page
It's possible it's just in the BODY. You can just try: $data.ParsedHtml.getElementsByTagName("body").InnerHTML See if that contains the server data, then it's just parsing it
View ArticleReply To: DSC Pull Server Failure
I ran into a similar issue, but it was due to me running the SetupDSC.ps1 script (http://bit.ly/1hjumbd), I was copying my .mof and checksum files to C:\Program...
View ArticleReply To: Managing Hostnames vs. GUIDs on a Pull Server
I've been playing around a little with this issue, trying to keep track of both what configurations are tied to what GUIDs, and then which machines are configured to pull those GUIDs. I opted for a...
View ArticleRemove Registry Item — Can't get any cmdlets to work
In the image below, I am trying to delete "subkey". However, a variety of cmdlets simply won't work I've tried: Get-ChildItem -Path hklm:\Software\Microsoft\Windows\CurrentVersion\test\* | remove-item...
View ArticleReply To: Remove Registry Item — Can't get any cmdlets to work
I think that's exposed as an ItemProperty – do a "Get-Command *ItemProperty" to see commands that work with those.
View ArticleReply To: Remove Registry Item — Can't get any cmdlets to work
Thanks, Don. Looks like that's the trick. Remove-ItemProperty -Path hklm:\Software\Microsoft\Windows\CurrentVersion\test\ -Name * -WhatIf What if: Performing the operation "Remove Property" on target...
View ArticleReply To: Managing Hostnames vs. GUIDs on a Pull Server
Since all of my nodes need to have a unique GUID (they don't share MOF files), I ended up using Raymond's trick of grabbing the GUID from active directory. First, I have a script to generate the...
View ArticleIs the Europe summit 2014 sold out?
Hi guys, The European summit was announced on the 16th and I could get to the links that were posted. By the time I'd contacted my bosses though the links suddenly stopped working. Today the links...
View ArticleReply To: Is the Europe summit 2014 sold out?
No the European Summit Is not sold out. We've had a few teething problems with the site which is why it's been unavailable occasionally. You'll be able to purchase AWPP membership for the European...
View ArticleReply To: Is the Europe summit 2014 sold out?
Continue to rely on PowerShellSummit.org for dates and information.
View ArticleBulk Add AD Computers to AD Group
Hi, I'm looking for the best way to bulk add a list (txt) of AD Computer Accounts to a specific AD Group, has anyone out there done this before ?
View ArticleReply To: Bulk Add AD Computers to AD Group
PowerShell 3+: $computers = Get-ADComputers * | Select -ExpandProperty SamAccountName Get-ADGroup testgroup | Add-ADGroupMember -Member $computers Add-ADGroupMember might actually be able to take...
View ArticleReply To: Bulk Add AD Computers to AD Group
Hi Martin, Thanks for coming back so quickly – is there a way of reading the computer names from a text file, i just have a list of computernames that are located in various OU's that i need to add to...
View ArticleReply To: Bulk Add AD Computers to AD Group
Sure $computers = Get-Content .\computers.txt Put one computer name per line. You may have to add $ to the end of the names though, as I can't recall if it requires SamAccountNames, or if simply using...
View ArticleReply To: Is the Europe summit 2014 sold out?
Excellent stuff. Have a month to work on my bosses Cheers.
View ArticleHelp with Metaprogramming how to create a new Parameter from scratch
Hi PowerShell people! For metaprogramming and to create ProxyCommands (proxy functions) I had the need to create a Windows PowerShell Parameter programmatically from scratch. I even don't like to use...
View ArticleReply To: Bulk Add AD Computers to AD Group
Just want to clarify that AD cmdlets work in V2 as well… But good to see two different examples of accomplishing the same thing! That's what PowerShell is all about!
View Article