Need to use -credential in get-wmiobject

Hi,
I would like to remotely enumerate printers on our 2012r2 print server from a Windows 7 box. I am logged into the Win7 box with a domain account that is in the local admins group on the print server. When I:
  get-wmiobject -class "Win32_Printer" -computer printserver.college.edu
I get the dreaded 0x80070005 access denied. If I add "-credential DOMAIN\user" (where DOMAIN\user is the account I am already logged into the Windows 7 box with) and enter my password when prompted, it works fine (so I am sure DOMAIN\user has the
proper authority on the print server to do this). I've tried this from the PowerShell console/command line as well as in the ISE with the same results.
What's going on here? Thanks, Tony

Hi
should work
$Admin = "[email protected]"
$Password = ConvertTo-SecureString -AsPlainText 'EnterYourPassword' -Force
$Credential = new-object -typename System.Management.Automation.PSCredential -argumentlist $Admin, $Password
Get-WmiObject -List -ComputerName "$SCCMServerName" -Namespace Root\SMS\Site_"$sitecode" -Credential $Credential
Seidl Michael | http://www.techguy.at |
twitter.com/techguyat | facebook.com/techguyat
We already know that specifying credentials works, the question is why this server is requiring creds.
You may be posting in the wrong thread.
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing)

Similar Messages

  • Do I need to use javascript to get a text field in a PDF form to aut fill with current/today's date?

    I have a form for booking appointments and would like the date field to automatically fill with
    today's date and to print. I have set the text field's format to "Date" and when I place the cursor into the
    date field, today's date shows. It disappears as soon as I tab to the next field.
    Does this action require a javascript script to fill and print today's date? If so, where do I find that?
    Or is there another way to format the text field (besides typing today's date) to get the current date?
    Thanks.
    Ali
    using iMac 2.93 GHz Intel Core 2 Duo 8 GB | OS Snow Leopard 10.6.8 | Acrobat Pro 8

    Thank you GKaiseril!
    From the examples by Chris Dahl, I edited the script in the text field editing dialog to reflect the title I had given the field. That fixed the problem of today's date disappearing as soon as I tabbed to the next field.
    How do I choose for document level or page open script? I would like it to insert the date upon opening the document.
    Thanks again.
    Ali
    NOTE: I found the answer within Chris Dahl's tutorial... path is for Acrobat Pro 8: Advanced>Document Processing>Document Javascripts

  • Comcast email doesn't work with firefox 26. I can't get a full inbox, get to my preferences to change, drop downs need to use arrows to get to

    firefox 26 doesn't work with comcast email. won't keep me signed in; won't show whole inbox in either full or lite; won't allow me to get to preferences; drop downs only work with arrows. I could just keep going.
    Earlier this week they worked fine.

    Be sure to delete the login.comcast.net cookie, it is not near the other comcast and xfinity cookies.

  • How can I get the 23 July update to load onto my iPad. I haven't been able to access my documents or work for weeks and need to use it. Has anyone else had similar problems?

    How can I get the 23 July update to load onto my iPad. I haven't been able to access my documents or work for weeks and need to use it. Has anyone else had similar problems?

    Hello Arthur,
    Thank you for the reply.
    You were correct that deleting the app and reinstalling it was the only thing to make it work but unfortunately I lost all the documents I made, even though they were backed up to iCloud before i deleted the app. At the same time as deleting pages I had to delete keynote and numbers too, so I've lost all the documents in them too.
    The mb of data which was assigned to each programme in iCloud has reduced, so. I guess they are gone for good. Is there any other way to reaccess them?
    Not your fault but I am a bit fed up the the iPad. I have lost work that I've done and have no other copy apart from what was in iCloud, as I don't have a printer and couldn't email them too myself as I couldn't get into the programme and  i've also got episodes of tv series I purchased that I can't download and albums that are half downloaded with songs missing, so I feel a bit swindled out of time and money and am going back to DVD ,  pen and paper and CDs .
    Instead of using iCloud I guess the only way to make sure I don't loose any more documents it to email them to myself each time I save them on the iPad. Is there anything else you could suggest please?
    I don't have any other apple products apart from iPods, so I can't access the iCloud on anything else can I?
    Thanks
    Amanda

  • Hi, just need to know how to get my music, video, pictures and apps form my iPhone to my new laptop as the old computer, which I used before was stolen. I only have my phone left and if I try to conect it to my new laptop it's trying to delete everything.

    Hi, just need to know how to get my music, video, pictures and apps form my iPhone to my new laptop as the old computer, which I used before was stolen. I only have my phone left and if I try to conect it to my new laptop it's trying to delete everything.

    I have also noticed all my settings won't stay set, example....I removed the check mark from "third party cookies", the when I close Firefox and reopen the check mark is back, also my tool bar has screwed up....can't reset, been having trouble the up grade.

  • I have always paid for apps with a credit card and now need to use an app store card but I can't get past the point where it keeps wanting my credit card updated.  And can't used the app card number.  Any advice???

    I have always paid for apps with a credit card and now need to use an app store card but I can't get past the point where it keeps wanting my credit card updated.  And can't used the app card number.  Any advice???

    I do NOT like using my credit card if I don't have to, and I went out of my way to go buy an Apple gift card, which I successfully redeemed into my Apple account. However, when I use the Apple "Cards" app, it will not let me use anything other than my credit card. I tried purchasing a card, hopefulling it would come out of my Apple store balance, but no such luck -- it came out of my credit card.
    Apple is becoming more like Microsoft every day.

  • HT4407 When installing Windows 7 using Bootcamp, I get message: "Need 64-bit Windows Installation USB drive or DVD."  I thought my install disk was for 32 or 64 bit.  What does this mean?

    When Installing Windows 7 using Bootcamp, I get message:  "Need 64 bit Windows installation USB drive or DVD."  What does this mean?

    It means you need the 64 bit Version of Windows on a USB stick or DVD.

  • How do I get into my trophy if I forgot password?  Need to use it because my iPhone face cracked and I need to use my Trophy until my new iPhone comes in, but I forgot the passcode, as I haven't used it for over a year.  Help???

    I need to use my old Trophy phone for a couple of days until I get my new iPhone, but I forgot my passcode, as I haven't used it in over a year.  How do I get in?

        Let's get your phone unlocked, pb1441! When the passcode is forgotten on the HTC Trophy, a Factory Data Reset would need to be done. Here is a link with the steps http://vz.to/1ofEiHx. Be sure to follow the ones listed under Alternate Reset Method.
    TanishaS1_VZW
    Follow us on Twitter @VZWSupport

  • I need to use an hp 6215 printer with my mac book pro.  the driver installation disk doesn't work.  where can i get a driver that will work?  i use OS X

    i need to use an hp 6215 printer with my mac book pro.  the driver installation disk doesn't work.  where can i get a driver that will work?

    With the Lion it is essentially unnecessary to resort to external driver disks. What's more, most of those disks are incompatible with the OS and should not be used. The system already carries a wide variety of printer description files (aka PPDs, which is what modern printing systems use as "drivers") for a lot of brands. And there was an HP printer update just two days ago.
    Just checked in mine and did indeed find that the HP OfficeJet 6200 Series, with or without Fax, is covered with the latest update.
    So just go thru the motions of creating a proper printer instance:
    Make sure the Mac "sees" the printer on the network.
    System Preferences / Print & Scan
    Click on the + button on the left column
    Select the appropriate type of printer, will use IP for the rest of this
    Select HP Jetdirect - Socket, default for HP network printers
    Type the IP address or look it up
    Name the printer for easy identification on the print dialog
    Let the Mac identify the printer model or manually choose the driver
    Click Add.
    Once the instance pops up in the list, can click on Options & Supplies for further config.

  • When I use my Delete key to delete a song, I get a pop-up.  This is OK, except the Keep File button is defaulted and I cannot tab or arrow to the "Move to Trash" button, and so i need to use my mouse.  How can I do this only with keyboard?

    When using iTunes on my iMac, I use my Delete key to delete a song and I get a pop-up.  This is OK, except the Keep File button is defaulted and I cannot tab or arrow to the "Move to Trash" (or Cancel) button, and so I need to use my mouse.  How can I do this only with keyboard?

    Huh.. Interesting. I went back to check these proceedures and found there is a difference between using the return key or the space bar as the action command.
    tabbing the blue ring moves the selection and then spacebar takes that action. The return key takes action of only the blue collored button.
    .... learn somting new every day, even if it is somthing I previously forgot

  • What is needed to use iPhone 5 musicdock with iPhone 4S and getting iPhone 4S battery charged. Any adapter yet?

    What is needed to use iPhone 5 musicdock with iPhone 4S and getting iPhone 4S battery charged. Any adapter yet?

    Not by Apple but see this
    SANDBERG 440-45 Adaptor 30 Pin to Lightning Connector
    Try Amazon in your Country

  • My iMac is home to a 400GB photos library currently syncing to a 500GB iCloud a/c. My 3 MacBooks have much less space which I need and seems to be getting used up fast as it syncs.

    My iMac is home to a 400GB photos library currently syncing to a 500GB iCloud a/c.
    My 3 MacBooks have much less space which I need and seems to be getting used up fast as it syncs.
    How do I reduce the size of the library on the MacBooks - I have already set optimise in preferences but it is using up the space available.
    What happens when I download a movie - will it automatically reduce the size of the photos library or am I screwed?

    JasonFranks wrote:
    OK, had already done all that. My primary concern is whether the system will be fooled by the fact that it will take some time for the 400GB to upload and for the MacBooks to know what volume they are dealing with. It's currently at 100GB after over a day. I guess if it fails I can disconnect from the cloud on the MacBooks and delete the library, right.
    If I was transferring data onto the hard drive could it really optimise that quickly?
    What is your basis for trusting the magic - have you experienced this?
    I've updated my Macs, my wife's Mac, her fathers Mac and my mothers Mac.
    It worked everytime, but it takes a while (days or weeks if your library is large)

  • I need to use Adobe Flash PLayer for an online conference.  I get a pop-up blocked message.

    I need to use Adobe Flash PLayer for an online conference.  I get a pop-up blocked message. I have already unblocked pop-ups as far as I can see.
    Maybe I'm missing something?

    After installing Flash, reboot your Mac and relaunch Safari, then in Safari Preferences/Security enable ‘Allow Plugins’. If you are running 10.6.8 or later:
    When you have installed the latest version of Flash, relaunch Safari and test.
    If you're getting a "blocked plug-in" error, then in System Preferences… ▹ Flash Player ▹ Advanced
    click Check Now. Quit and relaunch your browser.

  • How to get OpenGL 2.0 on Windows 8 ? I need to use it.

    I need to use OpenGL 2.0 or Higher because I get some appication. But this appication show error windows "Current OpenGL version 1.1 is too low, 2.000000 expected". So I want to get OpenGL version 2.0 or Higher. How to
    get it ?
    Please answer me, Thanks.

    Use this procedure
    http://hqtips.com/pc/windows/how-to-fix-opengl-error-on-windows-8/
    http://indonetworksecurity.com/windows/fix-opengl-error-in-windows-8.htm
    Rgds
    Milos

  • Do I need to uninstall my trial version of CS6 and install using disk to get After Effects?

    Do I need to uninstall my trial version of CS6 and install using disk to get After Effects?

    No, the trial version is identical to the purchased version in every aspect other than the time limitation. Besides, the boxed version will probably be LR 4.0 and then need to be updated. To cancel the time limit simply supply the registration key from the back of the box in Help/Registration.

Maybe you are looking for

  • NPSWF32.dll error when installing flash player

    I've been trying to install flash player but I keep getting the same error when I try: Error opening file for writing              C:\windows\system32\macromed\flash\NPSWF32.dll When I ignore that one I get another error Error opening file for writin

  • A Batch Input to modify status TRAI of an activity

    Hello and thank you in advance for your help. I^ve created an ABAP program in order to create a batch Input that could modify the Status TRAI for an activity. I upload a file with a list of project, activity and a X to validate or no the status TRAI.

  • Inbound emails stripped of .FAX attachments

    G'day all, I'm on a 620 system up to basis patch 60. When an inbound email contains an attachment with extension .FAX the attachment disappears!! Any other extensions are fine. The .FAX files in my case are actually .TIF files but the software create

  • Can anyone help with a formula for either of these?

    Right... Basically I have a table called FALL_IN FAL_REVERSION_ID within this table is the field that links it to other tables. within this table are 5 fields: FAL_ID FAL_REVERSION_ID FAL_PROCESS_ID FAL_PROCESS_DATE FAL_PROCESS_DETAIL The first funct

  • Dbworker database connection port

    Does anyone know how to change the port that dbworker connectts to a specific external database on ?.  We have a requirement to connect to a specific MS SQL instance on a non standard port.  I have tried changing it in the router registry and also in