ICTwijs Automatisering & Consultancy
Achter 't Holthuis 34, 7391 TN Twello
Telefoon: 06-38812310 E-mail: info@ictwijs.nl
This week is wrote a script that created a mapping to another domein.
I compliled the script to an exe en created a service that started this exe with another username.
I tried:
1) net use /delete *
2) and script.
@echo off
net use * /delete /y
taskkill /f /IM explorer.exe
explorer.exe
3) Mounting a share to this drive.
4) Remove froom registry
To remove the incorrectly labeled mapped drive, follow these steps:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2
Then my colleague had a brilliant idee:
Use psexec!
The mapping was originally created by the user system, so you have to remove them under the system account.
Psexec uses the system account.
psexec \\remote -u domain\account -p passwd -e cmd.exe
net use /delete *
or
psexec \\remote -u domain\account -p passwd cmd.exe
net use /delete *
ICTwijs
Achter 't Holthuis 34
7391 TN Twello
Tel: 06 - 38812310
E-mail: info@ictwijs.nl
Indien u teruggebeld wilt worden kunt u hieronder uw telefoonnummer achterlaten. Wij zullen dan zo spoedig mogelijk contact met u opnemen.
Een geheel vrijblijvende offerte of meer informatie aanvragen behoort ook tot de mogelijkheden. Vul hiervoor ons contactformulier in.
Commentaar