SQL Clone
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
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1044 Visits: 1328
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
Valued Member
Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)

Group: General Forum Members
Points: 71 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 Guru
SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)SSC Guru (88K reputation)

Group: General Forum Members
Points: 88588 Visits: 41130
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.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
Gary Varga
Gary Varga
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16747 Visits: 6534
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
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1044 Visits: 1328
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
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1044 Visits: 1328
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
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1044 Visits: 1328
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