replacing user profile paths in AD when migrating to new servers via powershell
So a new file server hosts user shares. We're using Kerberos so you can't just repoint DNS. An uncountable number of users have their user shares specified in AD pointing to the old server, so how does...
View ArticleChoosing a specific registry entry and deleting a specific key, then adding one.
I need to be able to look up the following registry entry:HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}...of which there are about 20 on my computer. One of them...
View ArticleExchange data from 2007, 10 and 13 for Spiceworks
We're in the process of upgrading our exchange server from 2003 - 2013, currently stopping over in the 2010 realm ;) So I thought i'd see if I can get the script created by Zap (Spiceworks) (whom I...
View ArticleHappy New Years, 2015!
Happy New Year, everyone! And welcome to 2015!It's hard to believe that another year has gone by, but here we are! Tell me about your best accomplishments? Personal or work related, it's all open...
View ArticleMaybe one of you will know...
I am trying to use ADSI to create user accounts in a script. I have everything working with this...
View ArticleGet-Content -> search for a string -> send an email
I'm sure there is an easier way to do this, but for now I am using my existing batch scripts to fuel my Powershell learning process. My Goal in 2015 is to re-write all of my existing scripts in...
View ArticleWhat was your PowerShell project this week? 1/2/2015
First update of the new year. I don't expect a lot this week as I know most of you have been enjoying the holiday's.That said, what PowerShell magic have you conjured this week?
View ArticleQuest AD cmdlets for PowerShell
Does anybody know where I can download these without being redirected to the Dell Software Sales page??? It appears before the URL changed this was some cmdlets you could download for free and now it...
View ArticleNeed to output the user input from the powershell script to a CSV
First, I am not an experienced programmer. The question I have is I need to run a PS script that will ask me several questions, I then provide input, then the script will then output it to a CSV. I...
View ArticlePowerShell Help!
Hello IT folks,I'm a total noob on powershell, though I have little knowledge how the powershell script works. I have visited a lot of posts here on the Internet to get examples of powershell scripts....
View ArticlePowerShell Splatting variables unpopulated...
I've written an advanced function and now I'm trying to splat all the parameters to make it look nicer. However when I splat some of the parameters it errors out and after debugging, its due to the...
View ArticlePowerShell script / Missing Statement Block in Switch
I have the following script to set a system environment variable based on the default gateway of the PC. It works on one PC just fine... When I run it on another PC, I get the error below. Any ideas...
View ArticleHow to get sub folder path
I am trying to get sub string from a string with powershell$completeString = "C:\Development\Work\ABC-SharePoint\ABC\css\ABC\XYZ"$startingString = "ABC"I want "ABC\css\ABC\XYZ"note: ABC is multiple...
View ArticleDetermine if a Module was imported?
I want to write a try catch or something at the beginning of my script that verifies a module has been loaded. How might I confirm the existence of the module?
View ArticleScript to monitor DAG Database
Hi folks,It's me again I am afraid! Hope everyone had a good Christmas and new year.I was wondering if any of the experts here can help..I am currently using the below script to monitor the health of...
View ArticleDatagridview requires an Ibindinglist. I require help ;_;
Hi everybody!I'm working on a project that will allow the IT guys to follow locks and unlock AD accounts.Everything is (almost) fine from now, as I already made my design and almost every function...
View ArticlePowershell script to change low power mode through BIOS using Dell OMCI 8
I'm new to using Dell OMCI 8. I need to write a script to enable wake on lan on a bunch of computers, but the problem is that half the computers have low power mode enabled, which counteracts enabling...
View ArticlePurging local accounts with powershell
I haven't tested yet but here is what I got so far. This is to purge all accounts except the admin account but I need to run this across multiple systems. How can I do that?I dont want to purge...
View ArticleInvoke-Command {Import-Module}
Hello Everyone,I am pretty new to powershell. I am used to using vbscript. I have done all 3 microsoft virtual academy courses on Powershell and AD with Powershell.I must be confused because the I...
View ArticleCan't seem to pull value for HomeDirectory propery from Get-ADuser
Script:Powershell#Import necessary...
View Article