Persistent Symbolic Link to NAS share on 2012r2

Scouse

Giant Thundercunt
FH Subscriber
Joined
Dec 22, 2003
Messages
35,979
Got a question:

I have a CIFS NAS share at \\some.ad.server\Share

I have a 2012r2 server called Bob. It runs an app called App. This app runs under "AD\AppService"

App writes reports to the reports folder at C:\ProgFiles\App\Reports

I'd like to change the reports folder to actually be \\some.ad.server\sharename so App can write Reports but actually be writing to the Share


Question: How do I do that persistently without having a user logged on to the server?
 

Zarjazz

Identifies as a horologist.
Joined
Dec 11, 2003
Messages
2,383
Got a question:

I have a CIFS NAS share at \\some.ad.server\Share

I have a 2012r2 server called Bob. It runs an app called App. This app runs under "AD\AppService"

App writes reports to the reports folder at C:\ProgFiles\App\Reports

I'd like to change the reports folder to actually be \\some.ad.server\sharename so App can write Reports but actually be writing to the Share


Question: How do I do that persistently without having a user logged on to the server?

mklink /D C:\ProgFiles\App\Reports \\some.ad.server\sharename
 

Scouse

Giant Thundercunt
FH Subscriber
Joined
Dec 22, 2003
Messages
35,979
mklink /D C:\ProgFiles\App\Reports \\some.ad.server\sharename
Yeah, but want it to run under specific creds, not under the local system account.

Is that persistent over reboots btw?
 

Zarjazz

Identifies as a horologist.
Joined
Dec 11, 2003
Messages
2,383
Yeah, but want it to run under specific creds, not under the local system account.

Is that persistent over reboots btw?

It needs admin priv to create the link iirc and yes it's persistant.
 

Scouse

Giant Thundercunt
FH Subscriber
Joined
Dec 22, 2003
Messages
35,979
It needs admin priv to create the link iirc and yes it's persistant.
Yeah, it's just the how dya get it to run under that specific account now. I'll figure it ;)

It's sorta where I was leaning. Cheers man :)
 

MYstIC G

Official Licensed Lump of Coal™ Distributor
Staff member
Moderator
FH Subscriber
Joined
Dec 22, 2003
Messages
12,362
Start -> Command Prompt -> Shift + Right Click -> Run as different user
 

Scouse

Giant Thundercunt
FH Subscriber
Joined
Dec 22, 2003
Messages
35,979
Start -> Command Prompt -> Shift + Right Click -> Run as different user
Aye. I'll have to give that service account admins on the box as only admins can create sym links.
 

TdC

Trem's hunky sex love muffin
Joined
Dec 20, 2003
Messages
30,801
this might sound silly but why not configure App's output directory to simply be on the share?
 

old.Osy

No longer scrounging, still a bastard.
Joined
Dec 22, 2003
Messages
2,632
this might sound silly but why not configure App's output directory to simply be on the share?

I would hazard a guess that the App is coded poorly and doesn't support that.
 

TdC

Trem's hunky sex love muffin
Joined
Dec 20, 2003
Messages
30,801
aye, or it's a question for a case study or something. either way, aargh :(
 

Scouse

Giant Thundercunt
FH Subscriber
Joined
Dec 22, 2003
Messages
35,979
There's one output that does that but it looks like there's a second that doesn't support it.

It's not even my job - the 'app team' should kick it up to architecture for guidance, but they're more than useless so I'm trying to help out.

I've delivered their infrastructure as requested, as is my remit, but...
 

Ormorof

FH is my second home
Joined
Dec 22, 2003
Messages
9,817
I had a lot of fun writing a C# app that could handle network shares, considering its a windows feature the .NET framework handles it quite poorly
 

Users who are viewing this thread

Top Bottom