Reply To: Bug in PS V4 ping > ctrl + pause > ctrl+c closes
It’s likely a bug in the console app, not PowerShell itself. You should report it at Connect.Microsoft.com, but the console app is *very* old and does’t receive a lot of attention these days. If you...
View ArticleReply To: Bug in PS V4 ping > ctrl + pause > ctrl+c closes
Thanks for your answer. Then I’ll use cmd to ping and not powershell… I’m testing Test-Connection now, thanks. I’ve noticed that if i press ctrl + pause/break closes powershell’s console without...
View ArticleReply To: PowerShell DSC: Composite Configurations / Node GUID Management
Hi Don, Yes – I’m trying to guage what others are doing out there and how they’re meeting the challenges of their specific DSC deployments. But as you stated, perhaps not many are supporting this in...
View ArticleReply To: PowerShell DSC: Composite Configurations / Node GUID Management
StackExchange is. Steve Murawski’s their point guy – he helped me write The DSC Book.
View ArticleRemote endpoint configuration, custom resource
hi, Nice, our own DSC forum, very, very good idea From time to time I find my self needing to “run” an configuration that requires network access. I had this great idea to use...
View ArticleReply To: Remote endpoint configuration, custom resource
You’re not necessarily barking up a wrong tree. There’s probably a couple of ways to tackle this. One that comes to mind would be to create a Scheduled Task that, some time in the future, restarts the...
View ArticleReply To: Bug in PS V4 ping > ctrl + pause > ctrl+c closes
The “classic” console application is basically the same one Cmd.exe uses. It’s an old piece of software, and it isn’t owned by the PowerShell team, so they have limited abilities to fix its problems....
View ArticleReply To: Logging an Event into Windows Event Logs
Could you please clarify what you’re having a problem with? Is it writing to the event log? Formatting a message? You said you’re, “having a problem where there’s more than one drive…” but you didn’t...
View ArticleGet-WMIObject RPC Server is Unavailable
I am running the below command from my Windows 2008R2 Server $ComputerName=Get-ADComputer -Filter *|SELECT -ExpandProperty name Get-WmiObject win32_OperatingSystem -ComputerName $ComputerName...
View ArticleReply To: Get-WMIObject RPC Server is Unavailable
Attached is an extract of services running on 3 Windows 7 Professional PC’s Machine 1 and Machine 2 get listed when using above command; but Machine 3 does not get listed
View ArticleReply To: Get-WMIObject RPC Server is Unavailable
The RPC Server unavailable message is nothing to do with the WinRM service. Get-WmiObject uses DCOM to communicate with remote machines NOT WSMan (WinRM) The message means that either the DCOM service...
View ArticleHow do you Manage PowerShell
Thinking about a general “Ways to Manage” your scripts as a topic for the DFW PowerShell User Group. We have in the past discussed many ways to package and run scripts from Batch files, shortcuts and...
View ArticleReply To: How do you Manage PowerShell
1) How do you Run the script in production? Depends on the script. Some are scheduled tasks, others get pushed out via some of our management software, and scripts that I write for myself (to do data...
View ArticleReply To: Filtering based on calculated properties
I tested it today. Well, the above mentioned example works indeed, but the original one, which is a bit more complex fails to do the filtering. So, here is the actual script (I only changed the domain...
View ArticleReply To: Deploy powershell 5? Group policy?
Well that’s me told Thanks for the information. I have not tried to deploy any version of powershell via GPO yet but I think when it is released this will be the first it really interests me a lot.
View Articleinvoke-sqlcmd adds a semicolon at the end of stored procedures
We have an automated process that promotes code to SQL Server using powershell scripts. The powershell script executes .sql script files from a file folder. When invoke-sqlcmd executes a .sql script...
View ArticleScript to run a few PS commands, store the output into a file.
Hi, I have a series of PS commands which I want to execute. I wish to automate the process by using a PS script which includes all the PS commands, and then outputs the result of all those commands to...
View ArticleReply To: Filtering based on calculated properties
The problem is your use of Select-String. It either returns null (if no matches were found), or one or more Microsoft.PowerShell.Commands.MatchInfo object (if one or more matches were found.) In both...
View ArticleReply To: Script to run a few PS commands, store the output into a file.
You can use redirection operators when calling a script, very similar to how you’d accomplish the same thing at the old command prompt: .\YourPowerShellScript.ps1 > c:\path\to\logfile.txt...
View ArticleReply To: How do you Manage PowerShell
Dave Wyatt wrote: 1) 2) How do you store your scripts?<br> In our retail environment, we send a copy of the scripts to each server to be stored locally. The WAN links can be pretty slow at busy...
View Article