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 - Login to fileshare

Reply
 
Old 04-04-2007   #1 (permalink)
BJHop


 
 

Login to fileshare

Is there a way to log on to a fileshare from powershell?

I need to push files to a fileshare in our extranet which I need to log on.
I'd like to script this out, meaning, I's need a way to login to the
fileshare for the script.

Thanks a million in advance?

BJHop


--
BJHop

My System SpecsSystem Spec
Old 04-04-2007   #2 (permalink)
Brandon Shell


 
 

Re: Login to fileshare

I have a Powershell Search Engine. I ran your request and got several really
good examples.
Search is Here: http://bsonposh.com/modules/wordpress/?page_id=13

Here are the results
http://www.google.com/custom?cx=0105...nt=google-coop

This is probably the most directed at your Question:
http://www.leeholmes.com/blog/PowerS...redential.aspx

Most of the examples use Get-Credentials CMDLets with a call to
..GetNetworkCredentials().
Further info is Here:
http://msdn2.microsoft.com/en-us/lib...redential.aspx
and
http://msdn2.microsoft.com/en-us/lib...redential.aspx

--
Brandon Shell
---------------
Stop by my blog some time
Blog: http://www.bsonposh.com/
PSH Scripts Project: www.codeplex.com/psobject
--------------------------------------

"BJHop" <BJHop@discussions.microsoft.com> wrote in message
news:39DB07FC-AB5B-437F-9F29-ABD321CC8F4C@microsoft.com...
> Is there a way to log on to a fileshare from powershell?
>
> I need to push files to a fileshare in our extranet which I need to log
> on.
> I'd like to script this out, meaning, I's need a way to login to the
> fileshare for the script.
>
> Thanks a million in advance?
>
> BJHop
>
>
> --
> BJHop


My System SpecsSystem Spec
Old 04-06-2007   #3 (permalink)
BJHop


 
 

Re: Login to fileshare

Brandon

Great stuff, but I still don't see how I can use Get-Credentials within a
script

I need have nightly script run, log on the fileshare (ExtraNet) and push
some files. With Get-Credentials I don't see a way to do that. I guess I am
going to have to dig a bit deeper on the .net side of things.

Once again, thanks a million for the great info you gave me.

BJHop

"Brandon Shell" wrote:

> I have a Powershell Search Engine. I ran your request and got several really
> good examples.
> Search is Here: http://bsonposh.com/modules/wordpress/?page_id=13
>
> Here are the results
> http://www.google.com/custom?cx=0105...nt=google-coop
>
> This is probably the most directed at your Question:
> http://www.leeholmes.com/blog/PowerS...redential.aspx
>
> Most of the examples use Get-Credentials CMDLets with a call to
> ..GetNetworkCredentials().
> Further info is Here:
> http://msdn2.microsoft.com/en-us/lib...redential.aspx
> and
> http://msdn2.microsoft.com/en-us/lib...redential.aspx
>
> --
> Brandon Shell
> ---------------
> Stop by my blog some time
> Blog: http://www.bsonposh.com/
> PSH Scripts Project: www.codeplex.com/psobject
> --------------------------------------
>
> "BJHop" <BJHop@discussions.microsoft.com> wrote in message
> news:39DB07FC-AB5B-437F-9F29-ABD321CC8F4C@microsoft.com...
> > Is there a way to log on to a fileshare from powershell?
> >
> > I need to push files to a fileshare in our extranet which I need to log
> > on.
> > I'd like to script this out, meaning, I's need a way to login to the
> > fileshare for the script.
> >
> > Thanks a million in advance?
> >
> > BJHop
> >
> >
> > --
> > BJHop

>
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Select-String FileShare.ReadWrite PowerShell
I can acess the net + Fileshare but can not PING computer IPS? Network & Sharing
XP/VISTA can see both, can not fileshare Vista networking & sharing
Fileshare pw and username Vista account administration
Backup and Fileshare - anytime, anywhere Network & 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