Add right-click Active Directory Open C Drive of remote computer
open_c_adintg.vbs
'Script to run Remote Assitance on domain computer
Set wshArguments = WScript.Arguments
Set objUser = GetObject(wshArguments(0))
Set fso = CreateObject("Scripting.FileSystemObject")
Set objShell = WScript.CreateObject("WScript.Shell")
'explorer /e opens windows explorer in default view
objShell.Run("explorer.exe /e," & "\\" & objUser.dNsHostName & "\c$\")
Save this script as .vbs file into \\DOMAIN.LOCAL\NETLOGON directory.
StartADSI Edit tool
StartADSI Edit tool
Right-Click and hit Connect To
Choose Configuration and Click OK
Look for the following Key:
CN=409,CN=DisplaySpecifiers,CN=Configuration,DC=domain,DC=local.
There look for CN=computer-Display. Right-click on CN=computer-Display and select Properties.
In attribute adminContextMenu add following line:
2, &Open C Drive,\\domain\NETLOGON\open_c_adintg.vbs
Description:
2 – order number
&Open C Drive – name of the item in context menu
When you click OK, OK in ADSI Edit your work is done. Now when you click on computer account you can see and use the "Open C Drive" context menu item:
If you get a warning, "We can't verify who creates this file. Are you sureyou want to open this file?"
Go to Internet Settings, Security Settings, Local Intranet Zone, and then add \\domain\NETLOGON to the Local Intranet Zone. This will stop the warning from happening when you open it.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.