Inconsistent resolution of "."

powershell

    Next

  • 1. generic error with Get-WmiObject
    I've tried executing the following code on computers that are running XP, Vista, and 2003 server: get-wmiObject -class "win32_printer" It works on all of these except for one. On one server(, I get an error message that says "Get-WmiObject : Generic failure". I've spent a lot of time trying to find a solution to this, but so far nothing has helped. I'm running this on the server and not remotely and also successfully ran this on several other 2003 servers. Does anybody have a suggestion on how to get around this? Thanks.
  • 2. Lookup values
    Hello I have a long and horrible script and I am right at the end of it and am stuck. The situation is I have two csv files formatted like this: \\filepath\filename,username I run a compare on the file name to find all files that exist in both lists with the following command: compare-object $(import-csv users1.csv) $(import-csv users2.csv) -property "open file (path\executable)" -syncwindow 100 -includeequal | export-csv users3.csv This only compares the file names, exports the results back to a csv file. Now what i want to do is include the usernames from the original csv files. I cant find a way to run the compare-object that includes data in the output but not in the compare itself. What I think would work is to run some kind of lookup for the file column and to add another column to that csv file that will include the username from the previous file... like this in but in powershell code... Import-csv users3.csv lookup columnA in users1.csv add the relevent username to users3.csv Anyone got a solution if this is possible? Thanks!
  • 3. Simple regex question
    Hi I'm sure this is quite simple in relation to some Regex nasties I've seen Can someone please explain how I include the "\" in the following unfinished statement please? - it doesn't like the "\" in it's current format if ($split -notmatch "^BUILTIN\users"){ Thanks in advance -- XXXX@XXXXX.COM

Re: Inconsistent resolution of "."

Postby Lee Holmes [MSFT] » Sun, 20 Aug 2006 08:44:38 GMT

Hi Alex;

You're running into a side-effect of this: 
 http://www.**--****.com/ 

In our Cmdlets, we can leverage your current PowerShell path to resolve 
relative paths.  The .Net framework has no concept of the current PowerShell 
working path, so it (rightly) uses the working directory of the Process.

This is simply something to be aware of when using relative paths with the 
.Net framework.









Similar Threads:

1.Invalid Resolution or Resolution not Supported

I am currently running a school where I have just taken over the operation
of the complete IT section. We have this problem that nobody has seemed to
resolve or have even heard of before:

Excel documents are being held back by the win2k print server for "Invalid
Resolution" or "Resolution Not Supported". I have the server set up so that
it holds mismatched documents. We only use HP Printers (2100 and 8150's with
built in jetdirect cards)

These are the main points:

It is only Excel documents that do this.
It is not certain Excel docs, all of them do this.
It used to work fine on NT4.
We have tried using a standard HP LJ Plus and non - plus driver.
It works fine if the printer is local.
We have to have it set to completely spool the doc first.
IP's are static and not conflicting.
All other docs print happily.
We make the printer print in spool mode.
We use 2000 pro and Citrix and both of these cause this error.
All our servers for this are Dell Poweredge with win2k svr.

Please oh please can someone save the day. none of our external contractors
know why this is happening and we need to run reports in excel quite soon.

Thanks
Dan Walker
Network Administrator
Lord Grey School
Milton Keynes


2.Plasma screen resolution versus video board resolution

Hello all,

A simple question really: should the resolution of a plasma screen connected 
to a Media Center PC exactly match a resolution supported by the video 
adapter on the PC? For example; the ATI Radeon video board in an HP Media 
Center PC supports 1024 x 768 and 1152 x 864. What happens with both video 
modes if I use a 1024 x 1024 plasma screen?

In more general terms; what are the basic rules to follow?

Thanks,
Denis.



3.Monitor resolution failed - Forcemonitor resolution

Hello everybody,
today's problem I have met is about monitor resolution. I have a 
1600x1200 LCD panel that have to be forced in order to be set at that 
resolution (that is I have to ask for listing for non default resolution 
in winXP Pro). In order to obtain this whit XPe, I tried to add "Digital 
flat panel (1600x1200)" component to my target design, but fba failed to 
set the resolution:

21.06.42 -  [FBAChangeDisplaySettings] Settings: [1600, 1200, 32, 60]
21.06.42 -  [FBAChangeDisplaySettings] Settings not found!



How can i force the resolution?


Thank you in advance
Daniele

4.Resolution reverts to lower resolution on reboot

I have a Dell Inspiron 3800 laptop running Win XP Home.  Instead of using the 
laptop display, I have a Princeton 19" LCD monitor.  So I am running a single 
screen set-up.  My problem is this . . .

When the computer boots up, it displays at 1024 X 768.  I change it to 1280 
x 1024, the maximum resolution of the monitor, which XP happily accepts.  No 
problems there.  But when I reboot, the display settings change right back to 
1024 X 768.  So I have to increase the resolution every time I boot the 
system up.  It's driving me nuts.

If anyone can help me out, I'll nominate you for sainthood.  (A nomination 
from me may not count for much in heaven, but it's the thought that counts, 
right?)


WolfSoul

5.Inconsistent encoding

Hi there

I've created a Windows Media Encoder 9 Session file, that I've used to encode a short sample clip exactly the way I want it. The short sample clip is an AVI file transferred via Firewire from a MiniDV camcorder

I've tried using this exact same Session file to encode a longer (1 hour) clip, but it doesn't produce the same results. Specifically, the DV PAL 16:9 Pixel aspect ratio is working. The encoded WMV video displays as 4:3, eventhough I've told it to display as 16:9

Does anyone know why this is

6. Windows Media Player plays clips with inconsistent brightness!

7. Hardware License For This Content Is Inconsistent

8. Help with error message reading "The hardware license for this content is inconsistent"



Return to powershell

 

Who is online

Users browsing this forum: No registered users and 49 guest