Reply To: Powershell – group members & attribs for multiple groups...
Hi Jake, If I were you I would search for examples in the TechNet Script Center (http://gallery.technet.microsoft.com/scriptcenter), this forum, check out http://poshlinks.com or Bing/Google....
View ArticleReply To: Script to install .EXE and configure on remote machines
The installer will modify the configuration file for you. You only need to run the installer on the remote machines with the correct master and minion name. Regarding the Yes and No dialog, you...
View ArticleReply To: Problem with events when useing Start-job and WPF
I'd love to play around with it, but I have to admit writing XAML isn't exactly one of my strong skills. Any chance you can post the missing piece on a pastebin service, or attach the script file to...
View ArticleReply To: Powershell – group members & attribs for multiple groups...
Take a look at Quest Active Directory cmdlets. While this can be accomplished many ways using Get-AdGroupMember (with RSAT tools installed) or using ADSI, the Quest tools make it a one-liner because...
View ArticleReply To: Handling errors
Don Jones, Now that I'm reading the book I've noticed that… Great material that you guys are offering us. Thanks one more time for helping who is starting on PowerShell =]
View ArticleReply To: Adding Variable to Hash Table.
I need to check for local admin account membership on my system. For some reason the code is not exiting when complete. Any idea why it might not exit? Thanks Jon
View ArticleReply To: Adding Variable to Hash Table.
If you're in a domain environment, using WMI to check for group memberships (or anything account-related, for that matter) can take a ridiculously long time. I'd recommend using ADSI instead, or if...
View ArticleReply To: Problem with events when useing Start-job and WPF
Yes, of course Attachments:You must be logged in to view attached files.
View ArticleReply To: Problem with events when useing Start-job and WPF
Well I'm stumped. The best I can say is if I run $synchash.window.Dispatcher.Invoke({ $synchash.TextBox.Text = 'test' }) it updates the TextBox property correctly, but getting an event to do it seems...
View ArticleUsing XML for variable source to modify registry values.
Hello, I have been steadily making progress in my first attempt at doing any type of scripting. My goal is to write a module that pulls a listing of registry keys from XML and allows you to manipulate...
View ArticleReply To: Using XML for variable source to modify registry values.
Powershell Script function Test-XML { [CmdletBinding()] [OutputType([int])] Param ( # Supports Multiple Computers if Authenticated to make changes. [Parameter(Mandatory=$True, ValueFromPipeline=$true,...
View ArticleReply To: Using XML for variable source to modify registry values.
Sorry dunno how to get XML to format properly. So giving you best i can as example: (regkey) (keyid reguid =1) (RegName) RegPropertyName (RegPath) Path to registry key (RegType) Registry type (RegOn)...
View ArticleList Recipients w/o Exchange Unified Messaging Address
Hello all, I am trying to get a list of recipients that do not have an Exchange Unified Messaging (EUM) address listed in their account. I have figured out how to pull a query to list only the EUM...
View ArticleReply To: Using XML for variable source to modify registry values.
Hello Kazrath, You can attach the full XML file as .txt to make it easier for us to help you. A simple way to have a user to select something is the cmdlet Out-Gridview. One thing I've noticed is that...
View ArticleInstalling ADK 8.1 with DSC
Hello everyone! I'm using this to install ADK 8.1 Package 'Deployment Tools' { Name = "ADK Deployment Tools" Path = "c:\adk81\adksetup.exe" ProductId = "FEA31583-30A7-0951-718C-AF75DCB003B1" Arguments...
View ArticleReply To: List Recipients w/o Exchange Unified Messaging Address
So, your mistake is that you've used Select-Object twice. In the first Select-Object, you didn't include EUMAddress. Therefore, Where-Object will not have an EMUAddress to work with. Ergo, the...
View ArticleReply To: Installing ADK 8.1 with DSC
The Package resource is a little delicate, and it depends heavily on the actual software installer not being stupid. If, in this case, the installer insists on restarting, then there's not much you...
View ArticleReply To: Installing ADK 8.1 with DSC
Hello Don, Is there a way to handle restarts in DSC? I mean, 1 restart is fine, 3 is overkill. I can redo the package to "/quiet /features OptionId.UserStateMigrationTool...
View ArticleReply To: Installing ADK 8.1 with DSC
If the package itself is restarting, no, DSC can't override that. The Package resource is designed to accept a return code from the EXE, indicating that a restart is requested, but if the package...
View ArticleReply To: Installing ADK 8.1 with DSC
Thank you, its actually not that bad. The system doesn't reboot, just DSC says reboot pending and that's it. After changing package to what I wrote earlier DSC successfully applies configuration...
View Article