Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Help - Credentials

Reply
 
Old 11-20-2008   #1 (permalink)
Ripp


 
 

Help - Credentials

Hi All,

Need some help. I need to copy some files from one subnet to another. I
can pull stuff from workstations on the other subnet using the -credentials
option with a wmiobject like:

$c = get-credential
(get-wmiobject win32_bios -computername 172.16.98.184 -credential $c).__server

I need to copy files to workstations on this other subnet and the
-credentail doesnt seem to work via powershell cmdlets, non wmi, to a UNC
path (example: \\172.16.98.184\test)

How can i use wmi to copy these files or if you guys have a much better
please share. Your help is appreciated and looking forward to your replies.

Ripp

My System SpecsSystem Spec
Old 11-20-2008   #2 (permalink)
Ripp


 
 

RE: Help - Credentials

I get RPC errors when using WMI and if using copy-item with -credential
option i get the error the use of credentials not supported with the UNC path

"Ripp" wrote:
Quote:

> Hi All,
>
> Need some help. I need to copy some files from one subnet to another. I
> can pull stuff from workstations on the other subnet using the -credentials
> option with a wmiobject like:
>
> $c = get-credential
> (get-wmiobject win32_bios -computername 172.16.98.184 -credential $c).__server
>
> I need to copy files to workstations on this other subnet and the
> -credentail doesnt seem to work via powershell cmdlets, non wmi, to a UNC
> path (example: \\172.16.98.184\test)
>
> How can i use wmi to copy these files or if you guys have a much better
> please share. Your help is appreciated and looking forward to your replies.
>
> Ripp
My System SpecsSystem Spec
Old 11-20-2008   #3 (permalink)
Ripp


 
 

RE: Help - Credentials

I know running on the same subnet i have no problems, and i dont have the
option at this time to run the script on a machine on the same subnet so i
need another solution.

"Ripp" wrote:
Quote:

> Hi All,
>
> Need some help. I need to copy some files from one subnet to another. I
> can pull stuff from workstations on the other subnet using the -credentials
> option with a wmiobject like:
>
> $c = get-credential
> (get-wmiobject win32_bios -computername 172.16.98.184 -credential $c).__server
>
> I need to copy files to workstations on this other subnet and the
> -credentail doesnt seem to work via powershell cmdlets, non wmi, to a UNC
> path (example: \\172.16.98.184\test)
>
> How can i use wmi to copy these files or if you guys have a much better
> please share. Your help is appreciated and looking forward to your replies.
>
> Ripp
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
How to pass credentials? PowerShell
How do I make UAC ask for credentials? General Discussion
Credentials in scripts PowerShell
Logon Credentials Vista account administration
Workgroup credentials Vista networking & sharing


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46