Skip to main content

Posts

TO RUN CMDLETS IN POWERSHELL in Exchange 2003

============================ TO RUN CMDLETS IN POWERSHELL ============================ =>While Quest cmdlets run in their own shell, the quest snap-in can also be registered in the Powershell by running the following command, after installing Quest Management Shell. Go to Powershell and type as below: Add-PSSnapin Quest.ActiveRoles.ADManagement =>Upon the shell start, the console may display a message stating that a certain file published by Quest Software is not trusted on your system. This security message indicates that the certificate the file is digitally signed with is not trusted on your computer, so the console requires you to enable trust for the certificate issuer before the file can be run. Press either R (Run once) or A (Always run). To prevent this message from appearing in the future, it is advisable to choose the second option (A). =>Try 'Get-Help Get-QADUser' command, its provides the syntax of QADUser command +++++++++++++++++++++++++++++++++++++++...

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 '"+...

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.
Photos by dhanrajm

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.

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.