![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | PoSh Remote/Alternate Credentials Just need to bounce this off you guys/gals :: I have a script that runs several checks, using the .Net method, on some registry values of remote systems. I have 3 domains, and domain admins in one domain do NOT have rights to systems in other domains. I would like the script to use the get-credentail cmdlet to prompt for other credentials, the only problem is that when it does, the script doesn't run all the pieces correctly (access denied..) If i log into a system on the other domain (and yes trusts, etc. are all fine) and run the script as admin it works great. Thanks, |
| | #2 (permalink) | ||||||||||||
| Guest | Re: PoSh Remote/Alternate Credentials Get-Credentials doesn't work like you expect. It does NOT change the current context. It gives you a System.Management.Automation.PSCredential object you can pass Get-WMIObject as well as other .NET Classes that implement System.Net.NetworkCredential (http://msdn2.microsoft.com/en-us/lib...redential.aspx). In your case I assume your using the http://msdn2.microsoft.com/en-us/lib...ey(VS.90).aspx. I am not sure if you can pass creds to that. "Mark" <Mark@xxxxxx> wrote in message news:CB10B988-F2AA-4859-AA69-2B86297D2E58@xxxxxx
| ||||||||||||
| |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| executing ps1 from a web browser, alternate credentials | gvimercati | PowerShell | 3 | 03-13-2008 11:08 PM |
| running script with alternate credentials | jorgemestre | PowerShell | 2 | 02-25-2008 09:55 AM |
| Remote Desktop Credentials | Brandon | Vista General | 0 | 12-19-2007 04:44 PM |
| unable to start more copies of a process under alternate credentials | John | Vista account administration | 0 | 09-01-2007 05:30 AM |
| How can I start a process on a remote machine using alternate cred | JW | PowerShell | 7 | 08-14-2007 02:48 PM |