IIS Management Service Log Location
Hi all, I am new to PowerShell and scripting in general, however I've been learning in order to assist with my administrative duties. One of those is installing and configuring IIS. One of the tasks...
View ArticleReply To: get-aduser emailaddress to proxyaddresses
Get-AdUser -LDAPFilter "(emailaddress=*)" -Properties emailaddress, proxyaddresses | EmailAddress isn't an LDAP field, thus can't be used for LDAP queries (i.e. use mail).
View ArticleReply To: DSC "Consistency" Task running "Inconsistently"
Sorry… Here is the Warning: "Task Scheduler did not launch task '\Microsoft\Windows\Desired State Configuration\Consistency' as it missed its schedule. Consider using the configuration option to start...
View ArticleReply To: DSC "Consistency" Task running "Inconsistently"
That's a pure Task Scheduler problem, not DSC per se. Something kept the task from running – possibly the server was busy, sleeping, etc. as it notes, you can reconfigure the task to run as soon as...
View ArticleReply To: IIS Management Service Log Location
Look at the Web Server (IIS) Administration Cmdlets in Windows PowerShell (Import-Module WebAdministration) http://stackoverflow.com/questions/4626791/powershell-command-to-set-iis-logging-settings
View ArticleNew DirSync Module
We upgraded to the latest and greatest DirSync version. As I soon found out, the old way of scripting and executing the replication via "DirSyncConfigShell.psc1″ has been replaced with: import-module...
View ArticleClass Requires Value of type MSFT_Credential
I am writing (or trying) to write a Custom Resource that uses a Credential parameter. The Test-Schema and Test-Resource cmdlets all return true. However, when I go to invoke the Configuration, I get...
View ArticleReply To: variable outupt in email formatting
Boom, that is the trick. Removing the BodyAsHTML. Of course, now I need to remove the HTML tags, but thats a minor issue. Is there some required reading on "body as html" that might help me in the...
View ArticleReply To: Class Requires Value of type MSFT_Credential
I was just messing around with this same exact thing today. It looks like you're passing the credential to your configuration, but not to the resource that needs the credential. Have you tried:...
View ArticleReply To: Modularizing DSC configs
Thank you all very much for your help. We will be looking into it and come back to update this post with our experience. Best regards Stig
View ArticleReply To: IIS Management Service Log Location
You can also quickly set individual website log gin locations using something like this: set-ItemProperty -Path IIS:\Sites\TestWebSite -Name Logfile.directory -Value 'c:\whatever'
View ArticleReply To: Getting contents of a csv and for each line, search a like or...
Wow. Thanks for the reply. I've been out sick. The csv is simple. We receive an excel spreadsheet from HR, I remove all the junk, and keep the name of the employees in 1 column. The name they give us,...
View ArticleReply To: Getting contents of a csv and for each line, search a like or...
Import-csv file.csv | select columnIcareAbout That should grab just the column you want without you having to do the cleanup manually. That becomes a property of an object.
View ArticleReply To: Getting contents of a csv and for each line, search a like or...
Thanks again. That works great. Here is where I am at. I can do a get-aduser -filter {surname -like "*bruin*} | FT Name I get the results desired searching for a last name like bruin. But when I add...
View ArticleReply To: Getting contents of a csv and for each line, search a like or...
There is no asterisk after your $UserObject. While you are still testing, you can output to the console so you validate the search is valid, something like this: ForEach ($UserObject in $UserObjects)...
View ArticlePowerShell script for Office 2013 Network Installation
I need help with configuring a PowerShell script for a workplace project that will allow a network install, configure, and uninstall of Office 2013. We have three files relevant to an Office 2013...
View ArticleReply To: Getting contents of a csv and for each line, search a like or...
Also bear in mind that once you format an object, it isn't usable for anything else. So if you're piping that elsewhere, it won't work out.
View ArticleReply To: Getting contents of a csv and for each line, search a like or...
You guys are amazing. This all worked. For some reason I couldn't get the last one to work correctly, and now I did. I'll post the completed script in a bit.
View Article