Wednesday, April 15, 2009

is not accessible access is denied

ขั้นแรกก็ต้องทำให้เมนูใน Folder Options มี Security เพิ่มขึ้นมาก่อน

1.เปิด Windows Explorer > Tools > Folder Options > tab View บรรทัดสุดท้ายให้ยกเลิกการติ๊กหน้า
Use simple file sharing (Recommended) > กด OK
เสร็จแล้วเมื่อคลิกขวาที่โฟลเดอร์ เลือก Properties
จะมี tab Security เพิ่มมา (ปกติจะไม่มี)

2.คลิกขวาที่โฟลเดอร์ E:\Documents and Settings\user01 เลือก Properties

3.เลือก tab Security จะมีข้อความเตือน ให้คลิก OK

4.คลิก Advanced แล้วคลิก tab Owner

5.ในช่องรายการชื่อ (Name) คลิก
Administrator ......
Administrators .....
ทำเครื่องหมายในช่อง Replace owner on
subcontainers and objects

6.คลิก OK ตอบ Yes เมื่อมีข้อความเตือน

7.คลิก OK เป็นอันจบกระบวนการ


ข้อมูลจาก pantip.com

How to configure Exchange 2007 public folder permissions

How to configure Exchange 2007 public folder permissions

For some reason when you use the Public Folders tool in Exchange 2007 SP1
you can't change the client permissions for the public folders.
So to do so, follow the below
steps:
1) Logon to your 'Exchange 2007' server.
2) Open the 'Exchange Management Shell'.
3) Type the below, replaceing 'public folder name' with your public folder name/path and you must keep the \ at the front of it and also replace 'username' with the username:

Add-PublicFolderClientPermission -Identity "\public folder name" -AccessRights Owner -User username

That's it, just repeat for any other public folders that you wish to change the permissions on.
The above example is to assign Owner permissions to the user, but you can replace Owner with the below:

None
Owner
PublishingEditor
Editor
PublishingAuthor
Author
Non-EditingAuthor
Reviewer
Contributor

http://technet.microsoft.com/en-us/library/bb310789.aspx

Sunday, April 12, 2009

How to remove disconnected mailboxes in Exchange Server 2007

How to remove disconnected mailboxes in Exchange Server 2007
If you are lookin for a way how to purge disconnected mailbox from Exchange 2007 from Exchange Management Console you in for a big surprise because only way to do it is by using shell. Exchange Server 2007 doesn't allow you to purge the disconnected mailbox and in order to remove single or multiple disconnected mailboxes you can do following:

Get all disconnected mailboxes
Get-MailboxStatistics where-object { $_.DisconnectDate -ne $null } Select DisplayName,MailboxGuid

Remove a single disconnected mailbox
Remove-Mailbox -Database -StoreMailboxIdentity -confirm:$false

Remove all disconnected mailboxes
$users = Get-MailboxStatistics where-object { $_.DisconnectDate -ne $null } Select DisplayName,MailboxGuid,Database

Now, all disconnected mailboxes are in a variable and you need to run following cmdlet to remove all of them:
$users ForEach { Remove-Mailbox -Database $_.Database -StoreMailboxIdentity $_.MailboxGuid -confirm:$false }

Friday, April 3, 2009

แก้เวลาเร็ว ใน PHP5

Appserv - win32 - 2.5.9.exe ตัวนี้ลงเสร็จเวลาจะเร็วไป 1 ชม
ให้แก้ php.ini ใน Windows หรือเรียกจาก Shotcut ที่เมนู Start>> Appserv> Serv> Conf
] วันที่ [
; กำหนดเขตเริ่มต้นใช้ functionsdate.timezone วันที่ = Asia / Bangkok
AppServ Restart
ทดสอบกับ SRP นี้ครับ
/ /   / thetimeis / $ = GETDATE เวลา (());
    / thehour $ = $ thetimeis ['] ชั่วโมง';
   / theminute $ = $ thetimeis] นาที [';
    / / $ thesecond = $ thetimeis ['] วินาที';
  / / if ($ thehour> 12) ($ thehour = $ thehour -- 12;
    PM"/ / DN =";
  / อื่น) ($ DN ="AM";
   / /) echo"$ thehour : $ theminute : $ thesecond $ DN";
/ /?>
เด