PS v3 Has broken myscript in the WMI area
Upgraded to V3 of PowerShell. I have a script that runs on the first day of every month. One section of the script is gathering configs of our servers. Normally the output looks like this:...
View ArticleLong File Paths
The MAX_PATH for Windows is 260 characters, really 259 because the <NULL> character at the end. At my company there are some users who have files and directories that they cannot open because the...
View ArticleTop 7 PowerShell commands for beginners
In this post, I will cover the seven most frequently used PowerShell commands that are useful for beginners. These are the commands you can start playing with during your PowerShell learning exercise....
View ArticleWindows RT: Local Group Policy, MMC, and PowerShell
I wasn’t sure what I was expecting with Windows RT – possibly something like Windows Phone with a cut down desktop mode. I found the messaging a bit confusing. Lots of talk about what it wouldn’t do,...
View ArticleQ&A: Windows user group founder talks Windows Server 2012 features
Windows Server 2012 includes features designed to make life easier for IT pros, but which ones are most beneficial? Read More
View ArticleEnable Remote Desktop
Hi, Just starting to take a look at Server 2012 and I'm trying my best to use powershell as much as possible... I simply want to enable remote desktop so I can RDP to the server. Get-Command *Remote*...
View ArticleNTEventLogEventConsumer
I am trying to write a WMI event that will then write tot he event log. But when I try to do the set-wmiinstance for the consumer I keep getting "Not Found" $EventType = 2 $EventID = 52410...
View ArticleSelect-String question
I am writing a PS Select-String to extract out all SQL SELECT statements from a text file. I am looking extract all SELECT statements. Each SELECT statement terminates with a ; character. I can...
View ArticleCan I open notepad etc. on remote server/computer using PS?
Hi guys,I am trying to learn power shell to be more effective at work. Basically I know little bit of Exchange PS cmdlets and small scripts but I want to learn more.What I am trying to figure out is if...
View ArticlePSCustomObject and Select-Object Expandproperty
Hi there!I created the following pscustomobject with a nested pscustomobject. Interestingly after Select-Object -Expandproperty the source object is changed. Do you have an answer on that?# Create...
View ArticleConfigure Auditing for a 'specific AD user attribute' for a 'specific AD...
Hi Guys,In this link: http://support.microsoft.com/kb/814595, under 'Configure Auditing for Specific Active Directory Objects', steps are provided that explain how to configure auditing for specific...
View ArticleConsole output in cmd.exe, and powershell.exe through C++
OS: Windows 8 x64 Rus;IDE: MS Visual Studio 2012 Enu;Language: C++I know a simple way for correct displaying of localized chars on Cmd.exe. But how can I do same for Powershell.exe?My...
View ArticleWMI cheat sheet for PS users
We got multiple requests to publish the cheat sheet for CIM Cmdlets that was distributed in Tech Ed NA this year. Responding to popular demand, this document is attached as PDF . This is a great...
View ArticleWhat's new in Windows Server 2012
Windows Server 2012 – "Cloud OS" as Microsoft sometimes refers to it, and "WS2012" as we'll call it for short – is the result of the deepest and broadest developer effort in the history of Microsoft...
View ArticleMeet The Author: Thomas Lee on Creating PowerShell Modules
In today’s episode of our Meet the Author podcast series, Fritz Onion talks to Thomas Lee about his course Creating PowerShell Modules.Read More
View ArticleHow can I run a script within a pipeline
Hi,I have the following line of code that is called from a batch file and scheduled to run at a certain time of the day.Get-Content d:\servers.txt | .\Retreive-Network.ps1 | Out-DataTableIt does not...
View ArticleStill waiting for my limited edition (handsigned) copy of powershell V3 lunches
Don, sorry to bother you with this but maybe you have some answers?On august 1st I ordered and paypalled for the "PowerShell in a Month of Lunches" Limited Edition 2 Book Lunch SetItem# LUNCHPAK, since...
View ArticleReading data from within a DOS window
Hi,I was wondering if there is a way to automate getting data from within CMD windows? I have to record some #'s from several different CMD windows on a # of servers. Shahab
View ArticleChange credentials when running powershell script
Hello,I have a powershell script to get the drive sizes of servers specified in a text document. The problem I have is that several of our servers are in a DMZ and require different login...
View ArticleGetting the number of actual physical disks in the HP RAID using WMI
Hello All,I wounder if someone can help me with the following question please.I have a number of HP DL Servers which have the useual RAID setsLets say I have two physical HDD in a RAID 1 (mirror...
View Article