System.Windows.Forms.SaveFileDialog not working under Windows 2008 R2 Server

I am using Windows Server 2008 R2 (64-bit) that is been virtualized with Hyper-V and it is being used as a "Remote Desktop Server".
I am trying to use this PowerShell code that will open a "Save-File-Dialog" box to select the PDF file and send it to my "batch" file for scanning.  This code works great on my Windows Vista machine and my Windows 7 32-bit machine
but I cannot get it to work on the "Windows 2008 R2 Server (64-bit)".  It will not come up with any window at all and it will not produce any errors at all, so I can't exactly google for this issue.  I am using PowerShell 2.0 from 2009.
Any ideas?  I tried it from an Admin account and a regular domain users and neither worked at all, no errors, no window, no nothing.
*** Update ***
    I took Out-Null out and I received this...
  GAC    Version        Location
True   v2.0.50727     C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll
I then checked the path and the DLL file was in there and it had read and execute permissions for Domain users and Administrators and the window still won't pop up... 
Here is the entire code in question.....
# Uses the dot net assembly to give the users a Save-File-Dialog box so they can decide where to put the pdf file
Function Get-SaveFile($initialDirectory){
[System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") | Out-Null
$SaveFileDialog = New-Object System.Windows.Forms.SaveFileDialog
$SaveFileDialog.initialDirectory = $initialDirectory
$SaveFileDialog.filter = "PDF files (*.pdf)| *.pdf"
$SaveFileDialog.ShowDialog() | Out-Null
$SaveFileDialog.filename
# open dialog box to select the .nessuss file.
$OutputFile = Get-SaveFile
# User selected where they want to put the scanned.pdf file and it will automatically set it to .pdf for them
start-process Scan $OutputFile

I ran the code you have in your function on a Windows 2008 Standard server, and it seems to be hanging on the line
$SaveFileDialog.ShowDialog()
| Out-Null
It just sits there and nothing happens, but if I run it on my Windows 7 machines, it runs without any issues. So it seems like the dialog opened, but behind the scenes, and is waiting on the user, but since it doesn't open, the user can't do anything.
If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.
Don't Retire Technet

Similar Messages

  • Rocketfish Bluetooth Keyboard RF-BTKB2 not working under Windows 7 64 bit

     Rocketfish Bluetooth Keyboard RF-BTKB2 not working under Windows 7 64 bit
    Anyone had successs in this or another Bluetooth Keyboard after a bit of a struggle?  What did you do to get it working?  When I Add Device in Bluetooth it sees the keyboard but enlessly scans for it when I try to select and connect.  The Rocketfish Bluetooth mouse worked just fine.

    My friend, i have both, the bluetooth mouse and keyboard here that your talking about. and the keyboard was a struggle to pair with the windows 7 64 bit.... i think i spent 2 days working with it. and i didnt try anything special, i just kept trying to pair
    it, and unplugging the dongle and working with it... and after a while. it worked... Lately though, i have been looking into getting a wired mouse and keyboard becuase of the delays and sleep time i have with my current keyboard(rocketfish). supposidly there
    is a way around the delays but it disables all the options on your keyboard. IE the media buttons, and web browsing features. and my mouse keeps dieing off too....
    Also, after researching these products more, i found that alot of people experienced similar problems with them, Being delays and mouse failure. Even with fresh batteries and all. The products werent meant to be used long term(2-3 years) for extensive use...
    I dont know about you but i thinki paid 100 bucks for the pair so thats only 25 bucks a year... Which is kinda silly considering i coulda got a better one that wont cough up on me.
    If anyone reading this finds a good wireless keyboard that doesnt delay, and a mouth that doesnt delay...(my biggest concern). Please mention it. i am very interested in.

  • AC97 onboard sound DOES NOT WORK under Windows 2000

    Just an FYI, the AC97 Audio on your MSI mainboard will not work under Windows 2000, for which the AC97 hardware is not certified. If you try to use it, your audio output will be intermittant at best and will crash your audio applications at worst. A maddening and disheartening problem for people like me who didn't realize the problem existed and spent many hours trying to getting it to go away.

    hiya -
    I am have this trouble as well!
    Are you useing professional, or Advaced server?
    I have done EVERY kind of update... so dice.
    *sniff *

  • Wifi not working under windows 8.1 with Bootcamp

    Hi, I have installed windows 8.1 under bootcamp. it seems to work fine however the wifi connaction is not existing under windows. therefore i can only connect via ethernet. Anyone an idea how to solve it? Thx

    Hey there,
    I don't know if it's still interesting for you, but I've had the exact same issues. The only solution, as far as there is no official change from Apple, you can install Windows 8.0 via Bootcamp with official drivers for Bootcamp (wifi works great) and then install the upgrade to 8.1 as Windows still uses the former installed drivers from Win 8 on 8.1 as well.
    Hope that helped, 8.1 runs even better on my MB Air than Mac OS 10.9 :/

  • Sound blaster pro 2 (ct1600) not working under windows

    Hi,
    i have a little problem... i have a Creative Sound Blaster Pro 2 (PCI) card (ref.: CT600) that WAS working under windows 98SE. Now i have installed windows XP pro SP2 and i have no sound.
    after that i have tried the procedures you describe on the sticky above BUT... still no sound. after a few hours of search i came to understand that i'm not the only one with this problem and taht it's driver compatibility related "SO" i decided to search creative labs for a solution and i find a driver that suposedly would work and (another but...) still no sound...
    what can i do? can you provide some info OR a driver download link? i would apreciate the help...
    Thanks in advance =)
    DaRk_f0x
    PS: sorry for my bad english if i made some mistake... i'm portuguese... =)Message Edited by DaRk_f0x on 02-6-2005 0:59 AM

    and isn't there any way of getting the sound cart to work unless having to buy another?
    i'm asking because the system locates the card, instals windows drivers but there's no sound although the card is there! well guess i'm gonna search some sites for legacy support workarounds...Message Edited by DaRk_f0x on 02-6-2005 02:2 AM

  • X230T camera does not work under windows 8

    Hi!
    Is your camera working under Windows 8?
    Mine is not. It used to work some time ago, but even then the driver was instable. Now, since a few weeks, it seems not to work at all anymore. Reinstalling the driver does not help.
    This may ba a hardware or a software issue, that's why it is important for me to know if yours is working.
    Thanks!

    As I wrote, I have tried to reinstall the driver without success.
    It should be a hardware problem if you are able to run the camera perfectly. Are you using a 64- or 32-bit OS?
    Thanks!

  • HT3492 mini displayport to vga adapter not working under windows 7

    i've read the article above. How can this firmware affect operation under Windows 7 OS? I have a dual boot system and tested several mini dp-vga adapter, all of them seem to either stop working after a while or doesnt work at all. i have a macbook pro 13"(early 2011) and a macmini i5 4gb

    I'm having the same problem. When I try to connect to the switch in our conference room (connecting both a flat panel display and/or a projector, both with much higher native resolutions), all I get is 640x480. This is a huge problem to using bootcamp, and I really need to get this to work. I was able to get a higher resolution 1280x800 on a separate, portable display, so I'm wondering if people have the problem with standalone projectors or only with projectors connected to some sort of switch, in my case an Extron MPX423A. I have also tried this in both Windows Vista (32-bit) and Windows 7 RC1 (32-bit), with the bootcamp drivers and the latest NVidia drivers, and the behavior is the same all around.

  • Addin does not work under Windows 2003

    Hello.
    I have a few Excel addins with forms and other objects that work fine on my desktop (Windows XP), where I have OO4O installed. Recently a user needed to start using these addins and I installed OO4O on a server using Windows 2003. The user (Windows XP also) connects to the server using Remote Desktop Connection. However when he uses the addins they do not work. The connection to the database is fine, I know that because otherwise some forms would not appear. The problem is when the user presses the first combobox of each form no data appears. If I enter just some text on that combobox, which enables a second combobox, then this second combobox works fine, I can see the database data. When the form allows me to press a button that runs a query I receive the message “Not all variables bound”.
    If anybody can help I would very much appreciated.
    Tks
    Octavio

    As I wrote, I have tried to reinstall the driver without success.
    It should be a hardware problem if you are able to run the camera perfectly. Are you using a 64- or 32-bit OS?
    Thanks!

  • Macbook pro (early 2008): Trackpad not working under Windows XP

    My Trackpad worked regularly under Windows (Bootcamp) and Mac OSx until some months ago my Motherboard had to be exchanged because of a fault function of the graphics card. When I started Macintosh after the Macbook pro was repaired the Trackpad worked regularly, but under windows the mouse didn't react to moving the finger or clicking. I reinstalled the drivers, but this didn't fix the problem.
    What shall i do now? Thank you for any advices.

    since my mac is year and two months old (funny, two months and you are screwed).
    Not if you had of purchased Apple Care.  You would have been covered for 3 years.
    What I would like to say to the Apple:
    This is not the place as Apple does not come to these forums. 
    These are user-to-user forums where everyday folk post "technical" questions and offer answers to each other voluntarily.  No one here works for Apple nor does Apple get involved in responding.  Not even sure if they "lurk."
    "Say" it here -
    Product Feedback

  • 32-bit Oracle ODBC Driver does not work under Windows 64-bit

    We have both Oracle Server 64-bit (10.2.0.3) and Oracle Client 32-bit (10.2.0.1) installed on the same Windows 2003 64-bit server.
    We can create and test 64-bit Oracle ODBC System DSN using 64-bit ODBC Administrator.
    We can also create a 32-bit Oracle ODBC System DSN using 32-bit ODBC Administrator.
    However, the "test connection" does not work:
    Unable to connect
    SQLState=IM003
    Specified driver could not be loaded due to system error 998 (Oracle in OraClient10g_home32)
    We need the 32-bit driver due to 32-bit applications acessing the local 64-bit Oracle server.
    How should we accomplish this?
    Thanks.

    I applied 10.2.0.3 path to Oracle Client 32-bit and now the error is different.
    This error message appears 3 times before configuring, creating or testing a System DNS:
    "An unsupported operation was attempted."
    I just click OK 3 times and then can configure, create or test the DSN.
    However the 32-bit application still cannot access Oracle...
    Yours.

  • MS6191 USB Not working under Windows XP Home.

    My usb ports on my ms6191 Mother Board stop working after about 10 minutes under Windows XP home edition. They work fine under 98SE and ME, any sugggestions any1?  

    Quote
    Originally posted by Itchy1976
    My usb ports on my ms6191 Mother Board stop working after about 10 minutes under Windows XP home edition. They work fine under 98SE and ME, any sugggestions any1?  
    Does you pc made by Tiny computers in uk if it is can you plase send me a copy of your bios as mine is damaged and I can't seem to find anywhere on the web
    Thank you
    Kuru

  • Photoshop CS5 updates not working under windows 8 64bit, updates download error

    I´ve changed from Windows 7 32-bit to Windows 8 64-bit. Since this point updates reported download error for all components. I´ve downloaded all updates und saved them. Report is still the same

    doing the cscleanertool helped. everything is ok but the update Pixel bender 2.5. this is still not working but i can live with it. the new Installation with files downloaded from Adobe was also unusable und i switched again to my cd´s. then everything was fine.
    thx for helping
    bye
    tom

  • Some  Mpeg 4 video files not working under Window 7

    I recently purchased a new PC running under Windows 7 OS. Obviously I have installed the latest version of ITunes and QuickTime player. I transferred all my music and video files from my vista laptop to the PC. The music files play fine using ITunes and the most recent music video files play ok too, but there seems to be a problem with the older music video files. When I try to play one of the older music video files, ITunes asks for authorization for the new PC to play the video each time I try to play the same video. ITunes grants authorization each time, but the video does not play, it shows that the video is playing on the progression bar but the music video is not displayed.
    I have tried to play the music video using windows media player, but windows media error message says that it doesn't support the format of the music video.
    I am perplexed as to what is going on; why will the newer music videos play through ITunes and not the older ones, and why doesn't windows media player support Mpeg 4 video files?

    This article says you need to convert the AOL account to an apple id.
    http://support.apple.com/kb/TS1299

  • Getting input from mouse-wheel: does not work under windows/IE

    Hi
    I have built an applet that extends JApplet. To it I have added a class that extends JPanel implements MouseListener, MouseWheelListener, MouseMotionListener.
    I collect input using the method
    public void mouseWheelMoved(MouseWheelEvent e){
    do stuff...
    I have build this on a mac and tested it in firefox and it works fine. But on xp/vista internet explorer, the applet does not respond to mousewheel input. On mac osx /safari it does not work either.
    Is there any solution to this problem?
    Best regards, Carlis.

    Just for luck, try setting the JPanel focusable.panel.setFocusable(true);If that doesn't make a difference, you need to post a [_Short, Self Contained, Compilable and Executable, Example Program (SSCCE)_|http://mindprod.com/jgloss/sscce.html] that clearly demonstrates your problem.
    db

  • Windows phone emulator not working with windows 10 technical preview 9926

    I recently updated my computer to technical preview 9926 and now when I launch the windows phone emulator in 2013 visual studio for windows. It says "Starting windows phone OS" for like 10 minutes. Then it gives me an error message:
    windows phone emulator is unable to connect to the windows phone operating system: The phone did not respond to the connect request. Some functionality might be disabled. And then it will boot up for a little and the home search and back
    button wont work and it will never deploy my app then it will crash and bring me back to visual studio. My hyper v is turned on I have checked all the network switches. The emulator used to work with the technical preview but ever since the newest update
    it stopped working. 
    Any help would be appreciated.
     

    Hi mavese,
    >>I recently updated my computer to technical preview 9926 and now when I launch the windows phone emulator in 2013 visual studio for windows
    Currently, Windows 10 is still in the Technical Preview stage, it is not official supported in this forum, and I would suggest you sending feedback using build-in way, please refer to this link:
    http://windows.microsoft.com/en-us/windows/preview-how-to#how-to=tab7
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • InDesign for Windows Vista

    I have seen that InDesign is only supported by Windows 7 and 8. Is there any chance to get a version for Windows Vista? Thank you

  • Shared Photo Streams not on all iDevices

    Hi Just set up a shared photo stream on my iPhone 4 with iOS 6.  Should this appear on all my other iDevices (iPad 3 with iOS 6 too)? It doesn't appear to be there.  Any ideas? Thanks Spencer

  • Could not execute auto check for display colors using command /usr/

    I am trying to Install Oracle 10g R2 on Solaris X86 32 bit I am connecting to system from my windows vista laptop through putty... I get the following error... $ ./runInstaller Starting Oracle Universal Installer... Checking installer requirements...

  • BPC 7.5 Upgrade - Unary Operator Issue

    We have been performing a large upgrade from a previous version of the software and are looking for some help on some of the issues with the upgrade. One of the issues we have been having is that some of our dimensions were using the property "Unary

  • Problems using creating Objects after Updating to 3.0.1

    Hi folks, the update from 2.0.1 or so to 3.0.1 in the 10g XE had brought up more new aspects and changes than expected... The - hopefully- last problem I encounter now is that I cannot create objects anymore in the SQL Workshop. If I try to create a