selectMultiple() 함수를 이용한 Lookup 구현

Posted by Alvin You
2015. 4. 3. 11:08 Dynamics AX/Development

아래 코드는 selectMultiple() 함수를 이용한 Lookup 화면 구현에 대한 코드입니다.

 

 

 

Powershell ISE실행시 Sharepoint Management Shell 자동으로 로딩하기

Posted by Alvin You
2015. 4. 2. 15:09 Sharepoint

Windows Poswershell을 어느 정도 아시는 관리자라면 Windows Powershell ISE 편집기를 아실겁니다.

깔끔한 구성에 자동완성 기능등 Powershell 작성에 최적의 환경을 가진 프로그램이죠.

Windows Management 외의 다른 서버 관리를 위해서는 아래와 같이 다른 서버 모듈의 Management Shell Snapin을 로딩해야 하는 번거로움이 있습니다.

Sharepoint 관리용 Snap-In :

   Microsoft.Sharepoint.Powershell

Exchange 관리용 Snap-In :

   Microsoft.Exchange.Management.PowerShell.E2010

   Microsoft.Exchange.Management.Powershell.Support

   Microsoft.Exchange.Management.Powershell.Setup

을 Add-Snapin이라는 Powershell cmdlet으로 로딩 시켜주어야 합니다.

Add-PsSnapin "Microsoft.Sharepoint.Powershell"

하지만, 위 작업을 Windows Powershell ISE가 실행될 때 자동으로 로딩되도록 하는 방법이 있어 알려 드리겠습니다.

아래 Script를 실행해 Profile.ps1 파일을 엽니다. Profile.ps1 파일은 Powershell ISE가 실행될 때 자동으로 실행되는 스크립트 내용입니다.

 

Profile.ps1 파일에 아래 내용을 넣어 자동으로 Sharepoint Management Shell이 로딩되도록 합니다.

 

[PowerShell]Site Collection, SubSite 크기 확인

Posted by Alvin You
2015. 4. 1. 16:13 Sharepoint

아래 Powershell 스크립트를 이용하면 Sharepoint Site Collection의 크기를 GB로 확인 할 수 있습니다.

[결과확인]

 

Site Collection의 전체 크기를 확인했다면, 하위의 Web 의 크기는 어떻게 확인 할 수 있을까요?

아래 스크립트를 통해서 확인할 수 있습니다.

# 모든 SubSite의 크기를 가져옴.

[결과확인]