
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-20-2017 12:51 AM
I've read every thread, done successful deployment before and cannot get the simple cmd prompt based deployment working.
1. I create a deployment.
2. Add a step 'Command'
3. Type in 'net use S: /p:yes "\\server\location"'
4. Deploy.
Does not map the drive but running it locally (the command) works every time.
1. I create a deployment.
2. Add a step 'Command'
3. Type in 'net use S: /p:yes "\\server\location"'
4. Deploy.
Does not map the drive but running it locally (the command) works every time.
Solved! Go to Solution.
Labels:
- Labels:
-
General Discussion
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2017 04:40 PM
As mapping a network drive via Net Use requires an elevated command prompt while the user is logged on, this is unfortunately not something that can be done via the deployment module using Net Use.
You may possibly be able to map drives using another method though:
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\" /v NetDriveMap /t REG_SZ /d "net use X: \\ServerName\ShareName /persistent:yes"
You may possibly be able to map drives using another method though:
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\" /v NetDriveMap /t REG_SZ /d "net use X: \\ServerName\ShareName /persistent:yes"
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2017 04:40 PM
As mapping a network drive via Net Use requires an elevated command prompt while the user is logged on, this is unfortunately not something that can be done via the deployment module using Net Use.
You may possibly be able to map drives using another method though:
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\" /v NetDriveMap /t REG_SZ /d "net use X: \\ServerName\ShareName /persistent:yes"
You may possibly be able to map drives using another method though:
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\" /v NetDriveMap /t REG_SZ /d "net use X: \\ServerName\ShareName /persistent:yes"
