Krisna Ismayanto

.\new-TestCasConnectivityUser.ps1 fails to verify OU

So I got this script executed at my Mailbox Server, I’m using Exchange 2010 SP1 by the way. But it can’t verify the Organization Unit (OU).

image

So to make it work just add a parameter after the command script

.\new-TestCasConnectivityUser.ps1 –OU domainname.com/Users mine like this Smile

image

and that’s it, happy monitoring with SCOM Open-mouthed smile

Share this post: | | | |
Our AD environment

A quick and useful PowerShell one-liner to return information about your AD environment is:

[System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest()

image

I Red heart PowerShell, don’t you? Open-mouthed smile

Share this post: | | | |
Posted: Sep 15 2011, 10:54 AM by kud0s | with no comments
Filed under: ,
VMM Naming Convention

This is HILARIOUS! Angry smile

I’ve got error when installing SCVMM 2012 RC, terribly sorry I didn’t print screen the error, but the same error explanation just like this link :

http://jeffwouters.nl/index.php/2011/06/virtual-machine-manager-cannot-process-the-request-because-an-error-occurred-while-authenticating-srv-scvmm-01-network-lan/

The above link is happening with SCVMM 2008 R2 SP1

http://social.technet.microsoft.com/Forums/en-US/virtualmachingmgrsetup/thread/46fd012d-f5ac-4025-aac1-29f62f1c6124/

and once again, the above link is happening with SCVMM 2012 Beta, now is happening to me, arrghh Steaming mad 

Renaming the hostname is pretty easy, but because this is my lab environment and I put all the roles & services together including AD CS roles! Crying face

Share this post: | | | |
Posted: Sep 14 2011, 04:28 PM by kud0s | with 1 comment(s)
Filed under:
SCVMM 2012 RC release!

Maybe you guys already know that SCVMM 2012 RC already available for download, if not, you can download it here Smile.

Well, the other good news is Self-Service Portal already include in the installation media Open-mouthed smile.

image

Off we go, begin installation, will get back to you guys soon! Winking smile

Share this post: | | | |
Posted: Sep 14 2011, 01:26 PM by kud0s | with no comments
Filed under:
How to export subnet in a specified Sites?

Active Directory Sites and Services doesn’t provide this, it doesn’t have an export option, so I come to think in mind if there’s no GUI provide, it can by using PowerShell Smile.

So here is the script, just copy paste to text editor and save it using .ps1 extension.

$siteName =  "Default-First-Site-Name"
$configNCDN = (Get-ADRootDSE).ConfigurationNamingContext
$siteContainerDN = ("CN=Sites," + $configNCDN)
$siteDN = "CN=" + $siteName + "," + $siteContainerDN
$siteObj = Get-ADObject -Identity $siteDN -properties "siteObjectBL", "description", "location" 
foreach ($subnetDN in $siteObj.siteObjectBL) {
    Get-ADObject -Identity $subnetDN -properties "siteObject", "description", "location" 
}

Find more at : http://blogs.msdn.com/b/adpowershell/archive/2009/08/18/active-directory-powershell-to-manage-sites-and-subnets-part-3-getting-site-and-subnets.aspx

Share this post: | | | |
Posted: Sep 06 2011, 12:12 PM by kud0s | with no comments
Filed under: ,
Get all disconnected mailbox via EMS

After you disable mailbox, you can view all the disconnected mailbox using Exchange Management Shell (EMS).

Get-MailboxStatistics -Server <server> | where { $_.DisconnectDate -ne $null } | select DisplayName,DisconnectDate

EMS01

Share this post: | | | |
DHCP broke the WDS :(

Ok, here the story. I’ve got 1 box SCCM Server, include PXE Service Point (PSP), WDS installed in it too.

First of all the DHCP is using a network device, because limitation of the network device operating system then I decided to install DHCP roles at the SCCM server.

But after the DHCP is up, the Admin guy decided that the DHCP server have to move to Domain Controller. Of course I remove DHCP roles at SCCM server.

Then something bad happen! I can’t deploy OSD again Broken heart no error issue at SCCM logs, then I go to event viewer Windows Deployment Service, bingo! this error came up:

An error occurred while trying to create the UDP endpoint for WDSTFTP provider on interface 10.1.1.6:69. This can happen if the network interface was disabled or changed, or some other application is already using the port. The provider  will not be able to receive requests on this interface.
 
Error Information: 0x2740

I really think hard what’s really happen with the network interface, what the hell happen anyway?! Angry smile After some tracing down the event viewer, the error appear after I restart SCCM server, after I remove the DHCP roles!

So I’m guessing the DHCP roles not remove cleanly. The binding to my network interface still there. So the solution is deleting registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\<guid>

Just delete the guid that have DHCP entry in it, crazy huh? But it works, error gone Open-mouthed smile

Share this post: | | | |
Posted: Aug 12 2011, 02:29 PM by kud0s | with no comments
Filed under: , ,
Maintenance Task status of SCCM

So many maintenance task running at SCCM server, to figure it out, you need a query to your SCCM Database, here you go:

select *,
floor(DATEDIFF(ss,laststarttime,lastcompletiontime)/3600) as Hours,
floor(DATEDIFF(ss,laststarttime,lastcompletiontime)/60)- floor(DATEDIFF(ss,laststarttime,lastcompletiontime)/3600)*60 as Minutes,
floor(DATEDIFF(ss,laststarttime,lastcompletiontime))- floor(DATEDIFF(ss,laststarttime,lastcompletiontime)/60)*60 as TotalSeconds
from SQLTaskStatus

the result just like this, neat isn’t it Smile

SCCM

taken the source from: http://anoopmannur.wordpress.com/2010/12/06/reporting-of-maintenance-tasks-status-of-sccm-primary-server/

Share this post: | | | |
Posted: Aug 12 2011, 02:01 PM by kud0s | with no comments
Filed under:
Enable proxy SCOM Agent, Bulk!

Okay, is quite easy to enable agent proxy for single server, but what about you have to enable more than 50 servers ? a bit tiring right ?

So my internet friend Boris Yanushpolsky create a tool that facilitate it so you can bulk enable Smile. How to use it ? pretty easy Smile.

Double clict the application, click File > Connect

image

Type the RMS name, click Connect

image

There you go, a lot of group appear, click one of it then at the right pane will list all the server, right click the server that you want to proxy enable then choose Enable proxying

image

You can download ProxySettings. Enjoy! Open-mouthed smile

Share this post: | | | |
Posted: Apr 17 2011, 08:36 PM by kud0s | with no comments
Filed under:
Where’s my physical host?!

Boss : please migrate server A which is a VMs that running at Virtual Server 2005 to Hyper-V right away.

Me : roger that boss!

back then I was thinking: “Hey, where’s Server A physical host ?” , after do some searching at the internet, is quite easy. Actually, the physical host is stored in the registry at this location:

HKLM\SOFTWARE\Microsoft\VirtualMachine\Guest\Parameters\PhysicalHostNameFullyQualified

ok, that’s it. I got the physical host and ready to move it! Open-mouthed smile

Share this post: | | | |
.PS1 Execution Policy

Kejadian ini terjadi ketika saya mau install Exchange 2007 SP3 di Windows 2008 R2, sebelum instalasi dilakukan tentunya semua prerequisites harus sudah dilakukan bukan ?

Nah saya ketemu script untuk itu, yaitu : Set-Exchange2010Prereqs.ps1

Tapi ketika akan mengeksekusi script diatas muncul error seperti di bawah ini :

image

Intinya keblock policy kali ya, solusinya adalah buka policynya supaya unrestricted sementara :)

image

Setelah diexecute ulang, muncul deh pilihan prerequsitesnya Open-mouthed smile

image

Share this post: | | | |
Lync status Appear Offline

Busy ? You can set your status to appear offline!

image

Terinspirasi dari link : http://www.expta.com/2011/01/how-to-enable-appear-offline-status-in.html

Share this post: | | | |
Posted: Jan 18 2011, 06:16 PM by kud0s | with no comments
Filed under:
Create Collection Windows 7 at SCCM

Menulis agak susah buat saya kalau boleh jujur, kenapa bisa begitu ? Pertama, waktu. Ya, hampir setiap hari pulang tidak tentu dari kantor, sampai rumah sudah letih kecuali ada call untuk VPN ke tempat client Smile. Yang kedua mungkin saya yang malas, he2x Open-mouthed smile.

Malam minggu ini kebetulan tidak pergi, jadi ya saya sempatkan diri untuk nulis di blog. Ok, let’s get it started!. Ketika kita telah melakukan instalasi SCCM 2007 SP2 dan apa yang kita butuhkan tidak ada ? Windows 7 Systems Collection! Oleh karena itu saya akan menjelaskan bagaimana kita membuat collection tersebut.

Pertama-tama buka ConfigMgr Console, expand Site Database, Computer Management, right click Collections, choose New Collection

image

Maka akan muncul seperti jendela di bawah ini :

image

Give it a Name and Comment, then click Next. At the Membership Rules, click the tiny icon just like database one image Don’t forget to give it a Name Smile

image

Click Edit Query Statement, click Criteria tab, and then click the yellow star image

Configure the following criteria :

  • Criterion Type: Simple value
  • Where: System Resource – Operating System Name and Version
  • Operator: is like
  • Value: Microsoft Windows NT Workstation 6.1

image

Click OK three times when you finished.

image

Click Next three times, and Close. Ok, that’s a wrap, now you can see all the Windows 7 Systems at your ConfigMgr Console Smile

Share this post: | | | |
Posted: Jan 15 2011, 07:58 PM by kud0s | with no comments
Filed under: ,
ConfigMgr Users

Skenarionya adalah ketika install suatu produk dalah hal ini adalah SCCM, misalkan user A yang merupakan member Domain Admins. Sampai akhir hayat biasanya user A yang digunakan untuk memanage produk tersebut Smile.

Nah bagaimana mau menambahkan user lain untuk memanage si SCCM, pertama buka SCCM Console, expand Site Database > Security Rights > Users

image

Klik kanan Users, pilih Manage Users

image

Maka akan muncul jendela seperti di bawah ini ; Klik Next untuk melanjutkan

image

Karena saya akan menambahkan user baru, maka saya pilih yang "Add a new user:” ; klik Browse kemudian masukkan user yang dikehendaki, klik Next

image

Nah di bawah ini adalah jendela dimana user ini bisa dapat hak akses untuk kemana saja, kasarnya bisa ngapain aja sih user si IrvanPr, karena IrvanPr ini mau jadi admin, saya copy dari user demo yang merupakan admin SCCM sebelumnya. Klik Next

image

Source user adalah demo, klik Next saja untuk melanjutkan

image

Accept the default value, then click Next

image

Baca Summary nya kalau mau Smile with tongue out, klik Next

image

Tunggu progressnya hingga selesai , Close kalau sudah selesai

image

Selesai dech, IrvanPr sudah jadi Admin SCCM Open-mouthed smile.

Share this post: | | | |
Posted: Dec 20 2010, 07:16 PM by kud0s | with no comments
Filed under: ,
Peeking Lync

Tulisan ini hanya iseng saja karena mood lagi tidak enak Sad smile. Don’t ask why, every engineer may have the same experience.

Ok, sudah ada yang pakai Lync belum ? Saya sudah dong Smile with tongue out. Iseng-iseng ngintip di taskbar apa sih yang ditongolin kalau kita sorot Lync icon di taskbar, berikut tampilannya :

image

Jadi saya bisa set status directly dari taskbar, neat huh? Open-mouthed smile

Share this post: | | | |
Posted: Dec 20 2010, 06:21 PM by kud0s | with no comments
Filed under:
More Posts Next page »