PowerShell Team
Automating the world one-liner at a time…
Latest posts
Copy-Acl
Today my wife told me about a problem on the family PC. There were a bunch of PDF files in a directory that had the wrong permissions so my son couldn’t access them. She modified the ACL on one of them using Explorer and verified that that was the fix. (This is from a test I ran) She then selected them all and tried to do it all at once but when she brought up the Properties, it didn’t have the Security Page anymore: She wanted to know if there was some trick to set the ACLs all at once. I told her that PowerShell could do that. I showed her how to use Get-Acl and Set-Acl and...
Quick "5 Minute Concepts" Video series for Powershell 2.0
Phil Pennington from DPE has a very useful set of videos on Powershell 2.0 in "5 minute concept" series - Check it out https://channel9.msdn.com/tags/PSV2/. We will add more videos here. Want some specific area to be covered?- let us know by leaving a comment. Thanks Osama Sajid, Program Manager
Fun With Alerts (“`a”)
I just decided to restart Outlook to see if that made some weirdness I was experiencing go away. As you may or may not know, the Outlook process often is running for quite a bit after the Outlook window goes away. As such, you really don’t want to start another instance of Outlook until the first version is done. In V2, we now have the WAIT-PROCESS command so what I wanted to do was: PS> Wait-Process Outlook; Outlook The problem with that is that Outlook is not in the Path so it doesn’t work. I could go figure out how to do this but I didn’t want to spend the time right now so i...
PowerShell V2 – backward compatibility
Windows PowerShell 2.0 is backward compatible with Windows PowerShell 1.0. All the scripts written for V1 should work in V2. If you find instances of broken scripts from v1 please let us know through our connect site https://connect.microsoft.com/site/sitehome.aspx?SiteID=99 However there are few points to be noted: Breaking changes from PowerShell 1.0 · The value of the PowerShellVersion registry entry in HKLM\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine is changed to 2.0. · New cmdlets and variables have been ...
PowerShellToys – WOW!
Gent Hito and the superstars at /n software has just announced a new product division, PowerShellToys. This division is focused exclusively in PowerShell technologies. PowerShellToys products bridge other Microsoft technologies to PowerShell making it easily accessible to other developers: Web Developers, Desktop Application Developers, Database Developers, etc.. Gent told me that they are called "Toys" because the folks at /n software believe that once developers see the sheer power of bringing PowerShell into their environment, they will look at these tools with a wide grin, ...
Enable-PSRemoting
I installed Win7 RC build yesterday and tried to enable PS Remoting. I launched PowerShell elevated, ran Enable-PsRemoting cmdlet but it gave an “access denied” error message One good thing in PowerShell help in RC is “about_Remote_Troubleshooting”. It is very detailed and covers all important failure scenarios. Go through it if you face problem with enabling remoting on a box To summarize, there are few things that I had to check 1. My machine is connected to domain. 2. I am logged in as administrator 3. PowerS...
SE05 Easy Automation with Windows PowerShell
Slides and demos from the Monday introductory talk at MMS 2009. PowerShell has been getting a lot of attention at MMS 2009. The community around PowerShell is also being noticed by folks and was even "singled-out" at the Keynote on Monday by Bob Kelly :)-Hemant Mahawar [MSFT]Program Manager MMS2009-SE05-Easy_Automation.zip
SE06 Whats New in Windows PowerShell 2.0
Slides and demos from the Wednesday talk at MMS 2009.Momentum around PowerShell has been great here. Lots and lots of products are showcasing the automation through PowerShell. -Hemant Mahawar [MSFT]Program Manager MMS2009-SE06-Windows_PowerShellV2.zip
SE07 Automating Your Infrastructure with Windows PowerShell 2.0
Attached are the slides and demos that I used today during my MMS talk.MMS is a great conference. It provides the opportunity to meet and talk to super smart people working on similar problems and learn from their scars. Enjoy! Jeffrey Snover [MSFT]Distinguished EngineerVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx MMS2009.zip