[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Delete Sharing created by the user in your computer

Posted on 2011-03-15
6
Medium Priority
?
200 Views
Last Modified: 2012-05-11
Hi,

I need remove/delete sharing created by the user in your computer, it´s possible remove this sharing through of script or GPO of domain?

Regards,

Marcelo
0
Comment
Question by:fmarcelo14
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 12

Expert Comment

by:Sommerblink
ID: 35142855
If I understand you correctly, you are asking if there is a way to remove network shares from a client computer via script or GPO.

Via script, you could execute the following command:

net share * /delete

This would cancel out any persistent shares
0
 

Author Comment

by:fmarcelo14
ID: 35146930
I need remove local sharing folders created by user in your computer. Only sharing folders created by the user.
I attachment example: Sharing folders in local machine.

Regards,

Marcelo
Sharing-folders-in-local-machine.doc
0
 
LVL 16

Expert Comment

by:speshalyst
ID: 35147845
You need to write a script that will remove the Key "Shares" from
HKEY_LOCAL_Machine\System\CurrentControlSet\Services\lanmanServer

You can use these links to know how to uses the Reg.exe command
http://commandwindows.com/reg.htm
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 

Author Comment

by:fmarcelo14
ID: 35151372
Thanks for help, but I have question.
Your suggestion resolved to machine with SO Windows XP, but the machines with SO Windows 7 have UAC enable and I can´t disable the UAC, can I resolved this problem?
My Active Directory is Windows Server 2003.

Regards,

Marcelo
0
 
LVL 12

Accepted Solution

by:
Sommerblink earned 2000 total points
ID: 35158507
When you do things via GPO or logon script, they already run with elevated privilages.

If you do this via command-line, the 'net use' commands do not require elevated privilages. The reg command most likely will.
0
 

Author Comment

by:fmarcelo14
ID: 35168797
I received error, attachment error.
How can I elevated privillages in Windows 7 by bat ou vbs?

Thanks

Marcelo
Script-error.doc
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's recap what we learned from yesterday's Skyport Systems webinar.
How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question