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

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 Article


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


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

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

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


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

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

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


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


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

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

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

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


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

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


Image may be NSFW.
Clik here to view.

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

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


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

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

Can't seem to pull value for HomeDirectory propery from Get-ADuser

Script:Powershell#Import necessary...

View Article
Browsing all 15370 articles
Browse latest View live


Latest Images

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