![]() |
|
|
|||||||
| Petri.co.il is happy to award auglan the title of Most Valuable Member !!! |
| Register | Calendar |
Search |
Today's Posts |
Mark Forums Read |
| Notices |
|
|
Request for some Scripts.this thread has 1 replies and has been viewed 429 times
|
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||||||
|
||||||||
|
Hi Everyone,
I am too new to powershell scripting and we have an huge issue with our Windows SBS Server. Here is the story: Exchange Database got corrupt. We removed the users and one of those users was the Admin. It has been removed from Windows Users and Activer Directory users too. We have then then recreated the user. This led to a disaster: many files and directories have now and unknow SID as OWNER. I have changed them for the £document and setting directory£ using the TAKEOWN command but I want to run it on the whole system with a selective behavior: Those files and dirs wich have an Unknow user as owner must be changed to be owned by the Administrators GROUP, the other with a legitimate and know user or group must remain the same. Another script I need is one which recursively check for unkown users in the permission list for file and folders and where Unkown are found these actions should be performed: 1) Deleted Unkown user 2) Add the ADMIN user with full permission. Is there someone which could write these "simple" script for me ? As written these are my first steppes in this world and I am not able to do it by myself. Giuseppe Chillemi |
|
#2
|
||||||||||
|
||||||||||
|
Before start changing the acl on files and folders, have you tried to reanimate the deleted account in Active Directory?
/Rems
__________________
This posting is provided "AS IS" with no warranties, and confers no rights. __________________ ** Remember to give credit where credit's due ** and leave Reputation Points for meaningful posts |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Executing PS scripts via logon scripts | Avi | Powershell | 4 | 30th August 2010 04:07 |
| Search for Group Policy Scripts or Determine what scripts are running at logon | thedavil | GPO | 7 | 22nd November 2009 15:51 |
| Useful Scripts | AndrewH | General Scripting | 3 | 25th November 2007 23:55 |
| Scripts | eleibzon | General Scripting | 8 | 5th March 2004 15:47 |
| Where are the scripts? | tacman45 | General Scripting | 2 | 23rd January 2004 14:18 |