Out-File Blank
How do I fix this so the information is in the text file? The text file is created, but has no info in it. I know I am not sending the data to the file, but I am not sure what to do to.Get-LocalUser |...
View ArticleModernize password script
I have a wireless SSID that has its password changed daily, to do this I run a basic .bat script which also calls a .vbs to create and format a Word document with the days password. It used to run...
View ArticlePowershell Compress-Archive.Out of Memory . Set Max Memory? Garbage Collection?
I have a problem in that my PowerShell Archive archive script crashes after consuming my entire machines memory using the Compress-Archive cmdlet. The for loop added below really helped by only dealing...
View ArticleShorten This Code
So I've got a script testing a few program by starting them, checking that they run and then closing them. So here's my code so...
View ArticlePowershell - Last password change
Hi There allI am new to this whole Powershell stuff, so please bare with me.I have been tasked to get a list of all users in our OU, and when their passwords were last changed. I thought this would be...
View Articlecreate loop to try Set-UserPhoto
Hello all,im working on a script that creates a new user in the AD. at some point i need to set the user photo but im having problems running it in a consistent manner.these are the commands im...
View ArticlePowershell script to convert dynamic A records to statc?
Hello, I am looking for a PS script to convert about 1000 dynamic dns entries to static. Any help would be greatly appreciated. Thank You
View ArticleExchange Powershell - How do I export a list of distribution groups?
Hi guys, do any of you know any scripts/commands to export a list of all distrubition groups we have in our exchange? I do not need the list of members in this.Thanks in advance!
View ArticlePowershell- need help renaming multiple computers at the same time in our domain
I'm a powershell novice and need assistance with this script. I already created the CSV file with old name, new name in line 1 and the data of old name, new name starting in line 2. When I try running...
View ArticleOut-Host breaking things
So this will work just fine but as soon as I add "Out-Host" whilst the script still runs and the output is displayed to the console, the "if" part occurs causing my own error message to show. Please...
View ArticlePowershell - Folder Watchdog
Looking for some guidance for the best method to watch a specific folder and return a pass fail when checking at if there is a file with the today() date stamp. Does anybody have such a script in their...
View Articlepowershell to run on multiple machines in textfile
hello all,i am working on script to install msi on different...
View ArticleNew-TimeSpan Start and End Date with NULL Data
So I have a script that is pulling the last logon date for a AD users. However, some of them have never logged in so that field will be empty.Here is how I have the script portion set up:Those that...
View ArticlePowerShell Command to send warnings to a file
I am creating a script that will catalog all of the inbox rules for each user in our organization so we can review them to make sure there are not any nefarious ones setup by outside sources. The...
View ArticleExchange On-Prem Add Mailbox Permissions en masse
Simple way to sweep through all your Exchange 2010 on-prem Mailboxes & set permissions on all.Suppose you and your boss (and a couple others) want to be able to open any User's Mail. Don't ask, it...
View ArticleScript to access unroutable from a server or win10 box
Kind of an odd question.. We have about 70 locations that vpn into our corporate office and they each have a server or Win10 machine that has 2 nics in it. One nic has a routable gateway address on its...
View ArticleProcessing an array returned by Get-ADuser into CSV
I am trying to export specific attributes of all users in a specific OU. One of the attributes is being stored as an array of decimal values so when I do a:Get-ADuser -Filter * -SearchBase...
View Article365 powershell MFA to multiple services
I'm assuming I know the answer, but I will kick myself if wrong :)Historically, I have scripts that connect to 365 exchange, Azures-AD and msol-service. And I grabbed credentials in a string and...
View ArticleAdd ad users in bulk
First I made a script for making OU in my AD, that worked fineA txt file:Text_organisatie _organisatie\Directie _organisatie\IT _organisatie\Aankoop _organisatie\Verkoop _organisatie\Support _shares...
View ArticlePower shell screep
Hello!Can maybe someone help me?I need PowerShell scrip who will check the specified directory for file who have in name *Subline* and created today if file founds retur 1 if not 0
View Article