forums Home Forums Start Page Forums Frequently Asked Questions FAQ Member List Members List
Go Back   Petri IT Knowledgebase Forums > Windows Scripting > PowerShell is happy to award RicklesP the title of Most Valuable Member !!!
Register Calendar Calendar Search Petri IT Knowledgebase Forums Search Todays Posts Today's Posts Mark Forums Read

Request for some Scripts.

Request for some Scripts.

this thread has 1 replies and has been viewed 735 times

Closed Thread
Thread Tools Search this Thread Display Modes
Old 15th February 2012, 03:07
Giuseppe Chillemi Giuseppe Chillemi is offline
 Join Date: Feb 2012
  6 month star 12 month star
 Posts: 3
 Reputation: Giuseppe Chillemi is on a distinguished road (10)
Exclamation Request for some Scripts.

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
Old 15th February 2012, 12:46
Rems's Avatar
Rems Rems is offline
 Join Date: Mar 2005
  6 month star 12 month star
 Location: NL
 Posts: 2,438
 Reputation: Rems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to beholdRems is a splendid one to behold (979)
Default Re: Request for some Scripts.

Before start changing the acl on files and folders, have you tried to reanimate the deleted account in Active Directory?


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
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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

All times are GMT +3. The time now is 01:15.

Steel Blue 3.5.4 vBulletin Style ©2006 vBEnhanced
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Valid XHTML 1.0!   Valid CSS!

Copyright 2005 Daniel Petri