Welcome to WiseSoft.co.uk!
Register
About
Contact
Donate
Home
Scripts
Articles
Software
Forum
Links
Active Directory Schema Guide
Submit a Script
All Scripts
Active Directory
Computer
Database
Event Logs
Exchange/Email
File System
General
Printer
SQL Server
Account Page
Address Page
COMPlus Page
DialIn Page
Environment Page
General Page
MemberOf Page
Organization Page
Profile Page
RemoteControl Page
Sessions Page
Telephones Page
TerminalServices Page
Batch File
HTA
KiXtart
PowerShell
T-SQL
VB
VBScript
Computer Accounts
Domains, Forests & Trusts
Groups
Monitoring & Replication
Organizational Units
Schema Information
Search
Sites and Subnets
User Accounts
PowerShell
VBScript
VBScript
PowerShell
VBScript
VBScript
VBScript
VBScript
VBScript
PowerShell
VBScript
VBScript
PowerShell
VBScript
HTA
KiXtart
PowerShell
VB
VBScript
VBScript
KiXtart
PowerShell
VBScript
PowerShell
VBScript
Batch File
KiXtart
PowerShell
VBScript
HTA
VB
VBScript
HTA
KiXtart
PowerShell
VBScript
HTA
PowerShell
T-SQL
VBScript
All Articles
Active Directory
Miscellaneous
Programming
Scripting
Security
SQL Server
WiseSoft
Submit Article
All Software
TSQL DDL Code History Tool
Account Management Spreadsheet
Bulk AD Users
Password Control
Script Builder
NTFSFix
TSQL DDL Code History Tool
Bulk AD Users
Password Control
Script Builder
Account Management Spreadsheet
NTFSFix
Scripting
Guestbook
Bugs
Suggestions
General
Bugs
Suggestions
General
Bugs
Suggestions
General
Bugs
Suggestions
General
Bugs
Suggestions
General
Bugs
Suggestions
General
Login
User Name:
Password:
Remember me next time
Forgot Password?
Login using OpenID:
Create free account
Exclusive access for registered users
Registered Users:
20870
Click here to find out how you can help support wisesoft.co.uk!
home
recent topics
recent posts
search
faq
AspNetForum v.5.2.7.0
WiseSoft :: Forum
:: Forum
user:
psw:
remember me
|
lost password
|
register
Home
»
Script Builder
-
Script Builder - Suggestions
»
Remove Drives
|
5/9/2009 4:00:07 PM
permalink
Techie_4Life
Posts 5
First off I would like to say thank you for this program. I am liking it so far and I look forward to providing hopefully valuable feed back in the advancement of this application. To start off I would like to ask for an unmap feature.
Basically what I'm thinking is something similar the check box provided to map default printers. Instead the script would check to see if the obj. was a member and if it is add the drive if not it removes it. The script would read something like this I believe:
IF IsMember("ADMINS") THEN
MapDrive "S:", "\\svr\swlib$"
ELSE RemoveDrive "S:"
END IF
Function RemoveDrive(Byval Drive)
If objFSO.DriveExists(Drive) Then
objNetwork.RemoveNetworkDrive Drive
End If
End Function
The other functions needed for this to work are omitted and just the additions to the code have been pasted in. I've tested this and it works flawlessly. Now to just add it into the program so I don't have to manually edit it ^^_.
P.S. Maybe even having this feature for printers as well would be nice.
edited by Techie_4Life on 5/9/2009
edited by Techie_4Life on 5/11/2009
pages:
1
|
Home
»
Script Builder
-
Script Builder - Suggestions
»
Remove Drives