C# remote powershell without explicitelly applying user & password (rather connection with current credentials)

Dear all,
I would like to know, how I can open a runspace to an Exchange Server 2013 WITHOUT explicitelly applying username and password (well - this works using basic authentication).
Following scenario :
- A (well patched) Win 7 Enterprise Client with Exchange 2013 Client Tools installed
- Logged in as (the) domain admin
- Using Exchange Management Shell I can administer Exchange WITHOUT entering username/password
- Using C# I cannot :(
Nothing helped (DefaultCredentials [even with Releasebuild], PSCredentials.Empty or null, tried All members of AuthenticationMechanism).
I wonder how Powershell itself does the thing....
There must be a way to connect with the current user credentials...
I you know, how this can be done, then provide a short snippet - please.
Please no links or something like "...try to use blablabla" - thanks :)
The thing that I would like to do is :
- configure a runspace for the exchange server (WITHOUT user/password)
- create that runspace
- create a pipeline with that
- add a command/parameters
- invoke
- examine the results
- clean up
As I mentioned above - all things work well - except the thing with the "trusted connection".
It works only, if I provide a username and a password in the PSCredential parameter....
...but it should work without it...
Please provide a tested and running example :)
Best regards
dp.

Dear all,
I would like to know, how I can open a runspace to an Exchange Server 2013 WITHOUT explicitelly applying username and password (well - this works using basic authentication).
Following scenario :
- A (well patched) Win 7 Enterprise Client with Exchange 2013 Client Tools installed
- Logged in as (the) domain admin
- Using Exchange Management Shell I can administer Exchange WITHOUT entering username/password
- Using C# I cannot :(
Nothing helped (DefaultCredentials [even with Releasebuild], PSCredentials.Empty or null, tried All members of AuthenticationMechanism).
I wonder how Powershell itself does the thing....
There must be a way to connect with the current user credentials...
I you know, how this can be done, then provide a short snippet - please.
Please no links or something like "...try to use blablabla" - thanks :)
The thing that I would like to do is :
- configure a runspace for the exchange server (WITHOUT user/password)
- create that runspace
- create a pipeline with that
- add a command/parameters
- invoke
- examine the results
- clean up
As I mentioned above - all things work well - except the thing with the "trusted connection".
It works only, if I provide a username and a password in the PSCredential parameter....
...but it should work without it...
Please provide a tested and running example :)
Best regards
dp.

Similar Messages

  • When trying to download it pops up with a window saying with current user i may not be able to do everything and is asking for administrater password or continue with current user? when i click current user it does nothing and i dont know the password

    when trying to download it pops up with a window saying with current user i may not be able to do everything and is asking for administrater password or continue with current user? when i click current user it does nothing and i dont know the password
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    Not from your end. Click here and ask the iTunes Store staff for assistance.
    (126716)

  • "How can I call Drill down report in 10g Without hard code user/password"

    Dear All;
    Can I get the "Pasword" of the login user in oracle, because I want to use in report, i have get the
    User Name and Connecting string already but I can not get the Password. can I anybody tell me
    "How I get the Password in Oracle 10g"
    Give User Name: = SELECT SYS_CONTEXT('USERENV','CURRENT_SCHEMA') FROM DUAL;
    Give DB Name: = SELECT SYS_CONTEXT('USERENV','DB_NAME') FROM DUAL;
    BUT how I get the password............???
    regards;
    Zahid Hussain
    Edited by: zahid9999 on Jun 10, 2010 3:04 AM

    hi
    you can use openDocument for this.
    [http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf]
    I would suggest to use variables that build the HTML code for the hyperlinks dynamically, and display them in your crosstab. Set the display option for the related cells (ie. the cells where your variables are displayed in) so that the cell's contents as interpreted as HTML code.
    Regards,
    Stratos

  • Cannot get user password expiration status with Jco 2.1

    I am using Jco 2.1. Is it possible to get the status of the user's password (expired or not) using Jco, or is there any BAPI which can do this task. I get an exception in Jco when the user is locked or does not have any access to the respective function groups, but no exceptions in this case. It allows the user to conenct to SAP even when the password has expried.
    In the code, I am using JCo Client connect and disconnect. It connects sucessfully, even when the password has expired in SAP.
    Many thanks in advance. Any pointers to this issue is appreciated.
    Regards,
    Siva

    Please refer to the link,
    Checking user password status with SAP JCO

  • Just got a new iPod touch..turned it on and it says to plug it into iTunes...it didn't ask for my user password to connect into my network

    Just got a new iPod touch...turned it on and it automatically told us to plug it into iTunes...it never asked me for my password to connect to my network...Help!!

    This one is really simple.
    Just make sure that the "only sync checked songs" box is checked under the music tab. Then select the songs that you want synced. Once you then click "sync", it will remove any of the songs that were automatically put there and add or leave only the ones that you put check boxes next to.
    Have fun!

  • Can I wipe my mac without the key user password?

    I bought my mac second hand online, but the previous owner did not wipe it entirely and now I can not download and install anything without his password as it says he is still the user. I have emailed him repeatedly but I have had no reply and its been months. I need to install things soon as I am going to university. Do I have to go to the apple store and get it wiped? Or can I do it myself?

    If you have a Snow Leopard retail disk you can easily reset your MacBook.
    Put your install DVD into the optical drive and reboot. As soon as you hear the boot chime, hold down the "c" key on your keyboard (or the Option key until the Install Disk shows up). That will force your MacBook to boot from the install DVD in the optical drive.
    If you want to just change the password once it has finished booting and you are at the Install screen launch Reset Password from the Utilities menu. Reset the password and then exit.
    If you want to erase everything on your hard drive and start off with a reset to factory settings. Once it has finished booting and you are at the Install screen launch Disk Utility from the Utilities menu. You should see your hard drive in the left hand column along with your other drives. Click on the drive and select the Erase tab. Set the format value to Mac OS Extended (Journaled) and click the Erase button. After that has finished select the Partition tab. Type in a Name for your hard drive and select how many partitions you want from the Volume Scheme. The usual setting is one partition. Click on the Options button after you've selected a partition to make sure it's set for GUID. Then click the Apply button and after the Partitioning is done quit Disk Utility.You can now follow the instructions on the install screen.

  • When connecting to remote system, once again asking user & password details

    hi
    I created one RFC in R/3 system, with the same logical system name of xi, giving all technical and logon details.
    When I click on remote logon to enter into xi system,it is once again asking user logon details. After entering the details it is allowing into the xi system. Directly it is not entering into remote system when I click remote logon button.
    I created both sides (in xi and R/3) and checked the same thing. Both sides I am getting the same problem. it is showing client name correctly but user and password name it is displaying the same server information. like if I am connecting from R/3 to XI means it is showing XI client number but R/3 user and password. Once after I change user and password and press enter it is going into remote system.
    Could someone please help me on this?
    Thanks in advance and best regards,
    1234

    hi lavanya
    Provide the user with the corresponding authorization or avoid using the protected users DDIC and SAP*
    check below
    Trusting Transaction SMT2                                                    
    The trusting transaction SMT2 (or SM59 ® RFC ® Trusting Systems) constructs a list of all trusting systems that have been established for this trusted system. Here, a logon and authorization check for the current user and client is performed, using the destination TRUSTING_SYSTEM@S00 that has been automatically created.      
    This basically corresponds to transaction SM51, if you use Remote Login to perform a logon on a different application server.                                                                               
    If problems occur while setting the destination TRUSTING_SYSTEM@S00 (such as host name or service information), you either have to create a new destination for your needs, and then enter the host name or service information using SAP router strings, or adjust the network settings of the server. To correct the problem in transaction SMT2, you have to adjust the network configuration of the server. As this transaction is only to be used for test purposes, in this case you could also choose to ignore the error.                                                              
    To perform a logon as a different user or client, you have to create a new RFC destination with a trusted option set.                                                                
    In this scenario, the following error text in SMT2 can be ignored:
    No authorization to log on as a trusted system (Trusted RC=0)
    If the host name contains the character '_' (as in "my_host"), then the generation of the related trusting system destination may lead to incorrect settings. This problem can be corrected by implementing Support Package SAPKB46D09 (see below). For earlier releases, the changes required to correct the problem can be made manually.
    regards
    kummari

  • Howto: Change users password in Linux with Java

    Hi, how can i write a Java program to change user acounts passwords in linux?

    this is how i solved the problem:
    Runtime rt = Runtime.getRuntime();
            String[] callAndArgs = { "passwd",
                                     "--stdin",
                                     "ehi" };
            try {
                String line = null;
                Process child = rt.exec(callAndArgs);
                InputStream stdin = child.getInputStream();
                InputStreamReader isr = new InputStreamReader(stdin);
                BufferedReader br = new BufferedReader(isr);
                OutputStream os = child.getOutputStream();
                PrintWriter pw = new PrintWriter(os);
                pw.println ("empty");
                pw.flush();
                if ((line = br.readLine()) != null)
                               System.out.println(line);
                pw.println("password2");
                pw.flush();
                child.waitFor();
                System.out.println("Process exit code is: " + child.exitValue());
            catch(IOException e) {
                System.err.println(
                        "IOException starting process!");
            } catch (InterruptedException e) {
                e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
            }

  • I have bought a 3rd generation IPod and have given my husband my 2nd gen Ipod plus my Ipad   How do I change it over to him without losing all my passwords etc for my current one?

    My question remains the same.

    Just restore your old one. This wipes all content from the iPod and resets all of its settings back to its defaults.
    http://support.apple.com/kb/HT1339
    B-rock

  • How to give access to user when he login with his credentials to create his own virtual machine

    Dear Experts ,
    In scvmm ..how we can allow an user to create his own VM with out providing him administrator rights...
    I am able to create machines with user accounts when I give Administrator rights only..and if i remove Administrator rights..i am gettting a message for user-"you cannot access the private cloud", where as If i give administrator rights to that
    same user , I can able to access private cloud and template for the user.
    Please suggest me and help with any useful link.
    Regards
    N.V.Srinivas ,
    [email protected]

    Self-Service user delegation
    SCVMM 2008 - 2008 R2:
    http://technet.microsoft.com/en-us/library/dd548291.aspx
    SCVMM 2012 - 2012 R2:
    http://technet.microsoft.com/en-us/library/gg696971.aspx
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.
    Disclaimer: Attempting change is of your own free will.

  • Random users getting "no connection" with shared calendars

    We recently made changes to autodiscover and a new SSL cert. Although this issue has been happening before hand. It seems to be random users. Outlook 2013 and 2010. OWA works great
    The olkdisc.log from an affected user shows errors:
    4692 0xDDECFB5C
    05/01/14 10:46:10 AUTODISCOVER GET SETTINGS END
    4692 0xDDECFB5C
    05/01/14 10:46:10 -----------------------------
    964 0xDDECFB6C
    05/01/14 10:46:10 +++++++++++++++++++++++++++++++
    964 0xDDECFB6C
    05/01/14 10:46:10 AUTODISCOVER GET SETTINGS BEGIN
    964 0xDDECFB6C
    05/01/14 10:46:10  [email protected]
    964 0xDDECFB7C
    05/01/14 10:46:10 Attempting URL https://mail.domain.com/autodiscover/autodiscover.xml found through SCP
    964 0xDDECFB7C
    05/01/14 10:46:10 Autodiscover to https://mail.domain.com/autodiscover/autodiscover.xml starting
    964 0xDDECFB7C
    05/01/14 10:46:10 AutoDiscover doing Pre-Auth with saved data.
    964 0xDDECFB7C
    05/01/14 10:46:10 AutoDiscover PRE-AUTH pcreds->dwAuthScheme:
    964 0xDDECFB7C
    05/01/14 10:46:10  <NONE>
    964 0xDDECFB7C
    05/01/14 10:46:10 GetLastError=12007; httpStatus=0.
    964 0xDDECFB7C
    05/01/14 10:46:10 Autodiscover to https://mail.domain.com/autodiscover/autodiscover.xml Failed (0x800C8203)
    964 0xDDECFB7C
    05/01/14 10:46:10 Autodiscover to https://domain.com/autodiscover/autodiscover.xml starting
    964 0xDDECFB7C
    05/01/14 10:46:10 AutoDiscover doing Pre-Auth with saved data.
    964 0xDDECFB7C
    05/01/14 10:46:10 AutoDiscover PRE-AUTH pcreds->dwAuthScheme:
    964 0xDDECFB7C
    05/01/14 10:46:10  <NONE>
    964 0xDDECFF52
    05/01/14 10:46:11 Autodiscover to https://domain.com/autodiscover/autodiscover.xml Failed (0x80070006)
    964 0xDDECFF52
    05/01/14 10:46:11 Autodiscover to https://autodiscover.domain.com/autodiscover/autodiscover.xml starting
    964 0xDDECFF52
    05/01/14 10:46:11 Autodiscover to https://autodiscover.domain.com/autodiscover/autodiscover.xml Failed (0x80040113)
    964 0xDDECFF52
    05/01/14 10:46:11 Local autodiscover for domain.com starting
    964 0xDDECFF52
    05/01/14 10:46:11 Local autodiscover for domain.com Failed (0x8004010F)

    thank you for the reply. here is the response I get:
    Name                           : RAMAIL
    AutoDiscoverServiceInternalUri : https://mail.domain.com/autodiscover/autodiscover.xml
    When I visit the url this is what I get: I will try the rebuild next
    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
    <Response>
    <Error Time="05:30:03.4595514" Id="3427233440">
    <ErrorCode>600</ErrorCode>
    <Message>Invalid Request</Message>
    <DebugData/>
    </Error>
    </Response>
    </Autodiscover>
    That is expected. 
    Can you create a new Outlook profile automatically? 
    Unless you have full mailbox access and have auto-mapped those shared mailboxes, autodiscovery doesnt come into play here.
    Twitter!: Please Note: My Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

  • [SOLVED] Allowing users to halt computer with sudo without password

    Hi Archers.
    First of all, I'd like to say that I've read the Wiki page about that but this is not exactly what I want.
    What I want is to allow all users to halt, and reboot my computer while they are using sudo, without asking them a password BUT only with these commands (halt and reboot). The prompt have to ask for a password for all the rest (using pacman...)
    I would like to do this in a clean, and comprehensible way.
    Thanks
    Last edited by Lowra (2011-03-12 21:34:32)

    Lowra wrote:
    The example provided in visudo will allow a user, or a group of user to execute all the commands without asking for a password. This is not what I want.
    The example in the wiki does roughly what I want, but applies to only one user and one hostname.
    I would like to make it applies to all the users of my system, and without defining any hostname in my /etc/sudoers. I'm writting a little guide for a couple of people, and I wouldn't like to add in it anything which depends on a custom hostname...
    %somegroup ALL=ALL NOPASSWD: /sbin/halt,/sbin/reboot
    Or you could use consolekit.

  • Create user in ADAM instance with powershell

    Hi
    I was wondering if you could help me with the ability to create a user in AD / Adam? I am trying to write the powershell code to create users for Teradata connectivity. the manual process is to use adsiedit and create the users through groupof names class.
    This is what I have that is NOT working and was looking where to go from here.
    $dom=[ADSI]"LDAP://OU=Users,OU=dev,OU=tdev,dc=acme,dc=com"
    $obj = $dom.Create('GroupOfNames', 'CN=ASmith')
    $obj.SetInfo()
    any help would be greatly appreciated.
    Thank you

    Hi JRRemillard,
    What is the OS version? And have you checked the AD module?
    If the version is server 2008 or server 2003, please check this article to download Active Directory Management Gateway Service:
    Active Directory Management Gateway Service
    You can check the
    AD module , and create a new user, please try the cmdlet New-ADUser.
    If there is anyting else regarding this issue, please feel free to post back.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support

  • User Password case sensitivity issue.

    Hi,
    I have been migrated users from EBS to OID, but having some issues like some existing users password in EBS are in Capital letters but when they connect with SSO the same password not accepted, but users can connect same password in small letters.
    How I can solve this issue????????
    Senario:
    1: Existing EBS User:(Before integration of OID+SSO), users are directly connecting with EBS.
    User Name: HINA.SARWAR-----------(Not case sensitive)
    Password: ABCDEF -----------( Case sensitive)
    2: Existing EBS User:(After integration of OID+SSO), user are connecting via SSO.
    Eexpected behavior is that users should logon with above pass "ABCDEF", but they cannot.
    eg:-
    Cannot connect as:
    User Name: HINA.SARWAR -----------(Not case sensitive)
    Password: ABCDEF -----------( Case sensitive)
    Can connect as:
    User Name: HINA.SARWAR -----------(Not case sensitive)
    Password: abcdef -----------( Case sensitive)
    thx

    Hi,
    The solution to your problem is here at metalink:
    Password Case Sensitivity Lost During Extract And Import From EBS to OID [ID 951170.1]
    regards

  • WIFI password not synced with iOS device

    For short: I'm excluded off my own WIFI net because Apple's iCloud Keychain didn't sync the WIFI password from my MacBook to my iPad.
    For my holidays I bought a nice portable WIFI hard disk. This device can not only take the memory cards of my camera and store the images without any computer, but also establishes a WIFI network, by which I can access the content of the mobile harddisk wirelessly.
    At home, I configured this neat device with my MacBookPro and accessed it via WIFI by choosing the WIFI hard disk's network and entering the password, which Apple suggested during the configuration process of the WIFI hard disk. At this moment (entering the WIFI password to connect with the hard disk's network), I had to recurr onto the OSX keychain helper: look for the formerly entered password and paste it into the WIFI accounting form - and check the box "store in the icloud keychain". Ok.
    Ok? Nothing's ok on my iOS devices (iPad and iPhone). Why?
    By checking the box, I was sure that the password would indeed be synced with and stored within the iCloud keychain.
    But I went wrong!
    Now on holidays, with my camera, my iPad, my WIFI hard disk and – without my MacBookPro (because it's a holidays killer) – I tried to connect my iPad with the WIFI of the mobile hard disk. Seeing it's WIFI network, I tapped on it and got the accounting dialog: Enter password.
    Which password?!?
    I had instructed the Apple iCloud to store this password – and deliver it to any authorized device if needed.
    But Apple, seemingly, did NOT do this and failed to deliver the password to my iPad (which is naturally registered to the same Apple ID as my MacBook).
    What shall I do now? I have NO access neither to my MacBookPro (which is at home) nor to my iCloud keychain (which Apple thinks the best to protect against me).
    To be honest, I feel patronized in a very ugly way by Apple - once again.
    My question is: Why isn't there a way to access or manage the iCloud keychain from an iOS device? Should it be that Apple thinks these devices are LESS SECURE?
    Any help is very welcome! Thanks in advance.

    Thanks, FromSouth -
    I called Apple Support and they also said that she has to have access to my iCloud account. We did figure out that some of the notes from 2011 and 2012 are from a shared business account which also allows notes, but that is a Verizon account and should not impact, in any way, shape, or form, the iCloud account.
    I do not believe my daughter actually did this; I am guessing that her iCloud account was also accessed by her husband (who is not a good guy), and he, without her knowledge, synced her iCloud to his iPhone to track all her stuff. I then believe he got hold of mine and did the same a couple of days ago, as we are all together for a large family vacation (in the same house).
    I guess I have a couple more questions about this, though:
    Normally, when you sync a new device with your account, you get a message on all your old devices - but I did not get anything of the kind. How would this be possible? I guess maybe if he synced it while standing there with my iPad, then my iPad would get an alert, and he would just turn it off?? (I know all this sounds excessive, but believe me, he'd go to this length.)
    I find it difficult to believe that he could have cracked my iCloud password - it's not something that anyone would ever put together easily. How would he be able to access the account without a password? Is there any kind of app or software that he could have installed on my iPad that would allow that? (Again, believe me, he'd do it.)
    Is there any way to see in iCloud what devices are linked to the account? That alone would show me what device has this.
    Finally, I have my iPad password-protected, so I cannot imagine he would have gotten into my iPad in the first place...how would he have gained access to this otherwise? I really thought I was being very smart on how I set this all up, and two days in the same location as him and now this....
    I really thank you for any help you can give me on this one...
    Thanks!

Maybe you are looking for