Wednesday, March 23, 2011

Pass credential with cmd as arugments to file and get its value for windows2003

Powershell with dynamic parameter addition. I suppose this would be the technique.
param([string]$user, [string]$hostname)
$cmd = "Get-WmiObject -class Win32_Service -computername `$hostname"
if($user -ne ""){
$myCred = Get-Credential $user
$cmd = $cmd + "-credential `$myCred"
}
Invoke-Expression $cmd


LIKE the one below can be taken as test.ps1 file and run to execute the cmdlets.


param($Argument1,$Name,$ParentContainer,$UserPassword,$email,$firstname,$Intials,$lastname,$samaccountname,$userprinicipalName,$displayName,$credntial);

$password = 'P@ssw0rd' | ConvertTo-SecureString -asPlainText -Force

$username = "msgdevexch3.local\administrator"

$credential = New-Object System.Management.Automation.PSCredential($username,$password);
$cmdExe = $Argument1+" -Name '"+$Name+"' -ParentContainer '"+$ParentContainer+"' -UserPassword '"+$UserPassword+"' -Email '"+$email+"'" + "-credential `$credential ";

$cmdExe

Add-PSSnapin Quest.ActiveRoles.ADManagement
invoke-Expression -command $cmdExe;


Tuesday, March 22, 2011

Thy absence made me ghoul

Now only memories makes thy presence,
Life sunk in darkness, awaiting for thy condolence.

Nature's signals are going unnoticed,
Scared to keep a step out, but
enticed.

Tears roll down with remembrance,
Behaviour modifies to be aberrant
,

Neither ever held hands nor hugged,
But still feels myself to be clanged,

Each time when you left me alone,
Had hope always, we would be again one,

Now clouds of hope, came behind thy soul,
Myself searching in graveyard like ghoul.

Monday, February 21, 2011

Sailing on the ocean of world

Sailing on the ocean of world,
Bounded with illusions of life.

Illusions of immortality of life and pleasures,
Events are yet to be encountered, driving mind and soul.

Like waves on ocean, on fullmoon night.
Combined with sound of foxes and owls howl.

Feelings or thoughts erupting from heart.
To protect thyself from getting into evil's bowl.

Just a turn behind, path sailed in past,
Seems that were deserved.

Monday, January 3, 2011

Just a prosaic entity, a friend

Flying in sky of world, with directions unknown,
Some are destined, to find their goal very soon,
Some get togather, with their thoughts,
Some are made to be togather, to comprehend,

To fly high and find their destination

A rule exists to fly togather,
To fly with chosen one or with one chosen for us.
Along with choosed one, many fly with us,
Am one among them, an unseen one,

Desired to fly high, and move
Am not an angel, to bring your dreams true,
Not even a fairy, to fill life with pleasure,
Don't get scared, am not a demon to put an end,

Just a prosaic entity, a friend
Who has nothing but smile and few lines to share.

Sunday, January 2, 2011

Verses comes from soul weaved in mind

Verses comes from soul weaved in mind,
Thoughts floating in deep heart,
Lines for one missed, cared
Hiding, searching for them,

Quoting words for thee passion, career
Awaiting for critics, information to improve,
To boom and achieve one talent with sheer

Sunday, October 24, 2010

For sister, with Love

Cared and loved each other,
Enjoyed our childhood together,

Pain and cry appeared in eye,
Pleasure and happiness triggered smile,

Which were tides in life of ocean,
Which set our mind clear and clean,

Born to our parents, we are one,
Heavenly powers also can't break us none,

Seen you from my day one,
Your presences never made me alone,

Grateful for god who gave me you,
Anything more precious after parents, is you,

You are my charm, sister, I owe you,
Any minute, Any second of need, you would find me next to you,


May be filmy, dramatic words, Just wanna say and express my emotions...
"I love you sis, truly".

Featured Post

Quest

Small life, wishing so much, Unware of our destination Moving all around in search of unknown peace.. Peace, which in turn brings smile ...