Powershell script output improperly formatted
Posted in 1st comment is a script I adapted to fetch stale users and PCs out of ADUC.If I run the commands by hand, everything looks shiny: I can see all the output I select. If I run the script,...
View Articlefind font in document and output the file name if font is present
hello,i am starting powershell and i am trying to search some word document with a certain font used inside.then if one word with the font is present, write the file name/path to another file.so far, i...
View ArticleHave Powershell Read and Execute commands based on MS SQL Table Data?
I am very new to Powershell and Powershell ISE. I have light experience with Object oriented programming languages and some SQL as well. Based on code examples I have found online, I have managed to...
View ArticleMoving folder on remote server with powershell
I have having a difficult time with this script. I created a user termination script to automate removing users from our system. The issue I am having is, we have two servers where our users home...
View ArticlePower Shell Use
Just wondering if their is a good tool out their to tell me if someone besides IT is trying to use power shell?
View ArticlePowerShell HELP. Insert parameter into code
Hi I am trying to create a script that will accept input from the user for the subject of the message. I am okay with all parts except getting the parameter back into the line.The PS command below work...
View ArticleCreate file from forach when file counts greater than 250
Text$fso = New-Object -com "Scripting.FileSystemObject"$f = $fso.GetFolder("D:\websphere\logs")I have a directory called D:\websphere\logs, and D:\websphere\logs has many of sub-directories. I need to...
View ArticleMass remove inheritance on multiple folders with powershell
Hello. I have recently run into an issues with our user folders. I'm trying to remove a particular group from each user folder but wanting to keep that group in the parent folder. There are 410 user...
View ArticlePowerShell $null Variable in an IF Statement
I know I'm going to be kicking myself, but since I still consider myself a n00b with PS, I'll try not to kick too hard.I've got a script for new hires that works intermittently. HR insists that AD...
View ArticlePowershell change local IP printer
I have this script to change printer IP ports on a list of computers, it references a .csv file with ComputerName, Old_Port_Name, OldIP and NewIP and it works great except for when I come across a...
View ArticlePowerShell Query to get Security Group's name and email address?
I was wondering if someone could help me with a task I've been assigned. We have several types of employees in my company, the biggest being FTE. I was tasked to get all full time employee's name and...
View ArticleUser editing script error checking
Hello all,Can someone please tell me why this bit of script does not create an error for get-aduser? I believe it might be because I am using a filter for EmployeeID.However although my script probably...
View ArticlePut yourself off the lottery with Windows PowerShell
https://community.spiceworks.com/scripts/show/3546-lotterysimulatorFastest winner earns a new follower!
View ArticleRemoved array Item/s, cannot re-read?
I am quite new to Powershell and Powershell ISE but I am slowlying learning more and more by the day. I am working on a project where I generate a list of names in an array, powershell looks at each...
View ArticleSplit file csv by size
I have a csv file with a size that exceeds 4GB.I want to create a script powershell to plit the file into multiple files with a size of 600 MB each.Can you help me please ?thank you very much
View ArticleImport eventlog to mySQL
Have done this in MSSQL but wanted to try in MySQL too, but how can i adapt this script to work for mysql on a ubuntu server? any ideas? i find new-object in powershell very hard to understand and to...
View ArticleDouble Powershell session error
i was wondering if it is possible to have 2 PS-Sessions in 1 CLI so :this is necassery to get trough a rough network.this is a example of what i mean :$password1 = ConvertTo-SecureString "******"...
View ArticleScript to Check Computer Domain Membership - Check for Install - Install MSI
Hello All,I need help creating a script to..1. Check for computer domain membership2. If it is a member, check to see if an application is installed3. If it's not installed, install MSIPowershell would...
View ArticleHow to add reboot command to existing PowerShell command?
I have PowerShell script that is added to the RunOnce registry key for every new user that logs into a Windows 10 system.It clears the taskbar and replaces it with one that has an IE 11 shortcut...
View ArticlePowershell Office 365 - Change Multiple User Passwords
Hi All,I'm currently struggling to change multiple users' passwords in Office 365 and I can't quite figure out what's wrong with my code. I have the...
View Article