Chrome Extensions
Recently I’ve been tasked with checking all end-user workstations with whether or not they have a Chrome extension installed, and what version, because of a known vulnerability. I have no idea how I...
View ArticleImport Module with an different user account
Hello, Are you able to import a module through PowerShell with a different user account? I am specifically attempting to import the ActiveDirectory module with a different account to the currently...
View ArticleRemoving empty items in a collection
I was looking for a way to remove empty items from an array and I couldn’t find any examples that didn’t involve Where-Object. I did find one that is a lot faster at scale, and I haven’t seen it used,...
View ArticleClear Reg Key Values
I know this sub has a lot of smart people & I’m still learning Powershell & after spending literally HOURS trying to accomplish what I thought was a simple task & eventually figuring it...
View ArticleCan you run the remote admin tools cmdlets in a script on a pc that doesn’t...
Hello /r/powershell, my boss has tasked me with recreating our current login script, which is in vbs, with powershell to see if there is any noticeable difference. I am fairly new to this, but I have...
View ArticleAD Replication status HTML report
I thought this might be useful for other Windows admins. Much as I love the AD Replication Status tool it doesn’t provide anything in the way of automated reporting so I came up with this HTML report....
View ArticleNames of people not in AD
I have a list of names which should match up to the name property in AD. The outcome I would like to achieve is a new text file displaying the names only the names that do not appear in AD. I...
View ArticleIs there any way to get this script running for Windows 7?
Can I upgrade the PoSH env? I just wrote it on my computer and it works on all the ones Ive tested, BUT they are all Windows 10. My understanding is that Windows 7 doesn’t have “get-Printer” and in my...
View ArticleExport Mailbox to .PST then delete AD account
Anyone have a script or idea how I can do this? I know that if I just do a new-exportmailbox it will assign it to the queue but I dont know what will happen if I delete the AD account while the export...
View ArticleLooking for a batch script to move all files from a given directory to...
We are looking to move files from one folder to another either when they are completed .pdf files (the scanner writes .tmp files as it scans so any .pdf file has been completed and is open game) or we...
View ArticleWrite external program output to console and file simultaneously
Basically, I’m trying to use Start-Process to run DCPromo, but I would like it to still provide its standard output to the console but also write it. I’ve tried every way I can think of to get...
View ArticleRemote Script suddenly broken
Hello all, I’ve been running Chris Duck’s sDelete alternative, found here http://blog.whatsupduck.net/2012/03/powershell-alternative-to-sdelete.html for a few months now. Today however, it’s not...
View ArticleExchange Powershell command inquiry
I am not sure if this is the right subreddit, but I am trying to pull together a report of all mailboxes on an exchange 2010 server. I am looking to try and run a search for when the mailbox was last...
View ArticleMailbox access expiry date possible ?
Hi All, need something answered, i have written a powershell termination script that will go through and: Set the users nickname Hide them from the GAL Remove them from any groups Reset their password...
View ArticleCould use some help from the pros here
Hey fellas, weird situation I’ve got going on. I’m in the process of learning powershell, about half way through “in a month of lunches” and have a couple VMs set up, a windows server and a windows 10...
View ArticleObfuscating code with booleans
Inspired by a post I saw on this sub a while back. Turns out, Powershell (and most languages apparently- I’ve replicated this in Python and C++) will allow you to do math with booleans. You can use...
View ArticleRemove Account Unknown v2
So I broke down and got temp approval for testing purposes to use DelProf2. I have a function written for this: function DelProf { param( [parameter(mandatory=$true)] [string[]]$computername )...
View ArticleScripts for End Users
Just starting to mess with powershell a bit lately, I’m a networking guy by trade. I’m wondering how scripts would be handled outside the admin circle. Imagine I create a very simple script for adding...
View Articlehas anyone played with the powershell formatting in the VSCode PowerShell...
howdy y’all, i’ve been waiting for the v0.9.0 version of the VSCode PowerShell extension to come out. it is out and the doc formatting works well. seems fast, but i haven’t any L-O-N-G scripts to test...
View ArticlePowerShell Studio vs Visual Studio
If I have Visual Studio, is it worth buying PowerShell Studio as well? I don’t like the ISE because it won’t let you do tabs instead of spaces, and crashes. submitted by /u/JeffIpsaLoquitor [link]...
View Article