Skip to main content

Posts

Last password reset.

Service account or application pool on multiple platform still sometime password  for these id's don’t work may be because someone else has changed it or we don’t have correct password which leads to confusion so, to avoid this confusion before resetting password I would recommend using following command to check when last time password was change. Get-aduser 'username' -Properties passwordlastset |Format-List

Netstat Command.

Geek Commands: - Commands save you during application load test :) netstat | findstr ESTABLISHED netstat | findstr LISTEN netstat | findstr CLOSE_WAIT netstat | findstr TIME_WAIT Showing PID used by Port netstat –o | findstr $portnumber Protocol statistics You are working on Protocol statistics for either any of this protocol (IPv4, IPv6, ICMPv4, ICMPv6, TCP or UDP) netstat –s netstat -s |Findstr Errors Getting routing Information This command will show us entire routing table. netstat –r Interface statistics: (sent and received details) netstat-e Getting Fully Qualified Domain Name of foreign address (remote host) netstat –f Finally finding port number for “Exe” or service This command can give you real time information about which exe is using which port and communicating on which foreign ip address. Command: - netstat -v -b

Talking computer- Powershell.

Fun stuff with Powershell scripting :) What happen when your computer start motiviating you to do better job ? :) i am not gone crazy. You just need one command to put your powershell script in startup which talks . Powershell -noninteractive -nologo "script path" You can certainly download my script and change to whatever you like to hear from computer. Please find attached powershell script. Note :- If you want to hear content in male voice just change line 5 to "$PowerShellSpeak.SelectVoice('Microsoft David Desktop') but if you want hear your computer in female voice use "$PowerShellSpeak.SelectVoice('Microsoft Zira Desktop')" Script: add-type -assemblyname system.speech $PowerShellSpeak = New-Object System.Speech.Synthesis.SpeechSynthesizer #Intro-Chrous $PowerShellSpeak.SelectVoice('Microsoft Zira Desktop') $PowerShellSpeak.speak("Good Morning") $PowerShellSpeak.speak(" The key to successful leadership toda...

Powershell for pulling information from existing CSV

I was working on script which was suppose to pull information from existing .CSV file, another problem is you dont know when new file get generate and you have to fetch data from it.  hence what i did is wrote a code which pulls the information from latest file which got created recently under that particular folder. $file = get-childitem "Path" | select -last 1 Instead of  path put the share name or unc path without "". Write-host "File Selected - $($file.fullname)" This will give actually information about which file you are targeting to pull information. Script.:- $file = get-childitem "Path" | select -last 1 $ServerInfo = import-csv $file.fullname  $ServerInfo |? OU -eq 'General' | Export-Csv C:\TEMP\\Eapps_$currentdate.csv Write-host "File Selected - $($file.fullname)"

OSD or Onscreen menu is locked.

OSD or Onscreen menu is locked. I am having HP 20 Inch monitors on my Desk and was not able to change brightness and Sleep Timer etc for my monitor and was not able to get into the menu due to On Screen menu locked error. I know it's irritating issue. fix what i found for this is "Just hold menu button for 30 Sec and it will be solved. :)

Specified path was invalid (During Cluster creation for File Witness server)

Specified path was invalid (During Cluster creation for File Witness server) Hey Guys,  I just want to explain how small things can impact you while working on New cluster creation. recently we were working on cluster creation and file witness share was not accepted by Cluster, After  troubleshoot we come to know there were 2 issues one with Share permission and other is Security permission. In our case we were using comman id for creating cluster and Id was having permission to login to server.  but the same id was not part of administrator group on server where file witness share was created  and in share permission also it was not showing listed hence cluster was not accepting file Path. Please make sure id under which you are ruing cluster services should be added in the security permission along with computer account which get created as cluster name. on a side note will like to inform you, You should give cluster name (compute...

Dumpster and Mfcmapi.exe

Dumpster and Mfcmapi.exe You have been tasked to delete data from particular mailbox recoverable items (dumpster) and not sure what needs to be done. Here is script/command for the same. Search-mailbox -identity "Mailbox Name" -searchdumpsteronly -deletecontent Now that’s about deleting content from Dumpster, Let’s talk about getting things delete from mailbox and some reason you are getting some errors or you want to delete permanent in that case use MFCmapi.exe Open MFCMAPI.exe on a computer where outlook is configuring. Close actual Outlook client. On MFCMAPI Select Session - Logon which will ask for Outlook - Expand one Select Top information store (This will show you folder structure) Select Folder- Delete Folder (Hard Delete) Data will not be sent to Dumpster.