Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

script doesnt map on windows 7 64 bit

$
0
0

I have the following script running for all my 32 bit machines how ever when i add a 64 bit PC to the domain the script does not map the public share ? does anyone have any insight on this?  Below is my code

Set objWSHNet = CreateObject("WScript.Network")
On Error Resume Next
objWSHNet.MapNetworkDrive "S:", "\\canonsp01\publicfolders"
if err.number=0 then
  sDrive = "S:\"
  Set oShell = CreateObject("Shell.Application")
  oShell.NameSpace(sDrive).Self.Name = "Public Folders"
end if
hdrive = "H:\"
oShell.NameSpace(hDrive).Self.Name = "My Home Drive"


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>