Reply To: Creating a persistent remote Exchange Shell session.
Okay I sort of solved it, although I am not sure if this is the right method. I piped the cmdlets to “Select” instead of “Format-List”, and it worked.
View ArticleReply To: Scheduled Job Frustration
I’ve found Scheduled Jobs to be a bit flaky and temperamental. A scheduled job will become corrupt in a number of circumstances: - running it using the scheduled task cmdlets – almost always - running...
View ArticleReply To: New-VMSwitch Kills Transcripting
Not been able to reproduce with PS 4 on Windows 8.1
View ArticleUsing Package
This is my first DSC project and the first requirement is to install WSE 2.0 SP3 and WSE 3.0. 1. DSC doesn’t really need ProductID to install even though it complains? How can I find out the...
View ArticleReply To: Using Package
1. The ProductID is how DSC identifies if the package is installed or not, at least in the current iteration. You can look at the Win32_Product WMI class to get product IDs of installed products. It’s...
View ArticleReply To: Using Package
Thank you very much, Don for your help. This is how I set it. After running it, it said it installed. The folder are created in the right place. They just don’t show up the Programs and Features. If I...
View ArticleWhat is problem-take ownership and delete a file?
# Get the ID and security principal of the current user account $myWindowsID=[System.Security.Principal.WindowsIdentity]::GetCurrent() $myWindowsPrincipal=new-object...
View ArticleExcel won't run in PS script from task scheduler
I have a fairly simple two part task that I want to run daily via the task scheduler: Make a backup of a spreadsheet Open the backup copy in Excel and save it as a CSV file The script below runs fine...
View ArticleRunning PS script as task action
Hi, IT department of company from which my company bought core banking software defined one task in task scheduler on Windows Server 2008 R2 which was triggered by certain event log. As an action they...
View ArticleReply To: Running PS script as task action
I tested by running restart-service -name servicename -force in PS console and it restarted the first service but dependent service was stopped and stayed stopped. It seems that after restart-service...
View ArticleReply To: Running PS script as task action
Yes. You need an additional line which starts the dependent service. A little explanation on this: A service “B” which depends on service “A” means that service B can’t run when A is stopped. So,...
View ArticleReply To: How do you Manage PowerShell
With all due respect, there is not a question above where the appropriate answer wouldn’t be, “It depends.” And it depends on a number of things: How risk adverse is your organization? How many...
View ArticleReply To: Running PS script as task action
What about execution policy? Does it have to be changed to remotesigned if task runs the script?
View ArticleBypassing 'OK' dialog box
I am writing a Powershell script to run a few process automatically, but the last .exe ends with an ‘OK’ dialog box and will not move on to the next command to restart the box until it is...
View ArticleHelp with the basics.
Hi There, I’m currently going through Don’s great book ‘Powershell in a month of lunches’ and really digging into the basics to solidify my understanding of the fundamentals. So I was digging around...
View Articlehelp with this script
i want a script to capture the current CPU usage for every process above 0 CPU usage. i create this script but i see that the script doesn’t report a right CPU usage like task manager show because it...
View ArticleReply To: Bypassing 'OK' dialog box
External commands, like exes, don’t support common parameters. If that command is coded to display a dialog box, there’s probably no way around it. It depends entirely on “program.exe” – this isn’t,...
View ArticleReply To: Help with the basics.
The explanation in the help file might be confusing. It’s example 3 online (http://technet.microsoft.com/en-us/library/hh849800.aspx). The -Path parameter specifies the child items you want to get. In...
View ArticleReply To: What is problem-take ownership and delete a file?
I’m sorry, but we’re not going to be able to run your code and reproduce your results. If you’re encountering an error or something, you’re going to have to help us understand what that is. Although...
View ArticleReply To: Excel won't run in PS script from task scheduler
Scheduled Tasks often have difficulty launching GUI apps that expect desktop interaction. This isn’t really a PowerShell thing, unfortunately, it’s an interaction between Excel and the Task Scheduler...
View Article