Hello, yes indeed I had a typo. However, after removing the double quotes from the value of CN, I am getting error "A referral was returned by the server". Any idea what that would mean?
I have borrowed a few lines from MS script center to modify certain values on a user account. What I would like to do is to a phone number, then add a value in the "assistant" field. This field is defined in the AD schema but it is not displayed in the AD Users and Computers user account...
Thanks for the advise. I am fairly certain that we can ping and resolve the domain.com on their network. I will have the onsite contact check the DNS zone to see if it is set for dynamic updates. Anything else we should look into?
We were asked to assist troubleshooting a small network setup where there is 1 win2k with AD, DNS, WINS, DHCP. The problems users are having include: 1.not able to change password, they get "domain controller can not be located", 2. can't see local printer being shared, 3. can't join...
Thank you all so much for the tips! Although I was able to use Rtrim and Right(pcmodel,5) to resolve the issue, I will definitely try the LCase() string and the REPLACE function as alternatives.
Hi, all,
I answered my own question. What I had to do the following for the IF statement:
If Right(pcmodel,5) = "GX240" Then
I am ready the last 5 characters of the pcmodel avoiding the space issue.
Hi, all,
I am very new to scripting. Need your help on handling string comparison. I am trying to check whether a pc model matches, eg., "OpliPlex GX260". However, it seems that it is having difficulty with the space between "OpliPlex" and "GX260".
Here are...
I am very new to scripting. My challenge here is to write a script, which I will apply via Group Policy later, to use runas to execute a command with multiple switches. Below are the lines I am troubleshooting:
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "runas...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.