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 - Newbie question

Reply
 
Old 05-29-2008   #1 (permalink)
Steve Grosz


 
 

Newbie question

I just getting started with Powershell, and have a question.

If I have a URL I would like to push out to all users desktops, is this
something that can be done using Powershell?

If so, how?????



My System SpecsSystem Spec
Old 05-29-2008   #2 (permalink)
Marco Shaw [MVP]


 
 

Re: Newbie question

Steve Grosz wrote:
Quote:

> I just getting started with Powershell, and have a question.
>
> If I have a URL I would like to push out to all users desktops, is this
> something that can be done using Powershell?
>
> If so, how?????
>
>
You want the URL to show as something (a shortcut) within IE or just
something on their desktop?

I'm assuming you're using PowerShell v1, and don't have a problem
accessing other systems through any firewalls?

The account you would use to "push"... Is it a domain admin account
that would have access to all the other machines?

Marco

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 05-29-2008   #3 (permalink)
Steve Grosz


 
 

Re: Newbie question

You want the URL to show as something (a shortcut) within IE or just
Quote:

> something on their desktop?
Desktop right now

I'm assuming you're using PowerShell v1, and don't have a problem
Quote:

> accessing other systems through any firewalls?
Yes PS1, and no, firewalls are not an issue
Quote:

> The account you would use to "push"... Is it a domain admin account that
> would have access to all the other machines?
Yes, its a domain admin account and it should have access to the other
machines



"Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
news:e$2F0ibwIHA.4560@xxxxxx
Quote:

> Steve Grosz wrote:
Quote:

>> I just getting started with Powershell, and have a question.
>>
>> If I have a URL I would like to push out to all users desktops, is this
>> something that can be done using Powershell?
>>
>> If so, how?????
>
> You want the URL to show as something (a shortcut) within IE or just
> something on their desktop?
>
> I'm assuming you're using PowerShell v1, and don't have a problem
> accessing other systems through any firewalls?
>
> The account you would use to "push"... Is it a domain admin account that
> would have access to all the other machines?
>
> Marco
>
> --
> Microsoft MVP - Windows PowerShell
> http://www.microsoft.com/mvp
>
> PowerGadgets MVP
> http://www.powergadgets.com/mvp
>
> Blog:
> http://marcoshaw.blogspot.com

My System SpecsSystem Spec
Old 05-29-2008   #4 (permalink)
Steve Grosz


 
 

Re: Newbie question

Ok, what is the \\$_\c$ part of this?

"Shay Levi" <no@xxxxxx> wrote in message
news:95d808932dc0f8ca8ff360ab6c40@xxxxxx
Quote:

>
> Hi Steve,
>
> you can do something like:
>
> 1. create the url on your computer (e.g d:\scripts\test.url)
> 2. create a file with computer names, each name in a seperate line
> 3. copy the shortcut to all computers:
>
> Get-Content d:\scripts\computers.txt | foreach {
> Copy-Item -Path d:\scripts\test.url -Destination "\\$_\c$\documents and
> settings\all users\desktop"
> }
>
>
>
> ---
> Shay Levi
> $cript Fanatic
> http://scriptolog.blogspot.com
>
Quote:

>> You want the URL to show as something (a shortcut) within IE or just
>>
Quote:

>>> something on their desktop?
>>>
>> Desktop right now
>>
>> I'm assuming you're using PowerShell v1, and don't have a problem
>>
Quote:

>>> accessing other systems through any firewalls?
>>>
>> Yes PS1, and no, firewalls are not an issue
>>
Quote:

>>> The account you would use to "push"... Is it a domain admin account
>>> that would have access to all the other machines?
>>>
>> Yes, its a domain admin account and it should have access to the other
>> machines
>>
>> "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
>> news:e$2F0ibwIHA.4560@xxxxxx
>>
Quote:

>>> Steve Grosz wrote:
>>>
>>>> I just getting started with Powershell, and have a question.
>>>>
>>>> If I have a URL I would like to push out to all users desktops, is
>>>> this something that can be done using Powershell?
>>>>
>>>> If so, how?????
>>>>
>>> You want the URL to show as something (a shortcut) within IE or just
>>> something on their desktop?
>>>
>>> I'm assuming you're using PowerShell v1, and don't have a problem
>>> accessing other systems through any firewalls?
>>>
>>> The account you would use to "push"... Is it a domain admin account
>>> that would have access to all the other machines?
>>>
>>> Marco
>>>
>>> --
>>> Microsoft MVP - Windows PowerShell
>>> http://www.microsoft.com/mvp
>>> PowerGadgets MVP
>>> http://www.powergadgets.com/mvp
>>> Blog:
>>> http://marcoshaw.blogspot.com
>
>

My System SpecsSystem Spec
Old 05-29-2008   #5 (permalink)
Shay Levi


 
 

Re: Newbie question


Hi Steve,

you can do something like:

1. create the url on your computer (e.g d:\scripts\test.url)
2. create a file with computer names, each name in a seperate line
3. copy the shortcut to all computers:

Get-Content d:\scripts\computers.txt | foreach {
Copy-Item -Path d:\scripts\test.url -Destination "\\$_\c$\documents and
settings\all users\desktop"
}



---
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
Quote:

> You want the URL to show as something (a shortcut) within IE or just
>
Quote:

>> something on their desktop?
>>
> Desktop right now
>
> I'm assuming you're using PowerShell v1, and don't have a problem
>
Quote:

>> accessing other systems through any firewalls?
>>
> Yes PS1, and no, firewalls are not an issue
>
Quote:

>> The account you would use to "push"... Is it a domain admin account
>> that would have access to all the other machines?
>>
> Yes, its a domain admin account and it should have access to the other
> machines
>
> "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
> news:e$2F0ibwIHA.4560@xxxxxx
>
Quote:

>> Steve Grosz wrote:
>>
Quote:

>>> I just getting started with Powershell, and have a question.
>>>
>>> If I have a URL I would like to push out to all users desktops, is
>>> this something that can be done using Powershell?
>>>
>>> If so, how?????
>>>
>> You want the URL to show as something (a shortcut) within IE or just
>> something on their desktop?
>>
>> I'm assuming you're using PowerShell v1, and don't have a problem
>> accessing other systems through any firewalls?
>>
>> The account you would use to "push"... Is it a domain admin account
>> that would have access to all the other machines?
>>
>> Marco
>>
>> --
>> Microsoft MVP - Windows PowerShell
>> http://www.microsoft.com/mvp
>> PowerGadgets MVP
>> http://www.powergadgets.com/mvp
>> Blog:
>> http://marcoshaw.blogspot.com

My System SpecsSystem Spec
Old 05-29-2008   #6 (permalink)
Tao Ma


 
 

Re: Newbie question

Hi Steve,

Get-Content will read computers.txt one line at a time and send the computer
name to the following command, ForEach in shay's codes, in the PIPELINE.
PowerShell use a special variable '$_' to access the Object passed through
the PIPELINE. So, \\$_\c$\documents forms an Path you want to save the file.

For more infomation about pipeline, please visit:
http://technet.microsoft.com/en-us/m.../cc138003.aspx

Tao Ma


"Steve Grosz" <boise_bound@xxxxxx> дÈëÏûÏ¢ÐÂÎÅ:e5cl6scwIHA.524@xxxxxx
Quote:

> Ok, what is the \\$_\c$ part of this?
>
> "Shay Levi" <no@xxxxxx> wrote in message
> news:95d808932dc0f8ca8ff360ab6c40@xxxxxx
Quote:

>>
>> Hi Steve,
>>
>> you can do something like:
>>
>> 1. create the url on your computer (e.g d:\scripts\test.url)
>> 2. create a file with computer names, each name in a seperate line
>> 3. copy the shortcut to all computers:
>>
>> Get-Content d:\scripts\computers.txt | foreach {
>> Copy-Item -Path d:\scripts\test.url -Destination "\\$_\c$\documents and
>> settings\all users\desktop"
>> }
>>
>>
>>
>> ---
>> Shay Levi
>> $cript Fanatic
>> http://scriptolog.blogspot.com
>>
Quote:

>>> You want the URL to show as something (a shortcut) within IE or just
>>>
>>>> something on their desktop?
>>>>
>>> Desktop right now
>>>
>>> I'm assuming you're using PowerShell v1, and don't have a problem
>>>
>>>> accessing other systems through any firewalls?
>>>>
>>> Yes PS1, and no, firewalls are not an issue
>>>
>>>> The account you would use to "push"... Is it a domain admin account
>>>> that would have access to all the other machines?
>>>>
>>> Yes, its a domain admin account and it should have access to the other
>>> machines
>>>
>>> "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
>>> news:e$2F0ibwIHA.4560@xxxxxx
>>>
>>>> Steve Grosz wrote:
>>>>
>>>>> I just getting started with Powershell, and have a question.
>>>>>
>>>>> If I have a URL I would like to push out to all users desktops, is
>>>>> this something that can be done using Powershell?
>>>>>
>>>>> If so, how?????
>>>>>
>>>> You want the URL to show as something (a shortcut) within IE or just
>>>> something on their desktop?
>>>>
>>>> I'm assuming you're using PowerShell v1, and don't have a problem
>>>> accessing other systems through any firewalls?
>>>>
>>>> The account you would use to "push"... Is it a domain admin account
>>>> that would have access to all the other machines?
>>>>
>>>> Marco
>>>>
>>>> --
>>>> Microsoft MVP - Windows PowerShell
>>>> http://www.microsoft.com/mvp
>>>> PowerGadgets MVP
>>>> http://www.powergadgets.com/mvp
>>>> Blog:
>>>> http://marcoshaw.blogspot.com
>>
>>
>
>

My System SpecsSystem Spec
Old 05-29-2008   #7 (permalink)
Marco Shaw [MVP]


 
 

Re: Newbie question

Steve Grosz wrote:
Quote:

> Ok, what is the \\$_\c$ part of this?
The UNC path to the remote computer basically...

Marco
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
a newbie with a question Virtual PC
Newbie question Graphic cards
Just a newbie question General Discussion
Newbie question PowerShell
RE: Newbie Question PowerShell


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