ALERT UCS SERVERS HARDWARE FAULTS USING POWERTOOLS

Hi Friends, scenario where you have multiple UCSM with hundreds of blades and rack servers managed UCSM. Though UCSM alert us with all critical alerts real time, most of the time it is difficult to track the critical alerts for me due to large number of events generated from UCSM. It was tough for us … Continue reading ALERT UCS SERVERS HARDWARE FAULTS USING POWERTOOLS

Learn PowerShell (my way)!! Part 3

View Part 2 View Part 4 Help and Commands ( Get-help, Get-Command) Get-help  Powershell has most comprehensive help feature that help us figure out how well we can use the commands. Help feature can be used with different switches to figure out how those commandlets can be used To display every help topic use "Get-Help … Continue reading Learn PowerShell (my way)!! Part 3

Error while restoring deleted AD object from RecycleBin :: Duplicate UPN or SPN

Hi Folks, this should be another very frequent issue when try to restore deleted user or computer object from Active directory recycle bin. Sometime the restoration of the deleted object fail with error "The Operation failed because UPN/SPN value provided for addition/modification is not unique forest-wide" when you try powershell or from Active directory administrative … Continue reading Error while restoring deleted AD object from RecycleBin :: Duplicate UPN or SPN

Powershell script to request and export Certificates with Private Key (PFX)

Other one I have taken from my old Blog site "https://vipinvasudevan.blogspot.com/" Situation is, Our organization decided to implement a solution to implement certificate level authentication for a system used in-house  We have had almost around 2000+ roaming laptop users who never connect to intranet but need certificate to be downloaded. We have no option left but … Continue reading Powershell script to request and export Certificates with Private Key (PFX)

Powershell Script to convert Excel files to CSV

Taken from my old blog site "Vipinvasudevan.blogspot.com" Below script help you to convert any excel files in to csv format #--------------Script Start----------------------------- #Convert Excel file to CSV $xlCSV=6 $Excelfilename = "C:\Temp\file.xlsx" $CSVfilename = "C:\Temp\file.csv" $Excel = New-Object -comobject Excel.Application $Excel.Visible = $False $Excel.displayalerts=$False $Workbook = $Excel.Workbooks.Open($ExcelFileName) $Workbook.SaveAs($CSVfilename,$xlCSV) $Excel.Quit() If(ps excel){kill -name excel} #--------------Script End----------------------------- In … Continue reading Powershell Script to convert Excel files to CSV

RESTORE COMPUTER OBJECT AND RETRIEVE LOCAL ADMIN PASSWORD USING POWERSHELL

Below script, used I used in a situation, where we are using LAPS (Local Administrator Password Solution https://technet.microsoft.com/en-us/library/security/3062591.aspx ) used and computer object deleted from  active directory. Either need to restore the Local admin password  (https://vipinvasudevan.com/2016/11/21/how-to-reset-lostadministrator-password-using-dvd/), I would recommend restoring the AD computer object with below script and recover old known password. # ————              Restore AD … Continue reading RESTORE COMPUTER OBJECT AND RETRIEVE LOCAL ADMIN PASSWORD USING POWERSHELL