Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Add Network Places using PoSh


Add Network Places using PoSh

Author
Message
schleep
schleep
Mr or Mrs. 500
Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)

Group: General Forum Members
Points: 522 Visits: 1288
I'm getting a new Windows 7 desktop. From a powershell perspective, probably a good thing.

But, I have a goodly number of Network Places mapped on my XP box, and I'd like to re-create those mappings on my new box.

I've not seen anything that looks programmatic / PoSh in my search results.They seem to point to AddNetPlaceRunDll, but....

Any ideas?



Tony Sweet
Tony Sweet
SSC Rookie
SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)

Group: General Forum Members
Points: 33 Visits: 66
Are you talking about something like this?

http://blogs.technet.com/b/heyscriptingguy/archive/2012/06/10/weekend-scripter-use-powershell-to-manage-windows-network-locations.aspx

- Tony Sweet
Jeff Moden
Jeff Moden
SSC-Forever
SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)SSC-Forever (45K reputation)

Group: General Forum Members
Points: 45253 Visits: 39934
schleep (4/29/2014)
I'm getting a new Windows 7 desktop. From a powershell perspective, probably a good thing.

But, I have a goodly number of Network Places mapped on my XP box, and I'd like to re-create those mappings on my new box.

I've not seen anything that looks programmatic / PoSh in my search results.They seem to point to AddNetPlaceRunDll, but....

Any ideas?


Yes... make them give you the upgrade to Windows 8.1.

--Jeff Moden

RBAR is pronounced ree-bar and is a Modenism for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
Although they tell us that they want it real bad, our primary goal is to ensure that we dont actually give it to them that way.
Although change is inevitable, change for the better is not.
Just because you can do something in PowerShell, doesnt mean you should. Wink

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
Gary Varga
Gary Varga
SSCrazy Eights
SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)SSCrazy Eights (8.4K reputation)

Group: General Forum Members
Points: 8376 Visits: 6161
Jeff Moden (4/29/2014)
schleep (4/29/2014)
I'm getting a new Windows 7 desktop. From a powershell perspective, probably a good thing.

But, I have a goodly number of Network Places mapped on my XP box, and I'd like to re-create those mappings on my new box.

I've not seen anything that looks programmatic / PoSh in my search results.They seem to point to AddNetPlaceRunDll, but....

Any ideas?


Yes... make them give you the upgrade to Windows 8.1.


Totally agree. I preferred Windows 8.0 over 7. I never saw what the big fuss was about. Once you have shortcuts or pins to your commonly used apps then you usually have to scour for that app you are sure was installed. I prefer the Win8 search over the Start Bar search any day. Plus there are a lot of other improvements as well. PowerShell being a case in point.

Gaz

-- Stop your grinnin' and drop your linen...they're everywhere!!!
schleep
schleep
Mr or Mrs. 500
Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)

Group: General Forum Members
Points: 522 Visits: 1288
Hi Tony,

I did come across that one, but no, that's not what I'm after.

The one I want is, in Win 7, right click on Computer, Add a network location.

Thanks.



schleep
schleep
Mr or Mrs. 500
Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)

Group: General Forum Members
Points: 522 Visits: 1288
Yes... make them give you the upgrade to Windows 8.1.


Ha ha! We're just getting to Win 7. By the time we're ready to upgrade, I'd be surprised if it's still called Windows. :-P



schleep
schleep
Mr or Mrs. 500
Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)Mr or Mrs. 500 (522 reputation)

Group: General Forum Members
Points: 522 Visits: 1288
As far as I can tell, they're shortcuts stored in my c:\users\...ethood folder, which I can access in XP, but not in Win 7 even running Windows Explorer as Administrator...



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search