NetMap function Problem in dms script
search cancel

NetMap function Problem in dms script

book

Article ID: 372157

calendar_today

Updated On:

Products

CA Client Automation - IT Client Manager CA Client Automation

Issue/Introduction

In DMS script call of NetMap function to map a share returns False.
 
But "net use" command for same share is working fine.
 
Example :
ServShare="\\share1\office365$\test"

If NetMap("Y:", ServShare) Then
  PRINT "NetMap is OK"
Else
  PRINT "NetMap is not OK"
Endif
 
Execution of this script returns "NetMap is not OK"
But execution of this command is working fine :
net use y: \\share1\office365$\test

Environment

Client Automation 14.5 CU6 or CU7

Cause

The logged user has enough rights to map the share. net use command works fine without specifying user/password.

NetMap calls a "map share" windows function using an empty string for password. But in some environment empty string password does not work and NULL value should be used instead of empty string.

Resolution

Open a case at Broadcom Technical Support and ask for the fix T55V440
This fix delivers the file 

Name : dmscript.exe
Size : 385 280 bytes
Modified Date : 12/07/2024
Version : 14.5.0.601