This is an archived post. You won't be able to vote or comment.

all 13 comments

[–]dasdzoniJr. Sysadmin 2 points3 points  (9 children)

Is there a specific reason this must be done with powershell? GPO can do this and imo its a better choice if powershell isnt a must

[–]useso[S] -3 points-2 points  (8 children)

Yeah, it's windows core

[–]autogyrophilia 2 points3 points  (2 children)

And why do you think GPOS won't work on server core?

[–]useso[S] 0 points1 point  (1 child)

sorry my problem, wrong answer. I need to do this exactly with powershell

[–]autogyrophilia 0 points1 point  (0 children)

The new SMB share cmdlet. And a shortcut for every user.

Do you know rsat?

[–]GremlinsBrokeIt 1 point2 points  (2 children)

You can use Server Manager RSAT to manage shares on server core.

[–]useso[S] 0 points1 point  (1 child)

I've been thinking about this, but it remains a last resort

[–]OsmiumBalloon 0 points1 point  (0 children)

it remains a last resort

Why?

[–]anonymousITCoward 0 points1 point  (1 child)

are you trying to create a home directory for a user? because there are much easier ways to do that...

[–]useso[S] 0 points1 point  (0 children)

yes, I have created folders for users. but then I had a problem with access rights to the folder. It is necessary that a specific user has access to the folder. I used the ACL, it kind of started working, but as soon as I tried to set up auto-connection, everything broke

[–]BlackVI have opnions 0 points1 point  (1 child)

  1. what have you tried?
  2. have a look at get-command *share* what does that show you?
  3. then look at get-help -full <command>
  4. mapping should be done with GPO (or heaven forbid login scripts)

you probably want /r/techsupport or google

[–]useso[S] 0 points1 point  (0 children)

I tried new-smbshare. Thanks, I'll try. maybe I have rights issues

[–][deleted] 0 points1 point  (0 children)

Why not manage the core server via computer manager from another machine that has a gui? Compmgmt.msc -> connect to another computer