Find file in users' home drives
HiI am trying the below script to find if a certain file exists in user's home drive but unfortunately, I get greeted with the error below. Can someone help to identify the problem please?...
View ArticlePowerShell Woes
Hi,I'm writing a script that will find school pupils based on their ID numbers. Now that part of the script works no problems, the issue I'm having is getting the function to return a value. Ideally...
View ArticleO365ServiceCommunications Module
Check out my blog post on Cogmotive's website for an overview of my O365ServiceCommunications module. This module can help you automate reporting of incidents, messages, and maintenance announcements...
View ArticlePowershell out-file double spacing...
Is there any way to eliminate the double spacing when using out-file? I output to a text file but it puts double spaces and it drives me nuts.
View ArticleNew "Powersheller" Logon Date Script
Hi All,This is my first time trying to use Powershell and by first I mean I have literally 0 expeirence and I've managed to scratch together what I need to accomplish the main goal. I'm trying to get...
View ArticleIs there a way to stop on error a .ps1 script?
I am running a .ps1 script and all i know is it works on windows server 2008 but not on 2012, only problem is the red error messaging lettering doesnt stay up long enough for me to see what might be...
View ArticleAD powershell script help
Hi Spiceheads,I need some help with an Active directory powershell script. I need to populate an AD user attribute (extensionattribute8) for all users in a particular OUwith a value based on a lookup...
View ArticleUSMT Script
Hey everyone, new powershell junkie here, trying to write a script that will scan and load a users profile on a new machine. Is this possible or does each commandlet have to be ran separately? Sorry...
View ArticlePowershell add Computer to domain
Hi,i'm making my first steps into powershell.I want to use a script to add a new computer into a domain:I have two scripts.The...
View ArticleFile Manipulation script - remove first position in each row
Hi All, I have a set of files that i need to clean up on a daily basis. Essentially i have to remove the first character of each row Unless it's a tab. (99% of the time it's a 1, 0, or Space character...
View ArticleGet-Hotfix InstalledOn date missing?
I've been working on scripting a way of verifying that all of the servers in my domain are receiving Windows Updates and installing them. I'm using the following...
View ArticlePS v5, it's back
All fixed up apparently: https://blogs.msdn.microsoft.com/powershell/2016/02/24/windows-management-framework-wmf-5-0-rtm-pack...
View ArticlePowershell group from an OU
Hi guys I want to be able to get users from an OU and a group and then put them in another group.I have two parts of a script that do the independent parts but i need to be able to join the together....
View ArticleSecurity Groups and members export
Hi There when i run following script i can export into the excel file with out any issues. i schedule this script and it doesnt generate the output. any one any idea? i know that i have to use {} or...
View Articlepowershell Path variables with spaces
We have a shared folder that has a folder created for every user in the format of FirstName Last name. I need to create subfolders under each user folder. They are the same set of folders so I thought...
View ArticleExecutable with Embedded credentials
Dear SpiceworksI have an upgrade executable which needs elevated credentials in order to run and update the program. Besides the IT which belongs to the Administrator group no other user has the...
View ArticleFebruary PowerShell - What have you done?
Another month has gone by, time to talk some smack about your PowerShell accomplishments! What have you done this month that really helped yourself, or your team, out? Did you write a blog post? Get...
View Articlepowershell script for searching for services who's path includes *x*
I'm trying to figure out a way to shut down yahoo search set (security threat) and related services as well as remove files associated with it (and registry entries, etc)Does anyone know the syntax for...
View ArticlePowershell SelectSingleNode with quotes
Well, I had a similar question for dealing with single quote/apostrophe a little while back, but that solution doesn't seem to be working for double quotes.I have a function that will be passed some...
View ArticleWhat am I missing here?
I'm trying to script a mass uninstall on a PC. All software has partial same name. When I run this it returns...
View Article