![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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????? > > 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 Specs![]() |
| | #3 (permalink) |
| | Re: Newbie question You want the URL to show as something (a shortcut) within IE or just Quote: > something on their desktop? I'm assuming you're using PowerShell v1, and don't have a problem Quote: > accessing other systems through any firewalls? Quote: > The account you would use to "push"... Is it a domain admin account that > would have access to all the other machines? 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 Specs![]() |
| | #4 (permalink) |
| | 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? >>> >> >> I'm assuming you're using PowerShell v1, and don't have a problem >> Quote: >>> accessing other systems through any firewalls? >>> >> Quote: >>> The account you would use to "push"... Is it a domain admin account >>> that would have access to all the other machines? >>> >> 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 Specs![]() |
| | #5 (permalink) |
| | 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? >> > > I'm assuming you're using PowerShell v1, and don't have a problem > Quote: >> accessing other systems through any firewalls? >> > Quote: >> The account you would use to "push"... Is it a domain admin account >> that would have access to all the other machines? >> > 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????? >>> >> 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 Specs![]() |
| | #6 (permalink) |
| | 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 Specs![]() |
| | #7 (permalink) |
| | Re: Newbie question Steve Grosz wrote: Quote: > Ok, what is the \\$_\c$ part of this? Marco |
My System Specs![]() |
![]() |
| 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 | |||