How do i find out what a button does in an application?
I am trying to use PS to do the following: Check if the app is running. if app is not running, Start the app Once the app is confirmed to be running Hit the "stop" button Wait 10 seconds Hit the...
View ArticleMeasuring Data with PowerShell
submitted by /u/Net-Runner [link] [comments] The post Measuring Data with PowerShell appeared first on How to Code .NET.
View ArticleTask Scheduler and PowerShell
So I have noticed a fair few posts about task scheduler and setting up timer jobs. I were just wondering if there were any way to set up these tasks… through powershell? Might be a silly question but...
View Article[Question] Count rows based on two conditions
I want to count how many rows have both monkey in column ‘animal’ and banana in column ‘food’. I tried the following to just count monkeys, however it doesn’t work: $count137 = foreach ($Row in $CSV)...
View ArticleThis checks if a computer is online and running what OS its running. If it...
I know its not pretty, but it saves me alot of work trying to figure to execute a script on a huge environment #sets working directory to where the script is run $scriptpath =...
View ArticleG Suite to AD
Good morning! I was wondering if you had any insight and or powershell scrips I could run to transfer mailing groups from Google Admin Console to Active Directory? My company is switching from a Gmail...
View ArticleUsing Select-Object to Explore Objects
submitted by /u/tomatwork [link] [comments] The post Using Select-Object to Explore Objects appeared first on How to Code .NET.
View Article[?] Verifying COM object configuration – updating if needed
(apologies in advance for the wall of text) I’ve been kicking around PS lately just learning the ropes, trying to do some automation on a W2k12 server. This particular bit of code seems to be very...
View ArticleUsing powershell to remotely install certificates… best practice?
SO I need to push a trusted certificate out to about 30 machines via powershell. How does this look? get-content c:machines_list.txt | foreach-object {Import-Certificate -FilePath...
View ArticleJust released PowerShell for VS Code 1.4.0 with new code formatting presets...
submitted by /u/daviwil [link] [comments] The post Just released PowerShell for VS Code 1.4.0 with new code formatting presets and custom HTML content view APIs! appeared first on How to Code .NET.
View ArticleAlert me Storage Spaces Direct (S2D) – Using Powershell to monitor...
It seems the suggested way to monitor S2D volume performance is to use the following command: Get-StorageSubSystem Cluster* | Get-StorageHealthReport Returned values: CPUUsageAverage : 56.69 %...
View ArticleNeed help retrieving users that utilize Active Sync
Hello. I’ve been working on this far longer than I’d like to admit. Get-ActiveSyncDevice and Get-ActiveSyncDeviceStatistics don’t play together nearly as well as I’d hoped when it comes to identifying...
View ArticlePowershell Remoting Linux -> Windows with SPNEGO
Hello powershell gurus, I have seen mentioned in a few places (https://github.com/PowerShell/psl-omi-provider#connecting-from-linux-to-windows and https://github.com/PowerShell/PowerShell/issues/3329)...
View ArticleVariables and Chocolatey Commands in a Script Block
I’m writing a wrapper for installing Chocolatey packages remotely and in parallel across multiple computers. I’m running into a problem with the way script blocks work in PS though. I’m doing this...
View ArticleTruncated Output of Array
Trying to get members of a global group. Get-ADGroup My_Global_Group -Properties Members | select Members The output is {dozens of distinguishednames…} How do I get PowerShell to display all the...
View ArticleMy First Leaver’s Script
submitted by /u/W0LFPS [link] [comments] The post My First Leaver’s Script appeared first on How to Code .NET.
View ArticleChanges to a PowerShell Module Manifest not viewable in Git
submitted by /u/Net-Runner [link] [comments] The post Changes to a PowerShell Module Manifest not viewable in Git appeared first on How to Code .NET.
View ArticleOffice 365 – Pull email addresses with certain license
Hello, I’m looking for a script that will pull email addresses based on a license type ( business premium ). Can anyone point me in the right direction? submitted by /u/EngineerInTitle [link]...
View ArticleStrange Error I can’t seem to make sense of.
I have been attempting to learn Powershell by setting up a DHCP server w/ failover on Windows Core 2012 R2 (Got a goal in mind, go.) I ran into the command Get-DHCPServerInDC which is suppose to...
View ArticleBackground jobs and COM Objects
Trying to create a table in word and would like to speed up the process a bit, without jobs this works fine but it’s just slow. When I run this script everything works fine except when the script gets...
View Article