Monthly file compression script
Hello folks I am new to powershell and I am trying to make a file compression script, that will run as a scheduled task on the start of every month, and will then compress the previous month scanned...
View ArticleDelaying a display command in your script
Hello, I’m writing a simple script to add an Active Directory user to a couple of Active Directory groups. What I’ve noticed is that while my script does add the user to the groups, when I run the...
View ArticleUser AD groups – Results filtering issue.
Hello guys, I’m relatively new to Powershell, I’ve been using a script I found on MS and I changed it to do an export of the results but I’m having trouble with the .csv formatting. At the moment the...
View ArticleRemoving objects from an array
So I think I am really close to figuring this out but I’m just stuck. I’m hoping someone can shed some light. I’m trying to remove a few objects from a list in an array. I have two examples. The first...
View ArticleStuck trying to find folder sizes
I am currently trying to learn powershell and as a side project I decided I want to create a script that checked the sizes of each subfolder in a folder and deletes any over a certain size. I am...
View ArticleExecuting scripts and verify
Hey! I just posted here about a week ago and you fine gent’s helped me with a script to check/install updates/restart servers every Saturday (Except if that Saturday falls on the first 5 days of each...
View ArticleUse PowerShell? Here are some InfoSec Powershell tools, resources, and their...
submitted by /u/Peerlyst [link] [comments] The post Use PowerShell? Here are some InfoSec Powershell tools, resources, and their authors! appeared first on How to Code .NET.
View ArticleI’m nearly finished with my script! Now I have a question on scopes and...
Basically I’m trying to gather some information within one function than can be used in two others. Function A will gather user information, and Functions B and C will input that information in 2...
View ArticleWorking with Parameters Question.
Hello, Working with parsing data. So lets say you have a CSV with columns filename, result, servername, (and maybe some others). And you want to create a function to quickly locate items inside the...
View ArticleIs there a faster way to search for files than Get-ChildItem?
I can search for a file using Get-ChildItem but it’s slow. I imagine the object approach is what’s taking time. cmd /s is much faster. Is there a faster way that perhaps leverages file indexing from...
View ArticleMicrosoft Exchange Powershell Script
Hey guys I’ve been working on a script that will tell me how many messages there are in my exchange queue. Unfortunately the default output for the Get-Queue cmdlet doesn’t give me which send...
View ArticleHow do I pass locally defined variables into a remote machine?
function localA { $x = Read-host “x” $y = Read-host “y” $z = Read-host “z” } $s0 = New-PSSession -Computername $name -credential $creds Invoke-Command -ComputerName $name -ScriptBlock...
View ArticleThought I would post my internal logging module
So I log all script outputs to a central repository (whose location is set by a global environment variable) which makes it easier for troubleshooting and tracking different scripts running from...
View Articlequesiton: compare-object and txt files
Not sure why this is doing this, but when I do a compare object it just returns a list saying that the data is in both with the side indicator. The txt files are pretty flat, no headers. ie:...
View ArticleFor those of you looking to get into using octopus deploy I wrote up a...
submitted by /u/Crossbeau [link] [comments] The post For those of you looking to get into using octopus deploy I wrote up a tutorial and created a vagrant box to help get you started! appeared first...
View ArticleIs it worth getting certified
So i graduated NET course in college this past November. So i get a voucher for the Powershell exam to get certified, but idk if its worth my time. What jobs can i get with it and will i ever really...
View ArticleWhy you should use the Command Line (a lot…)
submitted by /u/BroVic [link] [comments] The post Why you should use the Command Line (a lot…) appeared first on How to Code .NET.
View Article10 Free PowerShell e-books
submitted by /u/blownart [link] [comments] The post 10 Free PowerShell e-books appeared first on How to Code .NET.
View ArticleOffice 365 – E-Mail Reporting Scripts
Hi All, Had a request to run a report on our O365 e-mail setup. Need to run a weekly report that will for each user: Display a list of unique e-mail addresses they’ve sent e-mails to and the number of...
View Article[Help] Newb requesting help to make my life easier. Script for pulling...
I’m getting really into beginner-self-taught powershell scripting. If anyone has this script already made, please share. If not, I’ll post what I have, what I’m researching and what I need help with....
View Article