Remove-SoftwareTitle.ps1 - Remove apps en masse using a wildcard approach...
...either by Software Title or by GUID.https://community.spiceworks.com/scripts/show/3322-remove-softwaretitle-ps1-remove-msi-apps-by-title...I've had this project in the wings for quite awhile and...
View Articlecompare-object two text files and then
I want to compare two text files (all user names exported from AD and share folder)I don't see any equal in the output file for the compare-object result.$ref = get-content "c|folder1.txt"Text$dif =...
View ArticleNeed assistance with passwords for AD
We use Google Apps Password Sync and I'm setting up fine grained password policies for AD. I made it simple for our lower grades and stuck with a minimum 4 character password. For grades 5 and 6, I...
View Articlepowershell - trying to delete a service...
I have a list.txt file with the following:Textservice1,server1service2,server1service3,server1service4,server1it is essentially a list of services and the server it exists on.I have the following PS...
View ArticleCustom PS Profile - Show them off
I know how to make PS look sorta nifty but I'm curious what others are doing with their PS profile and if anyone cares to share their code 'borrowed' or home grown. I'm not ashamed to say that I've...
View ArticleDo/While/Until?
I want to put an out clause to a do/while loop. Here is the code so far...Powershell#Check for Outlook and prompt to install Kaspersky.$office13=test-path"c:\program files\microsoft office...
View ArticleGet-FolderSize Powershell Script
Hello All,So I found Martins lovely script for doing a powershell report on folder sizes: http://community.spiceworks.com/scripts/show/1738-get-foldersizesIt's a great script and is exactly what I am...
View ArticleManage Google Apps with Powershell
I'd been looking for a way to manage my Google Apps domain and had hashed together a couple of scripts using GAM https://github.com/jay0lee/GAM/ but now I've come across...
View ArticlePowershell Scripting (CHOICE and GOTO?)
I know a little PowerShell but mostly simple scripts and I have a script that creates home drives which uses IF and ELSEIF (See example below)Powershell$UserName=Read-Host'Please Enter Users Account...
View ArticlePS to telnet and run commands based off data from a excel or csv
Greetings folks. Been messing around with PS for a little bit, but not sure if it can facilitate what I'm trying to accomplish.I have been tasked with automating a set of entries into a system (which...
View Articleshutdown script by checking if host not on UPS isn't replying to pings.
http://www.unix.com/shell-programming-and-scripting/48579-help-script-shutdown-if-no-ping-responce.h...I want exactly that but for windows. I know a little bit of programming and how to use loops and...
View Articlepowershell - SamAccountName help needed
HiIm very new to using powershell, slowly starting to use it for more tasks and finding it very helpful how ever i have currently become unstuckI have the...
View ArticleTemporary group membership. The universal IT pain.
Hi folks!I'm not an IT guy since a long time (it's only 4 years) but I know for sure one thing that I hated since day 1 : Temporary groups for users.You all know this, Mr X. will make Mr Y. work as Y....
View ArticlePowershell Script help
Looking for a bit of help. I've written the following with some guidance but now need to add the finishing touches.Around the ObjectGUID I need to add { } at the beginning at end.And the whenCreate...
View ArticlePowershell - Working from Network location and if statements
Having an issue with this script - it works just fine the way it is when it's run from a local machine calling local directories, but once the script starts calling the locations on a network share, I...
View ArticleHow would I add file size sums to end of this powershell script?
It lists the extensions of the files and how many files I want to know the sizes of the groups of extensions also. I am new at this and want learn more about powershell. Get-Childitem C:\Users\next...
View ArticleChanging local passwords via PowerShell
Hey all,We are currently trying to build a script that we can run at login to reset the local Administrator password across the network.We've got it working with a password stored as a secure string...
View ArticleParameter problem with plink and PowerShell
I am trying to ssh into a switch using plink, but I keep getting errors with my parameters.Powershell$plink='C:\Program Files...
View ArticleUpdate script - Even a noob should be able to...
Ok so this should easy... or not.We have a few "shortcuts" most people need want, but some prefer to put them different places. So we set up a shortcut on the "default user" desktop. That way they can...
View ArticleUpdate existing users in AD from CSV manger issue
I am a powershell noob first of all.I have been tasked to update the AD entries for my company from the record that Finance has.My CSV looks like this and is called...
View Article