Quantcast
Channel: PowerShell
Browsing all 15370 articles
Browse latest View live

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 Article


Modernize 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 Article


Powershell 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 Article

Shorten 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 Article

Powershell - 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 Article


create 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 Article

Powershell 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 Article

Exchange 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 Article


Powershell- 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 Article


Out-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 Article

Powershell - 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 Article

powershell to run on multiple machines in textfile

hello all,i am working on script to install msi on different...

View Article

Image may be NSFW.
Clik here to view.

New-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 Article


PowerShell 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 Article

Exchange 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 Article


Script 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 Article

Processing 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 Article


365 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 Article

Add 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 Article

Power 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
Browsing all 15370 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>