Reply To: EnhancedHTML2
It's definitely in a folder along with the ebook on our OneDrive. I just checked – it's at https://onedrive.live.com/?cid=7F868AA697B937FE&id=7F868AA697B937FE!113. The book isn't hosted on a...
View ArticleReply To: EnhancedHTML2
Thanks for the quick reply Don! Don't know how I missed that the first time. -Austin
View ArticleReply To: looking for guidance regarding html reporting
Use Select-Object: $ChromeOutcome | Select "Computer Name", "Install Directory Deleted", "Application Directory Present?","Correct Master_Preference File is Present?" You might want to consider...
View ArticleReply To: looking for guidance regarding html reporting
If you need your script to support PowerShell 2.0, then you can use the Select-Object cmdlet to reorder the properties, as Rob pointed out. If you don't need 2.0 compatibility, I prefer to use either...
View ArticleReply To: Powershell network drive Get-ChildItem issues
Do you get all of the files if you execute the following code: Get-ChildItem -Path NETWORKPATH\*.* -Recurse -Force Or do you still only get some of the files?
View ArticleReply To: Powershell network drive Get-ChildItem issues
First, I would remove "\*.*" at the end of NETWORKPATH. Second, are sure you have access to all the shares and all the subfolders in \\NETWORKPATH\ ? Also, if you pipe the first part of your command...
View ArticleReply To: Powershell network drive Get-ChildItem issues
@Alexander the -force option doesn't change the results @Mathieu removing *.* causes the whole command to return nothing. Additionally, I've run this command as an admin and not as an admin under my...
View ArticleReply To: select object from a pipline and run it
actually, it was just a learning exercise with selecting objects. a more practical way to do it, would be to just copy paste the command name from the list
View ArticleReply To: Powershell network drive Get-ChildItem issues
Try this: Get-ChildItem -Path NETWORKPATH\*.xlsx -Recurse | Where-Object {$_.CreationTime -ge '06/01/2014'}
View ArticleReply To: select object from a pipline and run it
You might be thinking of Where-Object, which is designed to remove specified objects from the pipeline and pass along what's left. Select-Object is "select" the way SQL uses the term. You're not...
View ArticleReply To: Changing DNS servers in static configuration
Ah! That got me on the right road. I actually had to add the line $newDNS = $DNS.Split(" ") | Where-Object {$_ -ne $removeAddress} to the script since it was taking $DNS as just one string and not...
View ArticleReply To: Powershell network drive Get-ChildItem issues
@Mike, this gives me the same result whether I put in the -Recurse option or not. It only shows me the xlsx files in the root that match the creationtime parameters
View ArticleReply To: Powershell network drive Get-ChildItem issues
gci -path PATH -recurse | where {$_.extension -match "xlsx"} OR gci PATH\*\*.xlsx -recurse This is what you are missing. If you define the file extension in the get-child item it is only displaying...
View ArticleReply To: Powershell network drive Get-ChildItem issues
I assume that you're using PowerShell 2.0. The behavior of Get-ChildItem is quite different on current versions. What worked for me in testing (on PowerShell 2.0) was to remove the \*.* portion of the...
View ArticleReply To: Powershell network drive Get-ChildItem issues
Agreed. I was way off. Dave's text returns the correct contents of both the named directory as well as the subdirectories.
View ArticleReply To: Powershell network drive Get-ChildItem issues
gci -path PATH -recurse | where {$_.extension -match "xlsx"} was the silver bullet to all of this. Thanks for everyone's help, double thanks to Robert for the answer. As this script has already been...
View ArticleUsing Package Resource to Install NodeJS Returns 1603
Here's my (first) DSC script: param( [string[]] $ComputerName = 'localhost' ) configuration InstallNodeJS { param( [string[]] # The name of the computer(s) to install node JS. $ComputerName ) node...
View ArticleReply To: Using Package Resource to Install NodeJS Returns 1603
It looks like the installer is expecting to be run only in the context of a logged-on user – it's trying to create per-user shortcuts. That's failing, because it isn't being run interactively by the...
View ArticleReply To: Using Package Resource to Install NodeJS Returns 1603
NodeJS installs to C:\Program Files\nodejs . After Start-DscConfiguration fails, that directory does not exist. When I install myself, it does. Looks like I'm filing a bug with the NodeJS people.
View ArticleReply To: Using Package Resource to Install NodeJS Returns 1603
It's likely not appreciating being run without user context. That's a not-uncommon problem. I'm not *sure* DSC is going to prove to be a wonderful software deployment mechanism, at least with the...
View Article