Tesseract OCR with Powershell issue
Hello all. I am ripping my hair out with this one. I followed this guide on the following link https://blog.jourdant.me/post/powershell-and-tesseract-going-paperless-with-ocron my work computer I get...
View ArticleLocal account deactivation using Powershell
Hello Spiceheads,I need to activate and deactivate a user account on a standalone Windows 7 Pro workstation, using Powershell. I can do this for AD accounts, but can it be done with a Powershell script...
View Articlebypass UAC when running powershell script from 3ds Max
Hey, guys!I very new to powershell scripting, but I found that I need to use it. I solved everything that I need with ps1, but the problem is with UAC now.In maxscript I use the code as follows to run...
View ArticlePowershell get pixel under mouse cursor
Hello all...I'm sure there is a way to do this...can somebody point me in the direction of how I would get the pixel under the mouse. I'm sure worst case scenario you can take a print screen somehow...
View ArticleSet Windows Logs With Powershell
Hi All, Was wondering if anyone had a script that will do the following for Windows 10 Application, Security, and System Logs.1. Set a limit for log size.2. Set to Archive the log when full, do not...
View ArticlePowerShell Command Help
I'm trying to stop a process on a remote PC but I get an error that the process cannot be found - though it is in fact running on the remote PC.I'm on Server 2012 and trying to connect to a Windows 10...
View ArticleERROR:PowerShell DSC MSFT_PackageResource Set-TargetResource
During testing of DSC with Microsoft TFSReleaseOnPrem to a VM OnPrema script produced MOF file to install a MSI succeeds when the process script is run directly but fails when launched through the TFS...
View ArticlePowershell/Office365/Calendar Events
Has anyone actually been able to use Powershell to get a room calendar in Office365 and be able to grab the last 7 days of events? I have tried to follow this...
View ArticlePowerShell & Visual Studio Code
Good evening all,If you haven't heard of or used Visual Studio Code (which I'll be referring to as VSC in this question) already, I highly recommend checking it out at: https://code.visualstudio.com/My...
View ArticlePassword Expiry Notification Issues
Hello PS group, I hope you can help me with a script I've been modifying for our environment. The script in question is here: https://gallery.technet.microsoft.com/Password-Expiry-Email-177c3e27I've...
View ArticlePowershell for Expiring Passwords
HiI'm trying to run a script to check for accounts with expiring passwords in the next x days - I can run a script for expiring accounts but I'm looking to help those who's passwords will need changing...
View Article[Powershell] Put mac addressses, username, computername in csv
Hi everybody,I suck in scripting, and I need to make powershell script for windows 7 computers that write macaddresses, local computername to a csv fileI wrote a litle script but it dont write the...
View ArticleHealth Check report
I am now on version 2 of this project. I am trying to get it to run faster. I have cut the time by a little more than half per server to about 2 minutes. I started reading about Multithreading the...
View ArticleLimit number of running jobs
I want to modify this script to limit the number of jobs that can run simultaneously, as well as how long the script can run...
View ArticlePowerShell Script for Changing MailNickName Attribute
I'm trying to change the 'mailNickName' Attribute (aka 'Alias' attribute in Exchange) for a specific user. When attempting this solution through ExchangeOnline, I'm told that it must be done on the...
View ArticlePowershell: search for a string in command output
Hello,I am trying to search for a string in an output command.In Exchange, I am finding if I find a username in a result of Get-MailBoxPermission.This is the command I run (but not...
View ArticleWhen working on a script what do you guys do with unused code?
Generally I will comment the chunk of code out that I replace with something else until it looks or works right, that way I can go back and either change it back, reference it or add it somewhere else...
View ArticleOutputting Sorted Data
Goo'morning Spiceheads,I'm putting together a script that sifts through an error log. I want this scirpt to find all duplicate logs and then place only one of that specific log with the number of times...
View ArticleExchange 2013 - Fails on Import-PSSession
Using Powershell on my Windows 10 machine, with elevated permissions. Running this command$Session = New-PSSession -ConfigurationName Microsoft.Exchange -Connectio nUri "Exchanged2013FQDN";...
View ArticleString comparison and switch
I have a portion of a script that isn't working like it should. It works on my machine (v5), another test machine(v5), but not on another machine (v4). Essentially I am detecting the model of the...
View Article