Reply To: New DirSync Module
I think the real problem is that the module import is hanging – you might try importing it with -verbose and see if you get any details about what it's doing. Otherwise, tearing into the module and...
View ArticleReply To: New DirSync Module
It's always the little things you forget about while troubleshooting. Thanks for the "verbose" reminder. Here is where the script is getting stuck: PS C:\Users\username> Invoke-Command...
View ArticleReply To: New DirSync Module
So, something in ImportModules.ps1 is breaking it. You're going to need to open that script and see what it's doing that might be problematic in a remote session.
View ArticleReply To: IIS Management Service Log Location
I finally figured it out. After changing the directory manually the registry location either populated or (more likely) became more obvious to me. To change the logging directory I modified the...
View ArticleReply To: Getting contents of a csv and for each line, search a like or...
Thank you, we are having on-boarding discussions (another story) currently, and I will be using all of this. I had no expectations from the forum, and wow. Thanks for all the help.
View ArticleReply To: Powershell 2.0 write back to xlsx.
It's been my experience that, if you can get away with it, it's MUCH easier to read/write to a CSV vs. using a COM object to manipulate an Excel file.
View ArticleReply To: Powershell 2.0 write back to xlsx.
I agree but the original xlsx has more going on that csv won't allow. formulas, tables with dropdowns to pick usertype etc.
View ArticleUsing dsc – how can you deploy files related to existing services?
I am looking into using DSC for application deployments. At the moment, we have a set of scripts that save the current start mode and state of all application services and then stop and disable all...
View ArticleReply To: New DirSync Module
Your the man!!!! I got it. Here is what I found: Step 1 – turned on "-verbose" and found that it was hanging at dot-sourcing the file Step 2 – ran each command on the dot-source'd file and found this...
View ArticleReply To: Using dsc – how can you deploy files related to existing...
That's what the File resource does ( http://technet.microsoft.com/en-us/library/dn282129.aspx ). You can specify a SourcePath, which will be the location from which to copy each file. Note that by...
View ArticleReply To: Using dsc – how can you deploy files related to existing...
There is also a Service resource. So, what you can do is to leverage the Service and File Resources using the DependsOn Property so that it stops the services, copies the files, and then starts the...
View ArticleReply To: Using dsc – how can you deploy files related to existing...
That would be DependsOn = "[Service]StopService1″ Loving the new formatting plugin, but i'm not sure why it keeps mangling closing quotation marks (both single and double) in so many cases (but not...
View ArticleReply To: Export CSV Cmdlet goes to infinite loop
Seems to be an issue with pipeline input for Import-Csv. I can replicate the issue. The issue doesn't occur when I provide the items to Import-Csv via parameter input instead of pipeline input....
View ArticleReply To: Using dsc – how can you deploy files related to existing...
Jacob Benson wrote:There is also a Service resource. So, what you can do is to leverage the Service and File Resources using the DependsOn Property so that it stops the services, copies the files, and...
View ArticleReply To: Using dsc – how can you deploy files related to existing...
Yeah, the scenario outlined above would be less than ideal for a Pull server scenario. What you could do is have the File resource check the Checksum of the files to be copied first, and then do the...
View ArticleReply To: Using dsc – how can you deploy files related to existing...
That's a good point. Whether you're using a Push or Pull server doesn't really matter, if your LCM is set up for ApplyAndAutoCorrect mode, it'll be constantly stopping and starting the service. Even...
View ArticleReply To: Export CSV Cmdlet goes to infinite loop
As long as you exclude your output file from Get-ChildItem, I suspect it'll work either way. ls -n *.csv -ex OneWorldFile.csv | %{ ipcsv $_} | epcsv OneWorldFile.csv -NoTypeInformation
View ArticleReply To: Problem setting up dsc
I gave up and installed the latest WMF 5.0 drop and all works a treat. I am loving DSC but there's a lot to learn!
View ArticleReply To: Problem setting up dsc
Was that server built from MSDN media? If so, you need to make sure to install KB2883200; it was released after the MSDN builds went up, but is already incorporated into the GA downloads.
View Articleare begin block variables not global?
I'm having a problem in one of my scripts and a variable is not being seen after the end block closes. I had assumed that all my variables I setup in the begin block were global. Is this not the case?...
View Article