Quantcast
Channel: PowerShell.org » All Posts
Browsing all 13067 articles
Browse latest View live

Reply To: Excel VLOOKUP function

Many thanks to you both. Tore – I didn’t think about doing that. However I’ll bear that idea in mind for future tasks. Dave – yes – Range.CurrentRegion did exactly what I needed. I ended up using...

View Article


Excel automation (adding a table style)

Hi All, Does anyone know how to add a table style to a spreadsheet in Excel 2010? Essentially, I want to select the used range, click ‘Format as table’ and then select ‘Table Style Medium 12′ (and my...

View Article


Reply To: Excel automation (adding a table style)

According to the Macro Recorder, something like this (this is in VB, of course; you’ll need to adjust the syntax for PowerShell): Sub Macro1() ' ' Macro1 Macro ' '...

View Article

Reply To: DSC Observations

Looks like that was the problem. I had run Windows Update on the DSC pull server, but hadn’t patched the client yet. Installing patches (possibly the rollup you mentioned; don’t know for certain)...

View Article

Reply To: DSC Observations

It depends a bit on the install media you use. The VL ISOs have the patch; the MSDN MAK ISOs don’t. But if you’re deploying a new image and doing it the Microsoft way, then you’re starting with a...

View Article


Reply To: Querying Inner Text with Multiple Attributes

Thank you for the tip on Powershell 2.0 – yes I am using 2.0 and I made my adjustments and I am now getting data back, unfortunately, I am still unable to get JUST the data for the current node....

View Article

Reply To: Querying Inner Text with Multiple Attributes

Ah, I missed that. An xpath expression that starts with “/” searches from the root of the document (apparently even if you call it on a child node rather than the document’s root). Assuming you want...

View Article

Reply To: Querying Inner Text with Multiple Attributes

Dave – YES! that is what I needed, it works fine now. Thank you very much for the quick and helpful responses…

View Article


Reply To: DSC Observations

Don Jones wrote: Systems with WMF 4 installed are fine. Confirmed. I had a Server 2012 VM that was behaving the old way, but I’m pretty sure I had installed the WMF 4.0 preview version on that one. I...

View Article


Reply To: Rename-Computer error

when I ping it is by name

View Article

Reply To: DSC Observations

You might read through “The DSC Book.” A lot of this is covered. For example (although not yet in the book), the refresh intervals have a set of rules around them, with one needing to be a certain...

View Article

Reply To: DSC Observations

And I do believe I have the 15/30 minimum doc’d, although I’m not sure I’ve committed that copy. Gonna check in a minute.

View Article

Image may be NSFW.
Clik here to view.

Reply To: DSC Observations

I’d skimmed through the book in an earlier version; just read through it a little more closely. There are a few references to the KB2883200, though they were in different contexts. Might be a good...

View Article


Posh Function – Schedule it as a Task?

Hello I am trying to schedule a function that checks disk space on servers. To run the function I am likely not doing it the best way as I run: 1. import-module .\get-freespace.ps1 2....

View Article

Reply To: Security group to computer object?

After futher discussion we decided to simply place the group on the ou and allow permissions to filter down. This wasnt ideal as in this scenario it is applying read permissions for this to the...

View Article


Reply To: Posh Function – Schedule it as a Task?

http://msdn.microsoft.com/en-us/library/dd878310(v=vs.85).aspx http://stackoverflow.com/questions/341372/how-do-i-create-powershell-2-0-modules Have you searched the web for your answer? You basically...

View Article

Reply To: Posh Function – Schedule it as a Task?

In your case it would probably be like this. . . md $ENV:USERPROFILE\Documents\WindowsPowerShell\Modules\Get-Freespace The open that folder in explorer. . . invoke-item...

View Article


Reply To: Posh Function – Schedule it as a Task?

I think you’re probably trying a few random stuff and getting stuck :). The Import-Module command does expect a .PSM1 file. While Vern is right in that module files can be located in specific...

View Article

Reply To: DSC Observations

It was probably the skimming :). I don’t have a “blink” attribute in the doc, but it does have a callout that says: On Windows 8.1 and Windows Server 2012 R2, make certain that KB2883200 is installed...

View Article

Blank entry in hash table or somewhere?

Hello Don and the greats of PowerShell. I’m trying to figure out what is wrong with one of my first full PowerShell functions. I want to gather several WMI properties from remote workstations. As...

View Article
Browsing all 13067 articles
Browse latest View live