this scripts works fine for forcing wsus updates on windows 7 workstation but I cannot get it to work on xp. I get this code error: Line 3 char 1 object required update searcher. thanks
WScript.Echo "Searching for updates..." & vbCRLF
Set searchResult = _
updateSearcher.Search("IsInstalled=0...
I am having issues on some windows 7 mapping the drive "M". How do I create an "if else" so that only the members of the group can login to strRemotePath2 = "\\encsd3\Data\PrintShop". Thanks
'Option Explicit
Dim objNetwork, strRemotePath1, strRemotePath2, strRemotePath3
Dim strDriveLetter1...
Got it! This script was from an ebook I purchased from an expert. You would think it would be error free. Anyhow, corrected and now runs error free. Now that I have a little more knowledge, I am going to create ElseIf with groups since under "users" I have 3 other groups.
Thanks for the...
Ok,getting somewhere now... I rebooted and ran this script and it maps to K:; however, I get this message at the end of the script:
C:\Users\hblancaster\Desktop\home.vbs(15,1)
Microsoft VBScript runtime error: Variable is undefined: 'DriveLetter'
Option Explicit
Dim objNetwork...
The user login name is hblancaster and the folder name hblancaster. I had changed the name to hbancast for testing. When the mapping process is taking place, what exactly is it looking for. Sorry, I am a little confused when you say " are you using the correct folder name". How to do I verify...
I can browse to the directory from the user login, save data and delete. I checked the rights on data= a shared folder with domain users permissions=full control and NTFS rights = read+execute,list, read
Users = domain user has NTFS read+execute, list, read
HBLancast=NTFS full control.
Again, thanks for your help!!!
I ran the following script:
Option Explicit
Dim objNetwork, strDriveLetter, strUNCpath, strUser
strDriveLetter = "K:"
strUNCpath = "\\encsd3\data\users\admin\"
On Error Resume Next
Set objNetwork= CreateObject("Wscript.Network")
if (err.Number) then msgbox...
I can browse. I changed the name for testing but still no go. Just perplexed why it will not work. I can map from cam line it works
C:\Users\hblancaster>net use K: /persistent:yes \\encsd3\data\users\admin\hblanc
ast
The command completed successfully.
C:\Users\hblancaster>
Thanks! Here is the updated script. I added the Option Explicit and corrected the typos. Still getting same error: Here is the error message: Got Error#-2147024841. The specified network resource or device is no longer available, while mapping \\encsd3\data\users\admin\HBLancaster to K:
Option...
Here is the error message: Got Error#-2147024841. The specified network resource or device is no longer available, while mapping \\encsd3\data\users\admin\HBLancaster to K:
Thanks for the reply. Here is the complete path to the user folder.
\\encsd3\data\USERS\Admin\HLANCAST
Is the name of the folder(HLANCAST) the problem or do I need to change the syntax: strUser =objNetwork.UserName ?
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.