PowerShell

PowerShell Webcast.

  PowerShell Webcast Join us for a Webinar on March 10 Space is limited.Reserve your Webinar seat now at: https://www4.gotomeeting.com/register/719114255 The first web cast on Powershell. This is going to be the basic introduction of Powershell. visit the below link for more info: http://newdelhipowershellusergroup.blogspot.in/2012/03/new-delhi-powershell-user-group-meeting.html Thanks Aman Dhally Title: PowerShell Webcast Date: Saturday, March 10, 2012… Continue reading PowerShell Webcast.

Active Directory · PowerShell

Remove Computer Account from All Domain controllers using PowerShell

  Hi, If you are using Active Directory environment in you infrastructure then you does the one thing for sure , remove / add computers to the domain. Some times when you format user computer and add it again to the Domain it gives an error that “Computer Already exists in the domain”. Or you… Continue reading Remove Computer Account from All Domain controllers using PowerShell

PowerShell

Script to reset “Hidden files and folders” to normal using PowerShell

  Hi, yesterday one of my users laptop get infected with virus. After removal of virus i saw that “Virus” hide every file and folder in the laptop.  It was quite a pain to “Choose file and folder” right click on it, choose properties and un-tick the hidden option. Then i decide to write a… Continue reading Script to reset “Hidden files and folders” to normal using PowerShell

PowerShell

How to use –Exclude switch in Remove-Item cmdlet in PowerShell

Hi, today i was trying to remove some junk folders and files in a  specific folder. But i don’t want to remove all of file and folder , i want to keep few folders. Then i think that i should use the –Exclude switch with Remove-Item Cmdlet. I tried to use –Exclude switch but somehow… Continue reading How to use –Exclude switch in Remove-Item cmdlet in PowerShell

PowerShell

“More” Can Be Dangerous – Use Better Alternative in PowerShell

  PowerTip of the Day, from PowerShell.com:   You might know the more.com tool: when you pipe output to more.com, the output is displayed page by page: PS> Get-EventLog -LogName System | more However, “more” can be dangerous as you see here. You will not get any results for a long time, and your CPU… Continue reading “More” Can Be Dangerous – Use Better Alternative in PowerShell

PowerShell

Creating Shares Remotely using Powershell

  PowerTip of the Day, from PowerShell.com:   Let’s assume you need to access another machine’s file system but there is no network share available. Provided you have local administrator privileges and WMI remoting is allowed in your Firewall, here is a one-liner that adds another share remotely: PS> ([wmiclass]‘\\storage1\root\cimv2:Win32_Share’).Create(‘c:\’, ‘Hidden’, 0, 12, ‘secret share‘).ReturnValue… Continue reading Creating Shares Remotely using Powershell